@radix-ng/primitives 1.0.5 → 1.0.7
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/aspect-ratio/README.md +1 -1
- package/fesm2022/radix-ng-primitives-accordion.mjs +40 -27
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +34 -34
- package/fesm2022/radix-ng-primitives-arrow.mjs +3 -3
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +11 -35
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-autocomplete.mjs +175 -125
- package/fesm2022/radix-ng-primitives-autocomplete.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +92 -35
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-button.mjs +11 -7
- package/fesm2022/radix-ng-primitives-button.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-calendar.mjs +140 -90
- package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +63 -46
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +37 -25
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-combobox.mjs +278 -177
- package/fesm2022/radix-ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-composite.mjs +50 -33
- package/fesm2022/radix-ng-primitives-composite.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-config.mjs +7 -5
- package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-context-menu.mjs +48 -22
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +44 -28
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-cropper.mjs +73 -45
- package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-date-field.mjs +70 -40
- package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +93 -67
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-direction-provider.mjs +5 -4
- package/fesm2022/radix-ng-primitives-direction-provider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +20 -16
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-drawer.mjs +107 -81
- package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-editable.mjs +53 -39
- package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-field.mjs +76 -50
- package/fesm2022/radix-ng-primitives-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-fieldset.mjs +8 -7
- package/fesm2022/radix-ng-primitives-fieldset.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs +77 -40
- package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-focus-guards.mjs +3 -3
- package/fesm2022/radix-ng-primitives-focus-scope.mjs +7 -5
- package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-form.mjs +26 -17
- package/fesm2022/radix-ng-primitives-form.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-input.mjs +41 -22
- package/fesm2022/radix-ng-primitives-input.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +11 -8
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +274 -154
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +35 -17
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-meter.mjs +41 -30
- package/fesm2022/radix-ng-primitives-meter.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +220 -183
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-number-field.mjs +93 -61
- package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-pagination.mjs +48 -38
- package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +150 -107
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +79 -47
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-portal.mjs +20 -13
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +3 -3
- package/fesm2022/radix-ng-primitives-preview-card.mjs +119 -74
- package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +73 -46
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +58 -40
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-scroll-area.mjs +57 -41
- package/fesm2022/radix-ng-primitives-scroll-area.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +595 -102
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +11 -15
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +101 -64
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +53 -39
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +25 -20
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +76 -51
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +72 -41
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toast.mjs +75 -56
- package/fesm2022/radix-ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +39 -23
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +36 -36
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +52 -31
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +118 -63
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +31 -20
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/package.json +2 -2
- package/types/radix-ng-primitives-accordion.d.ts +1 -0
- package/types/radix-ng-primitives-aspect-ratio.d.ts +10 -23
- package/types/radix-ng-primitives-autocomplete.d.ts +3 -1
- package/types/radix-ng-primitives-avatar.d.ts +51 -25
- package/types/radix-ng-primitives-checkbox.d.ts +26 -98
- package/types/radix-ng-primitives-combobox.d.ts +28 -9
- package/types/radix-ng-primitives-context-menu.d.ts +2 -0
- package/types/radix-ng-primitives-dialog.d.ts +6 -3
- package/types/radix-ng-primitives-field.d.ts +33 -207
- package/types/radix-ng-primitives-floating-focus-manager.d.ts +11 -0
- package/types/radix-ng-primitives-form.d.ts +24 -33
- package/types/radix-ng-primitives-label.d.ts +3 -2
- package/types/radix-ng-primitives-menu.d.ts +47 -15
- package/types/radix-ng-primitives-menubar.d.ts +6 -1
- package/types/radix-ng-primitives-navigation-menu.d.ts +8 -6
- package/types/radix-ng-primitives-number-field.d.ts +1 -1
- package/types/radix-ng-primitives-popover.d.ts +12 -4
- package/types/radix-ng-primitives-preview-card.d.ts +18 -5
- package/types/radix-ng-primitives-progress.d.ts +59 -121
- package/types/radix-ng-primitives-radio.d.ts +0 -1
- package/types/radix-ng-primitives-select.d.ts +186 -391
- package/types/radix-ng-primitives-separator.d.ts +0 -7
- package/types/radix-ng-primitives-toggle-group.d.ts +7 -3
- package/types/radix-ng-primitives-toggle.d.ts +8 -8
- package/types/radix-ng-primitives-toolbar.d.ts +2 -0
- package/types/radix-ng-primitives-tooltip.d.ts +17 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, linkedSignal,
|
|
2
|
+
import { input, linkedSignal, Directive } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
const DEFAULT_ORIENTATION = 'horizontal';
|
|
5
5
|
/**
|
|
@@ -16,30 +16,26 @@ class RdxSeparatorRootDirective {
|
|
|
16
16
|
* @defaultValue 'horizontal'
|
|
17
17
|
* @group Props
|
|
18
18
|
*/
|
|
19
|
-
this.orientation = input(DEFAULT_ORIENTATION,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* Computes the `aria-orientation` attribute. It is set to "vertical" only when
|
|
24
|
-
* the separator orientation is vertical. Horizontal is the implicit ARIA default.
|
|
25
|
-
*
|
|
26
|
-
* @ignore
|
|
27
|
-
*/
|
|
28
|
-
this.computedAriaOrientation = computed(() => this.orientationState() === 'vertical' ? 'vertical' : undefined, ...(ngDevMode ? [{ debugName: "computedAriaOrientation" }] : /* istanbul ignore next */ []));
|
|
19
|
+
this.orientation = input(DEFAULT_ORIENTATION, /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
21
|
+
this.orientationState = linkedSignal(this.orientation, /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "orientationState" }] : /* istanbul ignore next */ []));
|
|
29
23
|
}
|
|
30
24
|
updateOrientation(value) {
|
|
31
25
|
this.orientationState.set(value);
|
|
32
26
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSeparatorRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
28
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxSeparatorRootDirective, isStandalone: true, selector: "[rdxSeparatorRoot]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "attr.aria-orientation": "orientationState()", "attr.data-orientation": "orientationState()" } }, ngImport: i0 }); }
|
|
35
29
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSeparatorRootDirective, decorators: [{
|
|
37
31
|
type: Directive,
|
|
38
32
|
args: [{
|
|
39
33
|
selector: '[rdxSeparatorRoot]',
|
|
40
34
|
host: {
|
|
41
35
|
role: 'separator',
|
|
42
|
-
|
|
36
|
+
// Base UI emits `aria-orientation` for both orientations (matching this repo's
|
|
37
|
+
// menu/combobox separators), not just the vertical override.
|
|
38
|
+
'[attr.aria-orientation]': 'orientationState()',
|
|
43
39
|
'[attr.data-orientation]': 'orientationState()'
|
|
44
40
|
}
|
|
45
41
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radix-ng-primitives-separator.mjs","sources":["../../../packages/primitives/separator/src/separator.directive.ts","../../../packages/primitives/separator/radix-ng-primitives-separator.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"radix-ng-primitives-separator.mjs","sources":["../../../packages/primitives/separator/src/separator.directive.ts","../../../packages/primitives/separator/radix-ng-primitives-separator.ts"],"sourcesContent":["import { Directive, input, linkedSignal } from '@angular/core';\n\nconst DEFAULT_ORIENTATION = 'horizontal';\n\nexport type Orientation = 'horizontal' | 'vertical';\n\nexport interface SeparatorProps {\n /**\n * Either `vertical` or `horizontal`. Defaults to `horizontal`.\n */\n orientation?: Orientation;\n}\n\n/**\n * Directive that adds accessible and configurable separator element to the DOM.\n * This can be either horizontal or vertical.\n *\n * @group Components\n */\n@Directive({\n selector: '[rdxSeparatorRoot]',\n host: {\n role: 'separator',\n // Base UI emits `aria-orientation` for both orientations (matching this repo's\n // menu/combobox separators), not just the vertical override.\n '[attr.aria-orientation]': 'orientationState()',\n '[attr.data-orientation]': 'orientationState()'\n }\n})\nexport class RdxSeparatorRootDirective {\n /**\n * Orientation of the separator, can be either 'horizontal' or 'vertical'.\n *\n * @defaultValue 'horizontal'\n * @group Props\n */\n readonly orientation = input<Orientation>(DEFAULT_ORIENTATION);\n\n protected readonly orientationState = linkedSignal(this.orientation);\n\n updateOrientation(value: Orientation) {\n this.orientationState.set(value);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA,MAAM,mBAAmB,GAAG,YAAY;AAWxC;;;;;AAKG;MAWU,yBAAyB,CAAA;AAVtC,IAAA,WAAA,GAAA;AAWI;;;;;AAKG;QACM,IAAA,CAAA,WAAW,GAAG,KAAK,CAAc,mBAAmB;wFAAC;AAE3C,QAAA,IAAA,CAAA,gBAAgB,GAAG,YAAY,CAAC,IAAI,CAAC,WAAW;6FAAC;AAKvE,IAAA;AAHG,IAAA,iBAAiB,CAAC,KAAkB,EAAA;AAChC,QAAA,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC;IACpC;8GAbS,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,WAAA,EAAA,EAAA,UAAA,EAAA,EAAA,uBAAA,EAAA,oBAAA,EAAA,uBAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAVrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACF,wBAAA,IAAI,EAAE,WAAW;;;AAGjB,wBAAA,yBAAyB,EAAE,oBAAoB;AAC/C,wBAAA,yBAAyB,EAAE;AAC9B;AACJ,iBAAA;;;AC5BD;;AAEG;;;;"}
|
|
@@ -590,10 +590,10 @@ class RdxSliderControl {
|
|
|
590
590
|
minStepsBetweenValues: this.root.minStepsBetweenValues()
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
594
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
593
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
594
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxSliderControl, isStandalone: true, selector: "div[rdxSliderControl]", host: { listeners: { "pointerdown": "onPointerDown($event)" }, properties: { "attr.data-orientation": "root.orientation()", "attr.data-disabled": "root.isDisabled() ? \"\" : undefined", "attr.data-dragging": "root.dragging() ? \"\" : undefined" } }, exportAs: ["rdxSliderControl"], ngImport: i0 }); }
|
|
595
595
|
}
|
|
596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderControl, decorators: [{
|
|
597
597
|
type: Directive,
|
|
598
598
|
args: [{
|
|
599
599
|
selector: 'div[rdxSliderControl]',
|
|
@@ -664,12 +664,13 @@ class RdxSliderIndicator {
|
|
|
664
664
|
styles[startEdge] = `${start}%`;
|
|
665
665
|
styles[mainSide] = `${end - start}%`;
|
|
666
666
|
return styles;
|
|
667
|
-
},
|
|
667
|
+
}, /* @ts-ignore */
|
|
668
|
+
...(ngDevMode ? [{ debugName: "indicatorStyle" }] : /* istanbul ignore next */ []));
|
|
668
669
|
}
|
|
669
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
670
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
670
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
671
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxSliderIndicator, isStandalone: true, selector: "div[rdxSliderIndicator]", host: { properties: { "style": "indicatorStyle()", "attr.data-orientation": "root.orientation()", "attr.data-disabled": "root.isDisabled() ? \"\" : undefined", "attr.data-dragging": "root.dragging() ? \"\" : undefined" } }, exportAs: ["rdxSliderIndicator"], ngImport: i0 }); }
|
|
671
672
|
}
|
|
672
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderIndicator, decorators: [{
|
|
673
674
|
type: Directive,
|
|
674
675
|
args: [{
|
|
675
676
|
selector: 'div[rdxSliderIndicator]',
|
|
@@ -723,7 +724,8 @@ class RdxSliderRoot {
|
|
|
723
724
|
this.cva = injectControlValueAccessor();
|
|
724
725
|
this.document = injectDocument();
|
|
725
726
|
this.compositeList = inject(RdxCompositeList, { self: true });
|
|
726
|
-
this.id = input(injectId('rdx-slider-'),
|
|
727
|
+
this.id = input(injectId('rdx-slider-'), /* @ts-ignore */
|
|
728
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
727
729
|
/**
|
|
728
730
|
* The minimum value of the slider.
|
|
729
731
|
* @default 0
|
|
@@ -753,7 +755,8 @@ class RdxSliderRoot {
|
|
|
753
755
|
* The orientation of the slider.
|
|
754
756
|
* @default 'horizontal'
|
|
755
757
|
*/
|
|
756
|
-
this.orientation = input('horizontal',
|
|
758
|
+
this.orientation = input('horizontal', /* @ts-ignore */
|
|
759
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
757
760
|
/**
|
|
758
761
|
* The reading direction. Mirrors the horizontal axis when set to `'rtl'`.
|
|
759
762
|
* @default 'ltr'
|
|
@@ -764,46 +767,59 @@ class RdxSliderRoot {
|
|
|
764
767
|
* How thumbs behave when they meet in a range slider.
|
|
765
768
|
* @default 'push'
|
|
766
769
|
*/
|
|
767
|
-
this.thumbCollisionBehavior = input('push',
|
|
770
|
+
this.thumbCollisionBehavior = input('push', /* @ts-ignore */
|
|
771
|
+
...(ngDevMode ? [{ debugName: "thumbCollisionBehavior" }] : /* istanbul ignore next */ []));
|
|
768
772
|
/**
|
|
769
773
|
* How the thumbs align with the control when the value is at min/max.
|
|
770
774
|
* `center` aligns the thumb center to the control edge; `edge`/`edge-client-only`
|
|
771
775
|
* inset thumbs so their outer edge aligns to the control edge.
|
|
772
776
|
* @default 'center'
|
|
773
777
|
*/
|
|
774
|
-
this.thumbAlignment = input('center',
|
|
778
|
+
this.thumbAlignment = input('center', /* @ts-ignore */
|
|
779
|
+
...(ngDevMode ? [{ debugName: "thumbAlignment" }] : /* istanbul ignore next */ []));
|
|
775
780
|
/** Options forwarded to `Intl.NumberFormat` when displaying and announcing values. */
|
|
776
|
-
this.format = input(
|
|
781
|
+
this.format = input(/* @ts-ignore */
|
|
782
|
+
...(ngDevMode ? [undefined, { debugName: "format" }] : /* istanbul ignore next */ []));
|
|
777
783
|
/** Locale used for value formatting. */
|
|
778
|
-
this.locale = input(
|
|
784
|
+
this.locale = input(/* @ts-ignore */
|
|
785
|
+
...(ngDevMode ? [undefined, { debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
779
786
|
/** Name of the hidden inputs rendered by each thumb, for form submission. */
|
|
780
|
-
this.name = input(
|
|
787
|
+
this.name = input(/* @ts-ignore */
|
|
788
|
+
...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
|
|
781
789
|
/** Id of the form the slider belongs to. */
|
|
782
|
-
this.form = input(
|
|
790
|
+
this.form = input(/* @ts-ignore */
|
|
791
|
+
...(ngDevMode ? [undefined, { debugName: "form" }] : /* istanbul ignore next */ []));
|
|
783
792
|
/**
|
|
784
793
|
* When `true`, the user cannot interact with the slider.
|
|
785
794
|
* @default false
|
|
786
795
|
*/
|
|
787
796
|
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
788
797
|
/** The uncontrolled value of the slider when it is initially rendered. */
|
|
789
|
-
this.defaultValue = input(
|
|
798
|
+
this.defaultValue = input(/* @ts-ignore */
|
|
799
|
+
...(ngDevMode ? [undefined, { debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
790
800
|
/** The controlled value of the slider. Use with `(onValueChange)` or two-way `[(value)]`. */
|
|
791
|
-
this.value = model(
|
|
801
|
+
this.value = model(/* @ts-ignore */
|
|
802
|
+
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
792
803
|
this.ariaLabelledBy = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
|
|
793
804
|
/** Emitted when the value changes (during interaction). */
|
|
794
805
|
this.onValueChange = output();
|
|
795
806
|
/** Emitted when interaction ends, with the final value — useful for committing to a backend. */
|
|
796
807
|
this.onValueCommitted = output();
|
|
797
808
|
/** @ignore */
|
|
798
|
-
this.controlRef = signal(null,
|
|
809
|
+
this.controlRef = signal(null, /* @ts-ignore */
|
|
810
|
+
...(ngDevMode ? [{ debugName: "controlRef" }] : /* istanbul ignore next */ []));
|
|
799
811
|
/** @ignore Active thumb index (-1 when none). */
|
|
800
|
-
this.active = signal(-1,
|
|
812
|
+
this.active = signal(-1, /* @ts-ignore */
|
|
813
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
801
814
|
/** @ignore Last thumb index that was focused/used, drives z-index stacking. */
|
|
802
|
-
this.lastUsedThumbIndex = signal(-1,
|
|
815
|
+
this.lastUsedThumbIndex = signal(-1, /* @ts-ignore */
|
|
816
|
+
...(ngDevMode ? [{ debugName: "lastUsedThumbIndex" }] : /* istanbul ignore next */ []));
|
|
803
817
|
/** @ignore Whether a pointer drag is in progress. */
|
|
804
|
-
this.dragging = signal(false,
|
|
818
|
+
this.dragging = signal(false, /* @ts-ignore */
|
|
819
|
+
...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
|
|
805
820
|
/** @ignore Edge-aligned thumb/indicator positions, in control-relative percentages. */
|
|
806
|
-
this.indicatorPosition = signal([undefined, undefined],
|
|
821
|
+
this.indicatorPosition = signal([undefined, undefined], /* @ts-ignore */
|
|
822
|
+
...(ngDevMode ? [{ debugName: "indicatorPosition" }] : /* istanbul ignore next */ []));
|
|
807
823
|
/** @ignore Pointer-drag scratch state (not reactive). */
|
|
808
824
|
this.pressedThumbIndex = -1;
|
|
809
825
|
/** @ignore */
|
|
@@ -815,15 +831,20 @@ class RdxSliderRoot {
|
|
|
815
831
|
/** @ignore */
|
|
816
832
|
this.lastChangeReason = 'none';
|
|
817
833
|
/** @ignore */
|
|
818
|
-
this.isDisabled = computed(() => !!this.cva.disabled(),
|
|
834
|
+
this.isDisabled = computed(() => !!this.cva.disabled(), /* @ts-ignore */
|
|
835
|
+
...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
819
836
|
/** @ignore */
|
|
820
|
-
this.inset = computed(() => this.thumbAlignment() !== 'center',
|
|
837
|
+
this.inset = computed(() => this.thumbAlignment() !== 'center', /* @ts-ignore */
|
|
838
|
+
...(ngDevMode ? [{ debugName: "inset" }] : /* istanbul ignore next */ []));
|
|
821
839
|
/** @ignore */
|
|
822
|
-
this.renderBeforeHydration = computed(() => this.thumbAlignment() === 'edge',
|
|
840
|
+
this.renderBeforeHydration = computed(() => this.thumbAlignment() === 'edge', /* @ts-ignore */
|
|
841
|
+
...(ngDevMode ? [{ debugName: "renderBeforeHydration" }] : /* istanbul ignore next */ []));
|
|
823
842
|
/** @ignore The current value source (controlled value, else default, else min). */
|
|
824
|
-
this.currentRaw = computed(() => this.cva.value() ?? this.defaultValue() ?? this.min(),
|
|
843
|
+
this.currentRaw = computed(() => this.cva.value() ?? this.defaultValue() ?? this.min(), /* @ts-ignore */
|
|
844
|
+
...(ngDevMode ? [{ debugName: "currentRaw" }] : /* istanbul ignore next */ []));
|
|
825
845
|
/** Whether the slider has multiple thumbs (the value is an array). */
|
|
826
|
-
this.range = computed(() => Array.isArray(this.cva.value() ?? this.defaultValue()),
|
|
846
|
+
this.range = computed(() => Array.isArray(this.cva.value() ?? this.defaultValue()), /* @ts-ignore */
|
|
847
|
+
...(ngDevMode ? [{ debugName: "range" }] : /* istanbul ignore next */ []));
|
|
827
848
|
/** The clamped values rendered to the user, sorted ascending for range sliders. */
|
|
828
849
|
this.values = computed(() => {
|
|
829
850
|
const raw = this.currentRaw();
|
|
@@ -831,14 +852,17 @@ class RdxSliderRoot {
|
|
|
831
852
|
const max = this.max();
|
|
832
853
|
const arr = (Array.isArray(raw) ? raw.slice() : [raw]).map((v) => clamp(v, min, max));
|
|
833
854
|
return this.range() ? arr.sort(asc) : arr;
|
|
834
|
-
},
|
|
835
|
-
|
|
855
|
+
}, /* @ts-ignore */
|
|
856
|
+
...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
|
|
857
|
+
this.thumbs = signal([], /* @ts-ignore */
|
|
858
|
+
...(ngDevMode ? [{ debugName: "thumbs" }] : /* istanbul ignore next */ []));
|
|
836
859
|
/** Registered thumbs in DOM order. */
|
|
837
860
|
this.thumbList = this.thumbs.asReadonly();
|
|
838
861
|
/** Input ids registered by thumbs, in DOM order. */
|
|
839
862
|
this.thumbInputIds = computed(() => Array.from(this.compositeList.itemMap().values())
|
|
840
863
|
.map((metadata) => metadata['inputId'])
|
|
841
|
-
.filter((inputId) => typeof inputId === 'string' && inputId.length > 0),
|
|
864
|
+
.filter((inputId) => typeof inputId === 'string' && inputId.length > 0), /* @ts-ignore */
|
|
865
|
+
...(ngDevMode ? [{ debugName: "thumbInputIds" }] : /* istanbul ignore next */ []));
|
|
842
866
|
}
|
|
843
867
|
/** @ignore */
|
|
844
868
|
registerThumb(thumb) {
|
|
@@ -960,10 +984,10 @@ class RdxSliderRoot {
|
|
|
960
984
|
getOwnerWindow() {
|
|
961
985
|
return this.document.defaultView ?? undefined;
|
|
962
986
|
}
|
|
963
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
964
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
987
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
988
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxSliderRoot, isStandalone: true, selector: "div[rdxSliderRoot]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, largeStep: { classPropertyName: "largeStep", publicName: "largeStep", isSignal: true, isRequired: false, transformFunction: null }, minStepsBetweenValues: { classPropertyName: "minStepsBetweenValues", publicName: "minStepsBetweenValues", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, dirInput: { classPropertyName: "dirInput", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, thumbCollisionBehavior: { classPropertyName: "thumbCollisionBehavior", publicName: "thumbCollisionBehavior", isSignal: true, isRequired: false, transformFunction: null }, thumbAlignment: { classPropertyName: "thumbAlignment", publicName: "thumbAlignment", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", onValueChange: "onValueChange", onValueCommitted: "onValueCommitted" }, host: { attributes: { "role": "group" }, properties: { "id": "id()", "attr.aria-labelledby": "ariaLabelledBy()", "attr.dir": "dir()", "attr.data-orientation": "orientation()", "attr.data-disabled": "isDisabled() ? \"\" : undefined", "attr.data-dragging": "dragging() ? \"\" : undefined" } }, providers: [provideSliderRootContext(() => inject(RdxSliderRoot))], exportAs: ["rdxSliderRoot"], hostDirectives: [{ directive: i1.RdxCompositeList }, { directive: i2.RdxControlValueAccessor, inputs: ["value", "value", "disabled", "disabled"] }], ngImport: i0 }); }
|
|
965
989
|
}
|
|
966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderRoot, decorators: [{
|
|
967
991
|
type: Directive,
|
|
968
992
|
args: [{
|
|
969
993
|
selector: 'div[rdxSliderRoot]',
|
|
@@ -1001,7 +1025,8 @@ class RdxSliderThumb {
|
|
|
1001
1025
|
this.element = inject(ElementRef).nativeElement;
|
|
1002
1026
|
/** The nested range input, set by `[rdxSliderThumbInput]`. */
|
|
1003
1027
|
this.inputElement = null;
|
|
1004
|
-
this.inputId = signal(undefined,
|
|
1028
|
+
this.inputId = signal(undefined, /* @ts-ignore */
|
|
1029
|
+
...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
|
|
1005
1030
|
/** Explicit index for this thumb (required for SSR range sliders). */
|
|
1006
1031
|
this.indexInput = input(undefined, { ...(ngDevMode ? { debugName: "indexInput" } : /* istanbul ignore next */ {}), alias: 'index',
|
|
1007
1032
|
transform: (v) => (v == null ? undefined : numberAttribute(v)) });
|
|
@@ -1018,16 +1043,21 @@ class RdxSliderThumb {
|
|
|
1018
1043
|
}
|
|
1019
1044
|
const compositeIndex = this.listItem.index();
|
|
1020
1045
|
return compositeIndex === -1 ? this.root.thumbIndexOf(this) : compositeIndex;
|
|
1021
|
-
},
|
|
1046
|
+
}, /* @ts-ignore */
|
|
1047
|
+
...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
1022
1048
|
/** Whether this thumb is disabled (own state OR root disabled). */
|
|
1023
|
-
this.disabled = computed(() => this.thumbDisabled() || this.root.isDisabled(),
|
|
1049
|
+
this.disabled = computed(() => this.thumbDisabled() || this.root.isDisabled(), /* @ts-ignore */
|
|
1050
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1024
1051
|
/** The value represented by this thumb. */
|
|
1025
|
-
this.value = computed(() => this.root.values()[this.index()],
|
|
1052
|
+
this.value = computed(() => this.root.values()[this.index()], /* @ts-ignore */
|
|
1053
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1026
1054
|
this.percent = computed(() => {
|
|
1027
1055
|
const value = this.value();
|
|
1028
1056
|
return value === undefined ? NaN : valueToPercent(value, this.root.min(), this.root.max());
|
|
1029
|
-
},
|
|
1030
|
-
|
|
1057
|
+
}, /* @ts-ignore */
|
|
1058
|
+
...(ngDevMode ? [{ debugName: "percent" }] : /* istanbul ignore next */ []));
|
|
1059
|
+
this.insetPosition = signal(undefined, /* @ts-ignore */
|
|
1060
|
+
...(ngDevMode ? [{ debugName: "insetPosition" }] : /* istanbul ignore next */ []));
|
|
1031
1061
|
this.thumbStyle = computed(() => {
|
|
1032
1062
|
const vertical = this.root.orientation() === 'vertical';
|
|
1033
1063
|
const rtl = this.root.dir() === 'rtl';
|
|
@@ -1065,7 +1095,8 @@ class RdxSliderThumb {
|
|
|
1065
1095
|
style['z-index'] = zIndex;
|
|
1066
1096
|
}
|
|
1067
1097
|
return style;
|
|
1068
|
-
},
|
|
1098
|
+
}, /* @ts-ignore */
|
|
1099
|
+
...(ngDevMode ? [{ debugName: "thumbStyle" }] : /* istanbul ignore next */ []));
|
|
1069
1100
|
effect(() => {
|
|
1070
1101
|
this.listItem.setMetadata({
|
|
1071
1102
|
inputId: this.inputId()
|
|
@@ -1141,10 +1172,10 @@ class RdxSliderThumb {
|
|
|
1141
1172
|
this.inputElement = null;
|
|
1142
1173
|
this.inputId.set(undefined);
|
|
1143
1174
|
}
|
|
1144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1145
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1176
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxSliderThumb, isStandalone: true, selector: "div[rdxSliderThumb]", inputs: { indexInput: { classPropertyName: "indexInput", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, thumbDisabled: { classPropertyName: "thumbDisabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerdown": "onPointerDown($event)" }, properties: { "style": "thumbStyle()", "attr.data-index": "index()", "attr.data-orientation": "root.orientation()", "attr.data-disabled": "disabled() ? \"\" : undefined", "attr.data-dragging": "root.dragging() ? \"\" : undefined" } }, exportAs: ["rdxSliderThumb"], hostDirectives: [{ directive: i1.RdxCompositeListItem }], ngImport: i0 }); }
|
|
1146
1177
|
}
|
|
1147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderThumb, decorators: [{
|
|
1148
1179
|
type: Directive,
|
|
1149
1180
|
args: [{
|
|
1150
1181
|
selector: 'div[rdxSliderThumb]',
|
|
@@ -1173,13 +1204,17 @@ class RdxSliderThumbInput {
|
|
|
1173
1204
|
this.root = injectSliderRootContext();
|
|
1174
1205
|
this.thumb = inject(RdxSliderThumb);
|
|
1175
1206
|
this.element = inject(ElementRef).nativeElement;
|
|
1176
|
-
this.id = input(injectId('rdx-slider-thumb-input-'),
|
|
1207
|
+
this.id = input(injectId('rdx-slider-thumb-input-'), /* @ts-ignore */
|
|
1208
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
1177
1209
|
this.ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
1178
1210
|
this.ariaValueTextInput = input(undefined, { ...(ngDevMode ? { debugName: "ariaValueTextInput" } : /* istanbul ignore next */ {}), alias: 'aria-valuetext' });
|
|
1179
|
-
this.writingMode = computed(() => this.root.orientation() === 'vertical' ? (this.root.dir() === 'rtl' ? 'vertical-rl' : 'vertical-lr') : undefined,
|
|
1180
|
-
|
|
1211
|
+
this.writingMode = computed(() => this.root.orientation() === 'vertical' ? (this.root.dir() === 'rtl' ? 'vertical-rl' : 'vertical-lr') : undefined, /* @ts-ignore */
|
|
1212
|
+
...(ngDevMode ? [{ debugName: "writingMode" }] : /* istanbul ignore next */ []));
|
|
1213
|
+
this.ariaLabelledBy = computed(() => this.ariaLabel() == null ? this.root.ariaLabelledBy() : undefined, /* @ts-ignore */
|
|
1214
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
1181
1215
|
this.valueText = computed(() => this.ariaValueTextInput() ??
|
|
1182
|
-
getDefaultAriaValueText(this.root.values(), this.thumb.index(), this.root.format(), this.root.locale()),
|
|
1216
|
+
getDefaultAriaValueText(this.root.values(), this.thumb.index(), this.root.format(), this.root.locale()), /* @ts-ignore */
|
|
1217
|
+
...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
|
|
1183
1218
|
// Host element exists in the constructor; the id may be user-provided and can update.
|
|
1184
1219
|
effect(() => this.thumb.setInputElement(this.element, this.id()));
|
|
1185
1220
|
inject(DestroyRef).onDestroy(() => {
|
|
@@ -1256,10 +1291,10 @@ class RdxSliderThumbInput {
|
|
|
1256
1291
|
event.preventDefault();
|
|
1257
1292
|
}
|
|
1258
1293
|
}
|
|
1259
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1260
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderThumbInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1295
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxSliderThumbInput, isStandalone: true, selector: "input[rdxSliderThumbInput]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaValueTextInput: { classPropertyName: "ariaValueTextInput", publicName: "aria-valuetext", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "range" }, listeners: { "keydown": "onKeyDown($event)", "change": "onChange($event)", "focus": "onFocus()", "blur": "onBlur()" }, properties: { "id": "id()", "style.writing-mode": "writingMode()", "attr.min": "root.min()", "attr.max": "root.max()", "attr.step": "root.step()", "value": "thumb.value() ?? \"\"", "disabled": "thumb.disabled()", "attr.name": "root.name()", "attr.form": "root.form()", "attr.aria-orientation": "root.orientation()", "attr.aria-valuenow": "thumb.value()", "attr.aria-valuetext": "valueText()", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledBy()" }, styleAttribute: "position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: inherit;" }, exportAs: ["rdxSliderThumbInput"], ngImport: i0 }); }
|
|
1261
1296
|
}
|
|
1262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderThumbInput, decorators: [{
|
|
1263
1298
|
type: Directive,
|
|
1264
1299
|
args: [{
|
|
1265
1300
|
selector: 'input[rdxSliderThumbInput]',
|
|
@@ -1281,7 +1316,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1281
1316
|
'[attr.aria-valuetext]': 'valueText()',
|
|
1282
1317
|
'[attr.aria-label]': 'ariaLabel()',
|
|
1283
1318
|
'[attr.aria-labelledby]': 'ariaLabelledBy()',
|
|
1284
|
-
'[attr.data-index]': 'thumb.index()',
|
|
1285
1319
|
'(keydown)': 'onKeyDown($event)',
|
|
1286
1320
|
'(change)': 'onChange($event)',
|
|
1287
1321
|
'(focus)': 'onFocus()',
|
|
@@ -1299,10 +1333,10 @@ class RdxSliderTrack {
|
|
|
1299
1333
|
constructor() {
|
|
1300
1334
|
this.root = injectSliderRootContext();
|
|
1301
1335
|
}
|
|
1302
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1303
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderTrack, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1337
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxSliderTrack, isStandalone: true, selector: "div[rdxSliderTrack]", host: { properties: { "attr.data-orientation": "root.orientation()", "attr.data-disabled": "root.isDisabled() ? \"\" : undefined", "attr.data-dragging": "root.dragging() ? \"\" : undefined" }, styleAttribute: "position: relative;" }, exportAs: ["rdxSliderTrack"], ngImport: i0 }); }
|
|
1304
1338
|
}
|
|
1305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderTrack, decorators: [{
|
|
1306
1340
|
type: Directive,
|
|
1307
1341
|
args: [{
|
|
1308
1342
|
selector: 'div[rdxSliderTrack]',
|
|
@@ -1326,20 +1360,23 @@ class RdxSliderValue {
|
|
|
1326
1360
|
constructor() {
|
|
1327
1361
|
this.root = injectSliderRootContext();
|
|
1328
1362
|
/** The separator placed between values of a range slider. */
|
|
1329
|
-
this.separator = input(' – ',
|
|
1363
|
+
this.separator = input(' – ', /* @ts-ignore */
|
|
1364
|
+
...(ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []));
|
|
1330
1365
|
this.forAttr = computed(() => {
|
|
1331
1366
|
const inputIds = this.root.thumbInputIds();
|
|
1332
1367
|
return inputIds.length > 0 ? inputIds.join(' ') : undefined;
|
|
1333
|
-
},
|
|
1368
|
+
}, /* @ts-ignore */
|
|
1369
|
+
...(ngDevMode ? [{ debugName: "forAttr" }] : /* istanbul ignore next */ []));
|
|
1334
1370
|
this.display = computed(() => this.root
|
|
1335
1371
|
.values()
|
|
1336
1372
|
.map((value) => this.root.formatValue(value) || `${value}`)
|
|
1337
|
-
.join(this.separator()),
|
|
1373
|
+
.join(this.separator()), /* @ts-ignore */
|
|
1374
|
+
...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
1338
1375
|
}
|
|
1339
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1340
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1376
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderValue, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1377
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxSliderValue, isStandalone: true, selector: "output[rdxSliderValue]", inputs: { separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-live": "off" }, properties: { "attr.for": "forAttr()", "textContent": "display()" } }, exportAs: ["rdxSliderValue"], ngImport: i0 }); }
|
|
1341
1378
|
}
|
|
1342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderValue, decorators: [{
|
|
1343
1380
|
type: Directive,
|
|
1344
1381
|
args: [{
|
|
1345
1382
|
selector: 'output[rdxSliderValue]',
|
|
@@ -1362,8 +1399,8 @@ const _imports = [
|
|
|
1362
1399
|
RdxSliderValue
|
|
1363
1400
|
];
|
|
1364
1401
|
class RdxSliderModule {
|
|
1365
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1366
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1403
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderModule, imports: [RdxSliderRoot,
|
|
1367
1404
|
RdxSliderControl,
|
|
1368
1405
|
RdxSliderTrack,
|
|
1369
1406
|
RdxSliderIndicator,
|
|
@@ -1376,9 +1413,9 @@ class RdxSliderModule {
|
|
|
1376
1413
|
RdxSliderThumb,
|
|
1377
1414
|
RdxSliderThumbInput,
|
|
1378
1415
|
RdxSliderValue] }); }
|
|
1379
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1416
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderModule }); }
|
|
1380
1417
|
}
|
|
1381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxSliderModule, decorators: [{
|
|
1382
1419
|
type: NgModule,
|
|
1383
1420
|
args: [{
|
|
1384
1421
|
imports: [..._imports],
|