@symbiote-native/slider 5.0.3 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/angular/slider/index.android.js +3 -1
- package/build/angular/slider/index.ios.js +3 -1
- package/build/angular/slider/shared.d.ts +6 -1
- package/build/angular/slider/shared.js +19 -0
- package/build/core/slider-props.js +4 -6
- package/build/svelte/index.d.ts +3 -0
- package/build/svelte/index.js +9 -0
- package/build/svelte/slider/index.svelte +274 -0
- package/build/svelte/slider/index.svelte.d.ts +5 -0
- package/build/svelte/slider/slider-platform.android.d.ts +2 -0
- package/build/svelte/slider/slider-platform.android.js +11 -0
- package/build/svelte/slider/slider-platform.d.ts +1 -0
- package/build/svelte/slider/slider-platform.ios.d.ts +2 -0
- package/build/svelte/slider/slider-platform.ios.js +12 -0
- package/build/svelte/slider/slider-platform.js +5 -0
- package/build/svelte/slider/slider-props.d.ts +7 -0
- package/build/svelte/slider/slider-props.js +1 -0
- package/build-ngc/angular/slider/index.android.js +6 -4
- package/build-ngc/angular/slider/index.android.js.map +1 -1
- package/build-ngc/angular/slider/index.ios.js +6 -4
- package/build-ngc/angular/slider/index.ios.js.map +1 -1
- package/build-ngc/angular/slider/shared.d.ts +6 -1
- package/build-ngc/angular/slider/shared.js +22 -3
- package/build-ngc/angular/slider/shared.js.map +1 -1
- package/build-ngc/core/slider-props.js +4 -6
- package/build-ngc/core/slider-props.js.map +1 -1
- package/package.json +33 -14
- package/src/angular/slider/index.android.ts +3 -1
- package/src/angular/slider/index.ios.ts +3 -1
- package/src/angular/slider/shared.ts +25 -1
- package/src/core/slider-props.ts +12 -16
- package/src/svelte/index.ts +12 -0
- package/src/svelte/slider/index.svelte +274 -0
- package/src/svelte/slider/slider-platform.android.ts +14 -0
- package/src/svelte/slider/slider-platform.ios.ts +15 -0
- package/src/svelte/slider/slider-platform.ts +5 -0
- package/src/svelte/slider/slider-props.ts +14 -0
|
@@ -34,7 +34,8 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
34
34
|
}
|
|
35
35
|
return useValue ? value : void 0;
|
|
36
36
|
};
|
|
37
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
37
|
+
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
|
38
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
38
39
|
import { DescriptorOutlet } from '@symbiote-native/angular';
|
|
39
40
|
import { SliderBase } from './shared.js';
|
|
40
41
|
import { SLIDER_STEP_RESOLUTION_ANDROID } from '../../core/index.js';
|
|
@@ -45,6 +46,7 @@ let Slider = (() => {
|
|
|
45
46
|
standalone: true,
|
|
46
47
|
imports: [DescriptorOutlet],
|
|
47
48
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
49
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => Slider), multi: true }],
|
|
48
50
|
template: `<symbiote-descriptor-outlet [node]="descriptor" />`,
|
|
49
51
|
})];
|
|
50
52
|
let _classDescriptor;
|
|
@@ -35,7 +35,8 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
35
35
|
}
|
|
36
36
|
return useValue ? value : void 0;
|
|
37
37
|
};
|
|
38
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
38
|
+
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
|
39
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
39
40
|
import { DescriptorOutlet } from '@symbiote-native/angular';
|
|
40
41
|
import { SliderBase } from './shared.js';
|
|
41
42
|
import { SLIDER_IOS_DEFAULT_HEIGHT, SLIDER_STEP_RESOLUTION_IOS } from '../../core/index.js';
|
|
@@ -46,6 +47,7 @@ let Slider = (() => {
|
|
|
46
47
|
standalone: true,
|
|
47
48
|
imports: [DescriptorOutlet],
|
|
48
49
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
50
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => Slider), multi: true }],
|
|
49
51
|
template: `<symbiote-descriptor-outlet [node]="descriptor" />`,
|
|
50
52
|
})];
|
|
51
53
|
let _classDescriptor;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, type OnChanges } from '@angular/core';
|
|
2
|
+
import type { ControlValueAccessor } from '@angular/forms';
|
|
2
3
|
import type { IAccessibilityProps, IAccessibilityStateValue, IAriaProps, IDescriptor } from '@symbiote-native/components';
|
|
3
4
|
import { type ISymbioteEvent } from '@symbiote-native/engine';
|
|
4
5
|
import { type ISliderPlatform, type ISliderProps as ISliderBaseProps } from '../../core';
|
|
5
6
|
export type ISliderProps = Omit<ISliderBaseProps, 'onValueChange' | 'onSlidingStart' | 'onSlidingComplete' | 'onAccessibilityAction'>;
|
|
6
|
-
export declare abstract class SliderBase implements ISliderProps, OnChanges {
|
|
7
|
+
export declare abstract class SliderBase implements ISliderProps, OnChanges, ControlValueAccessor {
|
|
7
8
|
value?: number;
|
|
8
9
|
minimumValue?: number;
|
|
9
10
|
maximumValue?: number;
|
|
@@ -79,6 +80,10 @@ export declare abstract class SliderBase implements ISliderProps, OnChanges {
|
|
|
79
80
|
protected readonly handleSlidingComplete: (event: ISymbioteEvent) => void;
|
|
80
81
|
protected readonly handleAccessibilityAction: (event: ISymbioteEvent) => void;
|
|
81
82
|
protected readonly handleLayout: (event: ISymbioteEvent) => void;
|
|
83
|
+
writeValue(value: number | null): void;
|
|
84
|
+
registerOnChange(fn: (value: number) => void): void;
|
|
85
|
+
registerOnTouched(fn: () => void): void;
|
|
86
|
+
setDisabledState(isDisabled: boolean): void;
|
|
82
87
|
private inputProps;
|
|
83
88
|
get descriptor(): IDescriptor;
|
|
84
89
|
}
|
|
@@ -521,6 +521,25 @@ let SliderBase = (() => {
|
|
|
521
521
|
this.changeDetector.markForCheck();
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
|
+
// ControlValueAccessor — `value`/`disabled` are plain @Input() fields feeding the `descriptor`
|
|
525
|
+
// getter (re-evaluated on every OnPush check, no fold/commit dance), so writeValue()/
|
|
526
|
+
// setDisabledState() can set them straight, no TextInput-style stale-safe seam needed.
|
|
527
|
+
writeValue(value) {
|
|
528
|
+
this.value = value ?? undefined;
|
|
529
|
+
this.changeDetector.markForCheck();
|
|
530
|
+
}
|
|
531
|
+
registerOnChange(fn) {
|
|
532
|
+
this.valueChange.subscribe(fn);
|
|
533
|
+
}
|
|
534
|
+
registerOnTouched(fn) {
|
|
535
|
+
// Slider has no blur concept (it's a drag control, not a text field) — the thumb release is
|
|
536
|
+
// the closest "the user is done interacting" signal.
|
|
537
|
+
this.slidingComplete.subscribe(() => fn());
|
|
538
|
+
}
|
|
539
|
+
setDisabledState(isDisabled) {
|
|
540
|
+
this.disabled = isDisabled;
|
|
541
|
+
this.changeDetector.markForCheck();
|
|
542
|
+
}
|
|
524
543
|
inputProps() {
|
|
525
544
|
return {
|
|
526
545
|
value: this.value,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
// Slider prop types.
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// every adapter re-exports and extends; ISliderViewProps is the pre-resolved input the render fn
|
|
6
|
-
// paints.
|
|
1
|
+
// Slider prop types. ISliderProps is the shared agnostic base every adapter re-exports and
|
|
2
|
+
// extends; ISliderViewProps is the pre-resolved input the render fn paints. The custom
|
|
3
|
+
// `StepMarker` field is per-adapter (a framework element return type can't live here) - see
|
|
4
|
+
// CLAUDE.md's <prop_types_split_agnostic_vs_per_adapter>.
|
|
7
5
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// @symbiote-native/slider/svelte: Svelte wrapper over the @react-native-community/slider native
|
|
2
|
+
// view. Importing this barrel first registers the native view's ViewConfig (../register, a
|
|
3
|
+
// side-effect import of the codegen spec, never the library's React component), then exposes
|
|
4
|
+
// Slider. Mirrors vue/index.ts, except the platform split lives one level down
|
|
5
|
+
// (slider/slider-platform.ts, Metro-filename-selected) - matching this adapter's own
|
|
6
|
+
// Switch/ActivityIndicator convention, since Svelte components are compiled `.svelte` files, not
|
|
7
|
+
// factories like Vue's per-platform `createSlider(platform)`.
|
|
8
|
+
import '../register';
|
|
9
|
+
export { default as Slider } from './slider/index.svelte';
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
// Slider, the Svelte lifecycle half. Logic (value/limit/disabled folds, step-option layout) and
|
|
3
|
+
// the native render live in @symbiote-native/slider core, shared with every adapter; Svelte
|
|
4
|
+
// supplies reactivity (`$state`/`$derived`) and the descriptor bridge for the native
|
|
5
|
+
// `RNCSlider` leaf. The native view carries no symbiote metadata - the engine derives its
|
|
6
|
+
// events/color/image processors from the library's ViewConfig at runtime, registered by the
|
|
7
|
+
// side-effect import in ../index (not here, so this module and its tests stay free of the
|
|
8
|
+
// third-party spec).
|
|
9
|
+
//
|
|
10
|
+
// The leaf is bridged rather than written as `<RNCSlider>` because 'RNCSlider' is neither
|
|
11
|
+
// hyphenated nor lowercase-leading, so Svelte's compiler parses a literal tag as a COMPONENT
|
|
12
|
+
// reference, not an element (confirmed against the compiled output). The descriptor bridge
|
|
13
|
+
// (`native-view-bridge`'s `mountDescriptorChildren`, svelte-adapter-dom-shim skill §19)
|
|
14
|
+
// sidesteps this by calling `document.createElement(child.type)` programmatically, which the
|
|
15
|
+
// compiler never inspects. Imported from `native-view-bridge`, not the package's main barrel -
|
|
16
|
+
// the main barrel pulls in the whole `.svelte` module graph, fatal under vitest's plain
|
|
17
|
+
// svelte-plugin-free transform (this component's own smoke test).
|
|
18
|
+
//
|
|
19
|
+
// The custom-marker overlay's thumb-image cell uses the raw `symbiote-image` host tag rather
|
|
20
|
+
// than the framework's `Image` component: core's `render-steps-indicator.ts` paints the same
|
|
21
|
+
// default-overlay thumb with a bare `el('symbiote-image', {source, style})` Descriptor, and
|
|
22
|
+
// importing another `.svelte` component here would reintroduce the same main-barrel problem
|
|
23
|
+
// one level down.
|
|
24
|
+
import type { ISliderProps } from './slider-props';
|
|
25
|
+
|
|
26
|
+
export type { ISliderProps };
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<script lang="ts">
|
|
30
|
+
import { dlog, type ISymbioteEvent } from '@symbiote-native/engine';
|
|
31
|
+
import {
|
|
32
|
+
mountDescriptorChildren,
|
|
33
|
+
createDescriptorChildrenSync,
|
|
34
|
+
type IDescriptorChildrenMount,
|
|
35
|
+
type ShimElement,
|
|
36
|
+
} from '@symbiote-native/svelte/native-view-bridge';
|
|
37
|
+
import type { IDescriptorChild } from '@symbiote-native/components';
|
|
38
|
+
import {
|
|
39
|
+
sanitizeSliderValue,
|
|
40
|
+
resolveSliderDisabled,
|
|
41
|
+
resolveSliderAccessibilityState,
|
|
42
|
+
resolveSliderLowerLimit,
|
|
43
|
+
resolveSliderUpperLimit,
|
|
44
|
+
valueFromSliderEvent,
|
|
45
|
+
shouldRenderStepsIndicator,
|
|
46
|
+
resolveThumbTintColor,
|
|
47
|
+
shouldPassNativeThumbImage,
|
|
48
|
+
isInvalidLimitConfig,
|
|
49
|
+
computeStepOptions,
|
|
50
|
+
orderStepOptions,
|
|
51
|
+
stepNumberFontSize,
|
|
52
|
+
renderSlider,
|
|
53
|
+
renderSliderNative,
|
|
54
|
+
resolveSliderWrapperStyle,
|
|
55
|
+
resolveStepsContainerStyle,
|
|
56
|
+
renderStepsIndicator,
|
|
57
|
+
STEP_INDICATOR_ELEMENT_STYLE,
|
|
58
|
+
TRACK_MARK_CONTAINER_STYLE,
|
|
59
|
+
THUMB_IMAGE_CONTAINER_STYLE,
|
|
60
|
+
THUMB_IMAGE_STYLE,
|
|
61
|
+
STEP_NUMBER_CONTAINER_STYLE,
|
|
62
|
+
SLIDER_DEFAULT_MINIMUM_VALUE,
|
|
63
|
+
SLIDER_DEFAULT_MAXIMUM_VALUE,
|
|
64
|
+
SLIDER_DEFAULT_STEP,
|
|
65
|
+
SLIDER_ON_CHANGE,
|
|
66
|
+
SLIDER_ON_VALUE_CHANGE,
|
|
67
|
+
SLIDER_ON_SLIDING_START,
|
|
68
|
+
SLIDER_ON_SLIDING_COMPLETE,
|
|
69
|
+
SLIDER_ON_ACCESSIBILITY_ACTION,
|
|
70
|
+
type ISliderViewProps,
|
|
71
|
+
} from '../../core';
|
|
72
|
+
import { PLATFORM } from './slider-platform';
|
|
73
|
+
|
|
74
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
75
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
let {
|
|
79
|
+
value = $bindable(),
|
|
80
|
+
minimumValue,
|
|
81
|
+
maximumValue,
|
|
82
|
+
step,
|
|
83
|
+
lowerLimit,
|
|
84
|
+
upperLimit,
|
|
85
|
+
disabled,
|
|
86
|
+
inverted = false,
|
|
87
|
+
thumbTintColor,
|
|
88
|
+
thumbImage,
|
|
89
|
+
accessibilityState,
|
|
90
|
+
renderStepNumber,
|
|
91
|
+
style,
|
|
92
|
+
class: className,
|
|
93
|
+
stepMarker,
|
|
94
|
+
onValueChange,
|
|
95
|
+
onSlidingStart,
|
|
96
|
+
onSlidingComplete,
|
|
97
|
+
onAccessibilityAction,
|
|
98
|
+
...passthrough
|
|
99
|
+
}: ISliderProps = $props();
|
|
100
|
+
|
|
101
|
+
// Last value native reported, kept only to mark the active step - not the controlled value (the
|
|
102
|
+
// slider is uncontrolled during a drag, unlike Switch: native owns the thumb position). A plain
|
|
103
|
+
// number, not an engine-node reference, so `$state` (not `.raw`) is fine here; only `hostShim*`
|
|
104
|
+
// below needs `.raw`'s no-deep-proxy guarantee for the engine's WeakMap-keyed identity lookups.
|
|
105
|
+
let reportedValue = $state<number | undefined>(undefined);
|
|
106
|
+
// The measured wrapper width the step indicator lays out against; 0 until the first layout.
|
|
107
|
+
let width = $state(0);
|
|
108
|
+
|
|
109
|
+
function handleValueChange(event: ISymbioteEvent): void {
|
|
110
|
+
const next = valueFromSliderEvent(event);
|
|
111
|
+
if (next === undefined) return;
|
|
112
|
+
reportedValue = next;
|
|
113
|
+
// Additive `bind:value` sugar (svelte-adapter-dom-shim skill): reassigning a `$bindable()`
|
|
114
|
+
// prop pushes it to the caller's bound variable, on the same report path as `onValueChange`
|
|
115
|
+
// below (matches the Vue adapter's `emitModelUpdate` timing) - never replacing the
|
|
116
|
+
// `value`/`onValueChange` contract.
|
|
117
|
+
value = next;
|
|
118
|
+
onValueChange?.(next);
|
|
119
|
+
}
|
|
120
|
+
function handleSlidingStart(event: ISymbioteEvent): void {
|
|
121
|
+
const next = valueFromSliderEvent(event);
|
|
122
|
+
if (next !== undefined) onSlidingStart?.(next);
|
|
123
|
+
}
|
|
124
|
+
function handleSlidingComplete(event: ISymbioteEvent): void {
|
|
125
|
+
const next = valueFromSliderEvent(event);
|
|
126
|
+
if (next !== undefined) onSlidingComplete?.(next);
|
|
127
|
+
}
|
|
128
|
+
function handleAccessibilityAction(event: ISymbioteEvent): void {
|
|
129
|
+
onAccessibilityAction?.(event);
|
|
130
|
+
}
|
|
131
|
+
function handleLayout(event: ISymbioteEvent): void {
|
|
132
|
+
const layout = event.nativeEvent.layout;
|
|
133
|
+
if (isRecord(layout) && typeof layout.width === 'number') width = layout.width;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const minimum = $derived(minimumValue ?? SLIDER_DEFAULT_MINIMUM_VALUE);
|
|
137
|
+
const maximum = $derived(maximumValue ?? SLIDER_DEFAULT_MAXIMUM_VALUE);
|
|
138
|
+
const resolvedStep = $derived(step ?? SLIDER_DEFAULT_STEP);
|
|
139
|
+
const lower = $derived(resolveSliderLowerLimit(lowerLimit));
|
|
140
|
+
const upper = $derived(resolveSliderUpperLimit(upperLimit));
|
|
141
|
+
|
|
142
|
+
$effect(() => {
|
|
143
|
+
if (isInvalidLimitConfig(lower, upper)) {
|
|
144
|
+
dlog('Slider: lowerLimit must be smaller than upperLimit');
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
const hasStepMarker = $derived(stepMarker !== undefined);
|
|
149
|
+
const hasThumbImage = $derived(thumbImage !== undefined);
|
|
150
|
+
const showSteps = $derived(shouldRenderStepsIndicator(hasStepMarker, renderStepNumber));
|
|
151
|
+
|
|
152
|
+
// The native view gets a thumbImage only when there is one AND no custom marker (which draws
|
|
153
|
+
// its own thumb), matching the library. Passed raw — the engine runs the image processor
|
|
154
|
+
// derived from RNCSlider's ViewConfig (same path as the color tints).
|
|
155
|
+
const nativeThumbImage = $derived(
|
|
156
|
+
shouldPassNativeThumbImage(hasStepMarker, hasThumbImage) ? thumbImage : undefined,
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
const view = $derived<ISliderViewProps>({
|
|
160
|
+
value: sanitizeSliderValue(value),
|
|
161
|
+
minimumValue: minimum,
|
|
162
|
+
maximumValue: maximum,
|
|
163
|
+
step: resolvedStep,
|
|
164
|
+
lowerLimit: lower,
|
|
165
|
+
upperLimit: upper,
|
|
166
|
+
disabled: resolveSliderDisabled(disabled, accessibilityState),
|
|
167
|
+
inverted,
|
|
168
|
+
thumbTintColor: resolveThumbTintColor(thumbTintColor, hasStepMarker, hasThumbImage),
|
|
169
|
+
thumbImage: nativeThumbImage,
|
|
170
|
+
accessibilityState: resolveSliderAccessibilityState(disabled, accessibilityState),
|
|
171
|
+
width,
|
|
172
|
+
style,
|
|
173
|
+
passthrough: {
|
|
174
|
+
...passthrough,
|
|
175
|
+
[SLIDER_ON_CHANGE]: handleValueChange,
|
|
176
|
+
[SLIDER_ON_VALUE_CHANGE]: handleValueChange,
|
|
177
|
+
[SLIDER_ON_SLIDING_START]: handleSlidingStart,
|
|
178
|
+
[SLIDER_ON_SLIDING_COMPLETE]: handleSlidingComplete,
|
|
179
|
+
[SLIDER_ON_ACCESSIBILITY_ACTION]: handleAccessibilityAction,
|
|
180
|
+
},
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
const options = $derived(computeStepOptions(minimum, maximum, resolvedStep, PLATFORM.stepResolution));
|
|
184
|
+
const currentValue = $derived(reportedValue ?? view.value ?? minimum);
|
|
185
|
+
|
|
186
|
+
// --- No custom marker: renderSlider() is the single source of truth (wrapper + optional
|
|
187
|
+
// default steps overlay + the native leaf), ALL pure Descriptor — mounted via the bridge.
|
|
188
|
+
// Unlike every fixed-shape component elsewhere in this adapter, this Descriptor's own shape
|
|
189
|
+
// genuinely varies with `renderStepNumber` (1 child with no overlay, 2 with one), so the sync
|
|
190
|
+
// below tolerates a child-count change with a clean rebuild instead of assuming constant shape.
|
|
191
|
+
const defaultDescriptor = $derived(
|
|
192
|
+
hasStepMarker
|
|
193
|
+
? undefined
|
|
194
|
+
: renderSlider(
|
|
195
|
+
view,
|
|
196
|
+
PLATFORM,
|
|
197
|
+
showSteps
|
|
198
|
+
? {
|
|
199
|
+
steps: renderStepsIndicator({
|
|
200
|
+
options,
|
|
201
|
+
currentValue,
|
|
202
|
+
width,
|
|
203
|
+
renderStepNumber: renderStepNumber === true,
|
|
204
|
+
thumbImage,
|
|
205
|
+
inverted,
|
|
206
|
+
platform: PLATFORM,
|
|
207
|
+
}),
|
|
208
|
+
onLayout: handleLayout,
|
|
209
|
+
}
|
|
210
|
+
: { onLayout: handleLayout },
|
|
211
|
+
),
|
|
212
|
+
);
|
|
213
|
+
|
|
214
|
+
let hostShimDefault = $state.raw<ShimElement | null>(null);
|
|
215
|
+
let mountedDefault: IDescriptorChildrenMount | undefined;
|
|
216
|
+
let mountedDefaultCount = -1;
|
|
217
|
+
|
|
218
|
+
function syncDefaultChildren(children: IDescriptorChild[]): void {
|
|
219
|
+
if (hostShimDefault === null) return;
|
|
220
|
+
if (mountedDefault === undefined || mountedDefaultCount !== children.length) {
|
|
221
|
+
for (const child of hostShimDefault.children.slice()) hostShimDefault.removeChild(child);
|
|
222
|
+
mountedDefault = mountDescriptorChildren(hostShimDefault, children);
|
|
223
|
+
mountedDefaultCount = children.length;
|
|
224
|
+
} else {
|
|
225
|
+
mountedDefault.update(children);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
$effect(() => {
|
|
230
|
+
const descriptor = defaultDescriptor;
|
|
231
|
+
if (descriptor === undefined) return;
|
|
232
|
+
syncDefaultChildren(descriptor.children);
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
// --- Custom marker: the overlay is hand-authored live template content below (it hosts the
|
|
236
|
+
// caller's `stepMarker` Snippet, a live child no Descriptor can carry — component-render-fn-
|
|
237
|
+
// boundary rule). Only the native leaf (always exactly one, constant shape) is bridged.
|
|
238
|
+
const fontSize = $derived(stepNumberFontSize(options.length));
|
|
239
|
+
const orderedOptions = $derived(orderStepOptions(options, inverted));
|
|
240
|
+
const minOption = $derived(options[0]);
|
|
241
|
+
const maxOption = $derived(options[options.length - 1]);
|
|
242
|
+
const nativeLeafDescriptor = $derived(renderSliderNative(view, PLATFORM));
|
|
243
|
+
const markerWrapperBag = $derived({
|
|
244
|
+
style: resolveSliderWrapperStyle(style, PLATFORM),
|
|
245
|
+
class: className,
|
|
246
|
+
onLayout: handleLayout,
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
let hostShimMarker = $state.raw<ShimElement | null>(null);
|
|
250
|
+
const syncMarkerLeaf = createDescriptorChildrenSync();
|
|
251
|
+
|
|
252
|
+
$effect(() => {
|
|
253
|
+
if (!hasStepMarker) return;
|
|
254
|
+
syncMarkerLeaf(hostShimMarker, [nativeLeafDescriptor]);
|
|
255
|
+
});
|
|
256
|
+
</script>
|
|
257
|
+
|
|
258
|
+
{#if hasStepMarker}
|
|
259
|
+
<symbiote-view p={markerWrapperBag} bind:this={hostShimMarker}>
|
|
260
|
+
<symbiote-view
|
|
261
|
+
p={{
|
|
262
|
+
pointerEvents: 'none',
|
|
263
|
+
testID: 'StepsIndicator-Container',
|
|
264
|
+
style: resolveStepsContainerStyle(width, PLATFORM),
|
|
265
|
+
}}
|
|
266
|
+
>
|
|
267
|
+
{#each orderedOptions as optionValue, index (optionValue)}
|
|
268
|
+
<symbiote-view p={{ style: STEP_INDICATOR_ELEMENT_STYLE }}><symbiote-view p={{ style: TRACK_MARK_CONTAINER_STYLE }}>{@render stepMarker?.({ stepMarked: optionValue === currentValue, currentValue, index, min: minOption, max: maxOption })}{#if thumbImage !== undefined && optionValue === currentValue}<symbiote-view p={{ style: THUMB_IMAGE_CONTAINER_STYLE, testID: 'sliderTrackMark-thumbImage' }}><symbiote-image p={{ source: thumbImage, style: THUMB_IMAGE_STYLE }} /></symbiote-view>{/if}</symbiote-view>{#if renderStepNumber}<symbiote-view p={{ style: STEP_NUMBER_CONTAINER_STYLE }}><symbiote-text p={{ testID: `${index}th-step`, style: { fontSize } }}>{String(optionValue)}</symbiote-text></symbiote-view>{/if}</symbiote-view>
|
|
269
|
+
{/each}
|
|
270
|
+
</symbiote-view>
|
|
271
|
+
</symbiote-view>
|
|
272
|
+
{:else}
|
|
273
|
+
<symbiote-view p={{ ...defaultDescriptor?.props, class: className }} bind:this={hostShimDefault} />
|
|
274
|
+
{/if}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Slider on Android: the native view sizes itself (no default height), lays out implicit steps
|
|
2
|
+
// at 128-point resolution, and keeps the step row at the top. Mirrors
|
|
3
|
+
// packages/slider/src/vue/slider/index.android.ts exactly, one level down (platform CONSTANT
|
|
4
|
+
// here — see index.svelte's header).
|
|
5
|
+
import { SLIDER_STEP_RESOLUTION_ANDROID } from '../../core/index.js';
|
|
6
|
+
const ANDROID_STEPS_CONTAINER_TOP = 0;
|
|
7
|
+
export const PLATFORM = {
|
|
8
|
+
defaultStyle: {},
|
|
9
|
+
stepResolution: SLIDER_STEP_RESOLUTION_ANDROID,
|
|
10
|
+
stepsContainerTop: ANDROID_STEPS_CONTAINER_TOP,
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './slider-platform.ios';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Slider on iOS: the native view has an intrinsic 40pt height (the wrapper applies it as the
|
|
2
|
+
// default), lays out implicit steps at 1000-point resolution, and nudges the step row down 10pt.
|
|
3
|
+
// Also the base (./slider-platform re-exports it) for headless. Mirrors
|
|
4
|
+
// packages/slider/src/vue/slider/index.ios.ts exactly, one level down (platform CONSTANT here,
|
|
5
|
+
// not a per-platform component — see index.svelte's header).
|
|
6
|
+
import { SLIDER_IOS_DEFAULT_HEIGHT, SLIDER_STEP_RESOLUTION_IOS } from '../../core/index.js';
|
|
7
|
+
const IOS_STEPS_CONTAINER_TOP = 10;
|
|
8
|
+
export const PLATFORM = {
|
|
9
|
+
defaultStyle: { height: SLIDER_IOS_DEFAULT_HEIGHT },
|
|
10
|
+
stepResolution: SLIDER_STEP_RESOLUTION_IOS,
|
|
11
|
+
stepsContainerTop: IOS_STEPS_CONTAINER_TOP,
|
|
12
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Base / default: re-exports the iOS build. Metro overrides this with slider-platform.ios.ts /
|
|
2
|
+
// slider-platform.android.ts on a real host; under tsc/vitest the host config resolves here.
|
|
3
|
+
// Filename is the selector, no Platform.OS read — same convention as adapters/svelte's own
|
|
4
|
+
// switch-platform.ts.
|
|
5
|
+
export * from './slider-platform.ios.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { IClassNameValue } from '@symbiote-native/engine';
|
|
3
|
+
import type { ISliderProps as ISliderBaseProps, IStepMarkerProps } from '../../core';
|
|
4
|
+
export type ISliderProps = ISliderBaseProps & {
|
|
5
|
+
class?: IClassNameValue;
|
|
6
|
+
stepMarker?: Snippet<[IStepMarkerProps]>;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Slider on Android: the native view sizes itself (no default height), lays out implicit steps at
|
|
2
2
|
// 128-point resolution, and keeps the step row at the top. Mirrors the library's Android branches.
|
|
3
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
5
|
import { DescriptorOutlet } from '@symbiote-native/angular';
|
|
5
6
|
import { SliderBase } from './shared';
|
|
6
7
|
import { SLIDER_STEP_RESOLUTION_ANDROID } from '../../core';
|
|
@@ -12,16 +13,17 @@ export class Slider extends SliderBase {
|
|
|
12
13
|
stepResolution: SLIDER_STEP_RESOLUTION_ANDROID,
|
|
13
14
|
stepsContainerTop: ANDROID_STEPS_CONTAINER_TOP,
|
|
14
15
|
};
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
16
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Slider, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: Slider, isStandalone: true, selector: "Slider", providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => Slider), multi: true }], usesInheritance: true, ngImport: i0, template: `<symbiote-descriptor-outlet [node]="descriptor" />`, isInline: true, dependencies: [{ kind: "component", type: DescriptorOutlet, selector: "symbiote-descriptor-outlet", inputs: ["node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
17
18
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Slider, decorators: [{
|
|
19
20
|
type: Component,
|
|
20
21
|
args: [{
|
|
21
22
|
selector: 'Slider',
|
|
22
23
|
standalone: true,
|
|
23
24
|
imports: [DescriptorOutlet],
|
|
24
25
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => Slider), multi: true }],
|
|
25
27
|
template: `<symbiote-descriptor-outlet [node]="descriptor" />`,
|
|
26
28
|
}]
|
|
27
29
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../src/angular/slider/index.android.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,mGAAmG;AAEnG,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../src/angular/slider/index.android.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,mGAAmG;AAEnG,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;;AAG5D,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAUtC,MAAM,OAAO,MAAO,SAAQ,UAAU;IACjB,QAAQ,GAAG;QAC5B,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,8BAA8B;QAC9C,iBAAiB,EAAE,2BAA2B;KAC/C,CAAC;uGALS,MAAM;2FAAN,MAAM,qDAHN,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,iDACrF,oDAAoD,4DAHpD,gBAAgB;;2FAKf,MAAM;kBARlB,SAAS;mBAAC;oBACT,QAAQ,EAAE,QAAQ;oBAClB,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;oBAC/F,QAAQ,EAAE,oDAAoD;iBAC/D"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Slider on iOS: the native view has an intrinsic 40pt height (the wrapper applies it as the
|
|
2
2
|
// default), lays out implicit steps at 1000-point resolution, and nudges the step row down 10pt.
|
|
3
3
|
// Also the base (./index re-exports it) for headless. Mirrors the library's iOS branches.
|
|
4
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
|
5
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
6
|
import { DescriptorOutlet } from '@symbiote-native/angular';
|
|
6
7
|
import { SliderBase } from './shared';
|
|
7
8
|
import { SLIDER_IOS_DEFAULT_HEIGHT, SLIDER_STEP_RESOLUTION_IOS } from '../../core';
|
|
@@ -13,16 +14,17 @@ export class Slider extends SliderBase {
|
|
|
13
14
|
stepResolution: SLIDER_STEP_RESOLUTION_IOS,
|
|
14
15
|
stepsContainerTop: IOS_STEPS_CONTAINER_TOP,
|
|
15
16
|
};
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Slider, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: Slider, isStandalone: true, selector: "Slider", providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => Slider), multi: true }], usesInheritance: true, ngImport: i0, template: `<symbiote-descriptor-outlet [node]="descriptor" />`, isInline: true, dependencies: [{ kind: "component", type: DescriptorOutlet, selector: "symbiote-descriptor-outlet", inputs: ["node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
18
19
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Slider, decorators: [{
|
|
20
21
|
type: Component,
|
|
21
22
|
args: [{
|
|
22
23
|
selector: 'Slider',
|
|
23
24
|
standalone: true,
|
|
24
25
|
imports: [DescriptorOutlet],
|
|
25
26
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => Slider), multi: true }],
|
|
26
28
|
template: `<symbiote-descriptor-outlet [node]="descriptor" />`,
|
|
27
29
|
}]
|
|
28
30
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../src/angular/slider/index.ios.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,iGAAiG;AACjG,0FAA0F;AAE1F,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../src/angular/slider/index.ios.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,iGAAiG;AACjG,0FAA0F;AAE1F,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;;AAGnF,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAUnC,MAAM,OAAO,MAAO,SAAQ,UAAU;IACjB,QAAQ,GAAG;QAC5B,YAAY,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE;QACnD,cAAc,EAAE,0BAA0B;QAC1C,iBAAiB,EAAE,uBAAuB;KAC3C,CAAC;uGALS,MAAM;2FAAN,MAAM,qDAHN,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,iDACrF,oDAAoD,4DAHpD,gBAAgB;;2FAKf,MAAM;kBARlB,SAAS;mBAAC;oBACT,QAAQ,EAAE,QAAQ;oBAClB,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;oBAC/F,QAAQ,EAAE,oDAAoD;iBAC/D"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { EventEmitter, type OnChanges } from '@angular/core';
|
|
2
|
+
import type { ControlValueAccessor } from '@angular/forms';
|
|
2
3
|
import type { IAccessibilityProps, IAccessibilityStateValue, IAriaProps, IDescriptor } from '@symbiote-native/components';
|
|
3
4
|
import { type ISymbioteEvent } from '@symbiote-native/engine';
|
|
4
5
|
import { type ISliderPlatform, type ISliderProps as ISliderBaseProps } from '../../core';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export type ISliderProps = Omit<ISliderBaseProps, 'onValueChange' | 'onSlidingStart' | 'onSlidingComplete' | 'onAccessibilityAction'>;
|
|
7
|
-
export declare abstract class SliderBase implements ISliderProps, OnChanges {
|
|
8
|
+
export declare abstract class SliderBase implements ISliderProps, OnChanges, ControlValueAccessor {
|
|
8
9
|
value?: number;
|
|
9
10
|
minimumValue?: number;
|
|
10
11
|
maximumValue?: number;
|
|
@@ -80,6 +81,10 @@ export declare abstract class SliderBase implements ISliderProps, OnChanges {
|
|
|
80
81
|
protected readonly handleSlidingComplete: (event: ISymbioteEvent) => void;
|
|
81
82
|
protected readonly handleAccessibilityAction: (event: ISymbioteEvent) => void;
|
|
82
83
|
protected readonly handleLayout: (event: ISymbioteEvent) => void;
|
|
84
|
+
writeValue(value: number | null): void;
|
|
85
|
+
registerOnChange(fn: (value: number) => void): void;
|
|
86
|
+
registerOnTouched(fn: () => void): void;
|
|
87
|
+
setDisabledState(isDisabled: boolean): void;
|
|
83
88
|
private inputProps;
|
|
84
89
|
get descriptor(): IDescriptor;
|
|
85
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliderBase, never>;
|
|
@@ -155,6 +155,25 @@ export class SliderBase {
|
|
|
155
155
|
this.changeDetector.markForCheck();
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
+
// ControlValueAccessor — `value`/`disabled` are plain @Input() fields feeding the `descriptor`
|
|
159
|
+
// getter (re-evaluated on every OnPush check, no fold/commit dance), so writeValue()/
|
|
160
|
+
// setDisabledState() can set them straight, no TextInput-style stale-safe seam needed.
|
|
161
|
+
writeValue(value) {
|
|
162
|
+
this.value = value ?? undefined;
|
|
163
|
+
this.changeDetector.markForCheck();
|
|
164
|
+
}
|
|
165
|
+
registerOnChange(fn) {
|
|
166
|
+
this.valueChange.subscribe(fn);
|
|
167
|
+
}
|
|
168
|
+
registerOnTouched(fn) {
|
|
169
|
+
// Slider has no blur concept (it's a drag control, not a text field) — the thumb release is
|
|
170
|
+
// the closest "the user is done interacting" signal.
|
|
171
|
+
this.slidingComplete.subscribe(() => fn());
|
|
172
|
+
}
|
|
173
|
+
setDisabledState(isDisabled) {
|
|
174
|
+
this.disabled = isDisabled;
|
|
175
|
+
this.changeDetector.markForCheck();
|
|
176
|
+
}
|
|
158
177
|
inputProps() {
|
|
159
178
|
return {
|
|
160
179
|
value: this.value,
|
|
@@ -277,10 +296,10 @@ export class SliderBase {
|
|
|
277
296
|
});
|
|
278
297
|
return renderSlider(view, this.platform, { steps, onLayout: this.handleLayout });
|
|
279
298
|
}
|
|
280
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
281
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
299
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SliderBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
300
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: SliderBase, isStandalone: true, inputs: { value: "value", minimumValue: "minimumValue", maximumValue: "maximumValue", step: "step", lowerLimit: "lowerLimit", upperLimit: "upperLimit", minimumTrackTintColor: "minimumTrackTintColor", maximumTrackTintColor: "maximumTrackTintColor", thumbTintColor: "thumbTintColor", disabled: "disabled", inverted: "inverted", tapToSeek: "tapToSeek", vertical: "vertical", thumbImage: "thumbImage", minimumTrackImage: "minimumTrackImage", maximumTrackImage: "maximumTrackImage", trackImage: "trackImage", thumbSize: "thumbSize", accessibilityUnits: "accessibilityUnits", accessibilityIncrements: "accessibilityIncrements", renderStepNumber: "renderStepNumber", testID: "testID", style: "style", nativeID: "nativeID", accessible: "accessible", accessibilityLabel: "accessibilityLabel", accessibilityHint: "accessibilityHint", accessibilityRole: "accessibilityRole", accessibilityState: "accessibilityState", accessibilityValue: "accessibilityValue", accessibilityActions: "accessibilityActions", accessibilityLabelledBy: "accessibilityLabelledBy", importantForAccessibility: "importantForAccessibility", accessibilityLiveRegion: "accessibilityLiveRegion", screenReaderFocusable: "screenReaderFocusable", accessibilityViewIsModal: "accessibilityViewIsModal", accessibilityElementsHidden: "accessibilityElementsHidden", accessibilityIgnoresInvertColors: "accessibilityIgnoresInvertColors", accessibilityLanguage: "accessibilityLanguage", accessibilityRespondsToUserInteraction: "accessibilityRespondsToUserInteraction", accessibilityShowsLargeContentViewer: "accessibilityShowsLargeContentViewer", accessibilityLargeContentTitle: "accessibilityLargeContentTitle", onAccessibilityTap: "onAccessibilityTap", onMagicTap: "onMagicTap", onAccessibilityEscape: "onAccessibilityEscape", role: "role", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledBy: ["aria-labelledby", "ariaLabelledBy"], ariaLive: ["aria-live", "ariaLive"], ariaHidden: ["aria-hidden", "ariaHidden"], ariaBusy: ["aria-busy", "ariaBusy"], ariaChecked: ["aria-checked", "ariaChecked"], ariaDisabled: ["aria-disabled", "ariaDisabled"], ariaExpanded: ["aria-expanded", "ariaExpanded"], ariaSelected: ["aria-selected", "ariaSelected"], ariaModal: ["aria-modal", "ariaModal"], ariaValueMax: ["aria-valuemax", "ariaValueMax"], ariaValueMin: ["aria-valuemin", "ariaValueMin"], ariaValueNow: ["aria-valuenow", "ariaValueNow"], ariaValueText: ["aria-valuetext", "ariaValueText"] }, outputs: { valueChange: "valueChange", slidingStart: "slidingStart", slidingComplete: "slidingComplete", accessibilityAction: "accessibilityAction" }, usesOnChanges: true, ngImport: i0 });
|
|
282
301
|
}
|
|
283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SliderBase, decorators: [{
|
|
284
303
|
type: Directive
|
|
285
304
|
}], propDecorators: { value: [{
|
|
286
305
|
type: Input
|