@cdevhub/ngx-tw 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +264 -49
- package/fesm2022/cdevhub-ngx-tw-accordion.mjs +11 -7
- package/fesm2022/cdevhub-ngx-tw-accordion.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-alert.mjs +43 -29
- package/fesm2022/cdevhub-ngx-tw-alert.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-aspect-ratio.mjs +103 -0
- package/fesm2022/cdevhub-ngx-tw-aspect-ratio.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-avatar.mjs +56 -31
- package/fesm2022/cdevhub-ngx-tw-avatar.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-badge.mjs +61 -35
- package/fesm2022/cdevhub-ngx-tw-badge.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-breadcrumbs.mjs +154 -93
- package/fesm2022/cdevhub-ngx-tw-breadcrumbs.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-button.mjs +35 -22
- package/fesm2022/cdevhub-ngx-tw-button.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-calendar-luxon.mjs +3 -3
- package/fesm2022/cdevhub-ngx-tw-calendar-luxon.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-calendar.mjs +416 -216
- package/fesm2022/cdevhub-ngx-tw-calendar.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-card.mjs +33 -24
- package/fesm2022/cdevhub-ngx-tw-card.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-carousel.mjs +152 -81
- package/fesm2022/cdevhub-ngx-tw-carousel.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-checkbox.mjs +99 -47
- package/fesm2022/cdevhub-ngx-tw-checkbox.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-code-block.mjs +42 -29
- package/fesm2022/cdevhub-ngx-tw-code-block.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-collapsible.mjs +46 -29
- package/fesm2022/cdevhub-ngx-tw-collapsible.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-combobox.mjs +205 -110
- package/fesm2022/cdevhub-ngx-tw-combobox.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-command-palette.mjs +141 -74
- package/fesm2022/cdevhub-ngx-tw-command-palette.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-core.mjs +16 -11
- package/fesm2022/cdevhub-ngx-tw-core.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-date-picker.mjs +395 -149
- package/fesm2022/cdevhub-ngx-tw-date-picker.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-date-range-picker.mjs +305 -150
- package/fesm2022/cdevhub-ngx-tw-date-range-picker.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-dialog.mjs +56 -43
- package/fesm2022/cdevhub-ngx-tw-dialog.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-empty-state.mjs +51 -33
- package/fesm2022/cdevhub-ngx-tw-empty-state.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-file-upload.mjs +905 -0
- package/fesm2022/cdevhub-ngx-tw-file-upload.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-flip-card.mjs +49 -26
- package/fesm2022/cdevhub-ngx-tw-flip-card.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-form-field.mjs +133 -74
- package/fesm2022/cdevhub-ngx-tw-form-field.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-icon-lucide.mjs +2 -2
- package/fesm2022/cdevhub-ngx-tw-icon-lucide.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-icon.mjs +28 -17
- package/fesm2022/cdevhub-ngx-tw-icon.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-input.mjs +37 -21
- package/fesm2022/cdevhub-ngx-tw-input.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-item.mjs +33 -24
- package/fesm2022/cdevhub-ngx-tw-item.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-menu.mjs +63 -48
- package/fesm2022/cdevhub-ngx-tw-menu.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-number-input.mjs +622 -0
- package/fesm2022/cdevhub-ngx-tw-number-input.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-paginator.mjs +142 -72
- package/fesm2022/cdevhub-ngx-tw-paginator.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-popover.mjs +101 -46
- package/fesm2022/cdevhub-ngx-tw-popover.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-progress-bar.mjs +57 -30
- package/fesm2022/cdevhub-ngx-tw-progress-bar.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-radio.mjs +108 -57
- package/fesm2022/cdevhub-ngx-tw-radio.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-segmented-control.mjs +46 -26
- package/fesm2022/cdevhub-ngx-tw-segmented-control.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-select.mjs +227 -122
- package/fesm2022/cdevhub-ngx-tw-select.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-separator.mjs +21 -12
- package/fesm2022/cdevhub-ngx-tw-separator.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-sheet.mjs +58 -44
- package/fesm2022/cdevhub-ngx-tw-sheet.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-skeleton.mjs +25 -14
- package/fesm2022/cdevhub-ngx-tw-skeleton.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-slider.mjs +155 -79
- package/fesm2022/cdevhub-ngx-tw-slider.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-sort.mjs +47 -25
- package/fesm2022/cdevhub-ngx-tw-sort.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-spinner.mjs +29 -16
- package/fesm2022/cdevhub-ngx-tw-spinner.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-split.mjs +72 -42
- package/fesm2022/cdevhub-ngx-tw-split.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-stat.mjs +107 -64
- package/fesm2022/cdevhub-ngx-tw-stat.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-stepper.mjs +113 -47
- package/fesm2022/cdevhub-ngx-tw-stepper.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-switch.mjs +61 -32
- package/fesm2022/cdevhub-ngx-tw-switch.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-tab-nav.mjs +88 -42
- package/fesm2022/cdevhub-ngx-tw-tab-nav.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-table.mjs +266 -118
- package/fesm2022/cdevhub-ngx-tw-table.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-tabs.mjs +102 -52
- package/fesm2022/cdevhub-ngx-tw-tabs.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-tags-input.mjs +798 -0
- package/fesm2022/cdevhub-ngx-tw-tags-input.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-textarea.mjs +16 -8
- package/fesm2022/cdevhub-ngx-tw-textarea.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-theme.mjs +22 -14
- package/fesm2022/cdevhub-ngx-tw-theme.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-time-picker.mjs +243 -95
- package/fesm2022/cdevhub-ngx-tw-time-picker.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-timeline.mjs +149 -82
- package/fesm2022/cdevhub-ngx-tw-timeline.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-toast.mjs +100 -55
- package/fesm2022/cdevhub-ngx-tw-toast.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-tooltip.mjs +50 -28
- package/fesm2022/cdevhub-ngx-tw-tooltip.mjs.map +1 -1
- package/fesm2022/cdevhub-ngx-tw-transfer.mjs +1129 -0
- package/fesm2022/cdevhub-ngx-tw-transfer.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw-tree.mjs +554 -0
- package/fesm2022/cdevhub-ngx-tw-tree.mjs.map +1 -0
- package/fesm2022/cdevhub-ngx-tw.mjs +7 -0
- package/fesm2022/cdevhub-ngx-tw.mjs.map +1 -1
- package/package.json +45 -17
- package/theme/_dark.css +16 -12
- package/theme/_semantic.css +3 -2
- package/theme/index.css +10 -2
- package/types/cdevhub-ngx-tw-aspect-ratio.d.ts +40 -0
- package/types/cdevhub-ngx-tw-calendar.d.ts +39 -8
- package/types/cdevhub-ngx-tw-code-block.d.ts +8 -7
- package/types/cdevhub-ngx-tw-command-palette.d.ts +7 -0
- package/types/cdevhub-ngx-tw-date-picker.d.ts +36 -10
- package/types/cdevhub-ngx-tw-file-upload.d.ts +250 -0
- package/types/cdevhub-ngx-tw-form-field.d.ts +22 -3
- package/types/cdevhub-ngx-tw-icon-lucide.d.ts +21 -3
- package/types/cdevhub-ngx-tw-number-input.d.ts +130 -0
- package/types/cdevhub-ngx-tw-popover.d.ts +8 -0
- package/types/cdevhub-ngx-tw-select.d.ts +1 -1
- package/types/cdevhub-ngx-tw-stepper.d.ts +30 -2
- package/types/cdevhub-ngx-tw-tab-nav.d.ts +8 -0
- package/types/cdevhub-ngx-tw-table.d.ts +30 -1
- package/types/cdevhub-ngx-tw-tabs.d.ts +8 -0
- package/types/cdevhub-ngx-tw-tags-input.d.ts +217 -0
- package/types/cdevhub-ngx-tw-time-picker.d.ts +31 -6
- package/types/cdevhub-ngx-tw-toast.d.ts +1 -1
- package/types/cdevhub-ngx-tw-transfer.d.ts +330 -0
- package/types/cdevhub-ngx-tw-tree.d.ts +189 -0
- package/types/cdevhub-ngx-tw.d.ts +7 -0
|
@@ -178,39 +178,56 @@ const toNumber = (value, fallback) => {
|
|
|
178
178
|
*/
|
|
179
179
|
class SliderComponent {
|
|
180
180
|
/** Lower bound of the slider scale. Defaults to `0`. */
|
|
181
|
-
min = input(0,
|
|
181
|
+
min = input(0, /* @ts-ignore */
|
|
182
|
+
...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
182
183
|
/** Upper bound of the slider scale. Defaults to `100`. */
|
|
183
|
-
max = input(100,
|
|
184
|
+
max = input(100, /* @ts-ignore */
|
|
185
|
+
...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
184
186
|
/** Step increment used for snapping, keyboard nav, and auto-generated marks. Pass `null` for continuous values. Defaults to `1`. */
|
|
185
|
-
step = input(1,
|
|
187
|
+
step = input(1, /* @ts-ignore */
|
|
188
|
+
...(ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []));
|
|
186
189
|
/** Semantic color for the filled portion and thumb border. Defaults to `'primary'`. */
|
|
187
|
-
color = input('primary',
|
|
190
|
+
color = input('primary', /* @ts-ignore */
|
|
191
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
188
192
|
/** Overall scale of the rail, thumb, and typography. Defaults to `'md'`. */
|
|
189
|
-
size = input('md',
|
|
193
|
+
size = input('md', /* @ts-ignore */
|
|
194
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
190
195
|
/** Visual style of the fill: `'solid'` (vivid), `'soft'` (muted), or `'outline'` (rail bordered, fill color-500). Defaults to `'solid'`. */
|
|
191
|
-
variant = input('solid',
|
|
196
|
+
variant = input('solid', /* @ts-ignore */
|
|
197
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
192
198
|
/** When true, prevents interaction and applies muted styling. Defaults to `false`. */
|
|
193
|
-
disabled = input(false,
|
|
199
|
+
disabled = input(false, /* @ts-ignore */
|
|
200
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
194
201
|
/** When true, sets `aria-required="true"` on the thumb for assistive tech. Defaults to `false`. */
|
|
195
|
-
required = input(false,
|
|
202
|
+
required = input(false, /* @ts-ignore */
|
|
203
|
+
...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
196
204
|
/** When true, the slider selects a `[start, end]` range and renders two thumbs. Defaults to `false`. */
|
|
197
|
-
range = input(false,
|
|
205
|
+
range = input(false, /* @ts-ignore */
|
|
206
|
+
...(ngDevMode ? [{ debugName: "range" }] : /* istanbul ignore next */ []));
|
|
198
207
|
/** Tick marks: `true` auto-generates one mark per step, an array supplies custom marks, `false` renders no marks. Defaults to `false`. */
|
|
199
|
-
marks = input(false,
|
|
208
|
+
marks = input(false, /* @ts-ignore */
|
|
209
|
+
...(ngDevMode ? [{ debugName: "marks" }] : /* istanbul ignore next */ []));
|
|
200
210
|
/** When true, renders the mark labels beneath the rail. Requires `marks` to resolve to a list. Defaults to `false`. */
|
|
201
|
-
showMarkLabels = input(false,
|
|
211
|
+
showMarkLabels = input(false, /* @ts-ignore */
|
|
212
|
+
...(ngDevMode ? [{ debugName: "showMarkLabels" }] : /* istanbul ignore next */ []));
|
|
202
213
|
/** When true, renders the min and max values at the ends of the scale. Defaults to `false`. */
|
|
203
|
-
showMinMax = input(false,
|
|
214
|
+
showMinMax = input(false, /* @ts-ignore */
|
|
215
|
+
...(ngDevMode ? [{ debugName: "showMinMax" }] : /* istanbul ignore next */ []));
|
|
204
216
|
/** When true, renders a value bubble above the active thumb (on hover/focus/drag) and the current value in the header. Defaults to `false`. */
|
|
205
|
-
showValue = input(false,
|
|
217
|
+
showValue = input(false, /* @ts-ignore */
|
|
218
|
+
...(ngDevMode ? [{ debugName: "showValue" }] : /* istanbul ignore next */ []));
|
|
206
219
|
/** Optional visible label rendered above the rail. When set, the slider is wired to the label via `aria-labelledby`. */
|
|
207
|
-
label = input(undefined,
|
|
220
|
+
label = input(undefined, /* @ts-ignore */
|
|
221
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
208
222
|
/** Optional secondary description rendered under the label. Mirrored to `aria-describedby`. */
|
|
209
|
-
description = input(undefined,
|
|
223
|
+
description = input(undefined, /* @ts-ignore */
|
|
224
|
+
...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
210
225
|
/** Custom formatter for the value bubble, min/max labels, and `aria-valuetext`. Defaults to an integer or 2-decimal string. */
|
|
211
|
-
valueFormatter = input(undefined,
|
|
226
|
+
valueFormatter = input(undefined, /* @ts-ignore */
|
|
227
|
+
...(ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []));
|
|
212
228
|
/** Optional form name attribute. Purely informational — the component does not render a native input. */
|
|
213
|
-
name = input(undefined,
|
|
229
|
+
name = input(undefined, /* @ts-ignore */
|
|
230
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
214
231
|
/** Accessible name for the single-value thumb when no visible label is provided. */
|
|
215
232
|
ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
216
233
|
/** ID of an external element labelling the single-value thumb. */
|
|
@@ -218,17 +235,21 @@ class SliderComponent {
|
|
|
218
235
|
/** ID of an external element describing the slider. */
|
|
219
236
|
ariaDescribedby = input(undefined, { ...(ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
|
|
220
237
|
/** Accessible name for the start (lower) thumb in range mode. Defaults to `"Minimum"`. */
|
|
221
|
-
ariaLabelStart = input('Minimum',
|
|
238
|
+
ariaLabelStart = input('Minimum', /* @ts-ignore */
|
|
239
|
+
...(ngDevMode ? [{ debugName: "ariaLabelStart" }] : /* istanbul ignore next */ []));
|
|
222
240
|
/** Accessible name for the end (upper) thumb in range mode. Defaults to `"Maximum"`. */
|
|
223
|
-
ariaLabelEnd = input('Maximum',
|
|
241
|
+
ariaLabelEnd = input('Maximum', /* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [{ debugName: "ariaLabelEnd" }] : /* istanbul ignore next */ []));
|
|
224
243
|
/** Two-way bound slider value. A `number` for single mode, or `[start, end]` for range mode. Updates on every interaction. */
|
|
225
|
-
value = model(0,
|
|
244
|
+
value = model(0, /* @ts-ignore */
|
|
245
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
226
246
|
/** Fires continuously while the user drags or holds a key. Payload matches the current `value`. Template event name is `input` — the TS-side identifier is `valueInput` to avoid shadowing the imported `input` factory. */
|
|
227
247
|
valueInput = output({ alias: 'input' });
|
|
228
248
|
/** Fires when the user commits a change (pointer release, key release, or blur after keyboard change). Payload matches the current `value`. */
|
|
229
249
|
change = output();
|
|
230
250
|
/** Per-instance override of the {@link ErrorStateMatcher}. When omitted, the component uses the `TW_ERROR_STATE_MATCHER` token's value. */
|
|
231
|
-
errorStateMatcher = input(undefined,
|
|
251
|
+
errorStateMatcher = input(undefined, /* @ts-ignore */
|
|
252
|
+
...(ngDevMode ? [{ debugName: "errorStateMatcher" }] : /* istanbul ignore next */ []));
|
|
232
253
|
focusMonitor = inject(FocusMonitor);
|
|
233
254
|
elementRef = inject((ElementRef));
|
|
234
255
|
destroyRef = inject(DestroyRef);
|
|
@@ -237,8 +258,10 @@ class SliderComponent {
|
|
|
237
258
|
parentForm = inject(NgForm, { optional: true });
|
|
238
259
|
parentFormGroup = inject(FormGroupDirective, { optional: true });
|
|
239
260
|
defaultMatcher = inject(TW_ERROR_STATE_MATCHER);
|
|
240
|
-
_ngControlRev = signal(0,
|
|
241
|
-
|
|
261
|
+
_ngControlRev = signal(0, /* @ts-ignore */
|
|
262
|
+
...(ngDevMode ? [{ debugName: "_ngControlRev" }] : /* istanbul ignore next */ []));
|
|
263
|
+
_formSubmitRev = signal(0, /* @ts-ignore */
|
|
264
|
+
...(ngDevMode ? [{ debugName: "_formSubmitRev" }] : /* istanbul ignore next */ []));
|
|
242
265
|
/** Whether the form control is in an error state per the configured `ErrorStateMatcher`. */
|
|
243
266
|
errorState = computed(() => {
|
|
244
267
|
this._ngControlRev();
|
|
@@ -250,14 +273,20 @@ class SliderComponent {
|
|
|
250
273
|
const form = this.parentFormGroup ??
|
|
251
274
|
this.parentForm;
|
|
252
275
|
return matcher.isErrorState(this.ngControl?.control ?? null, form);
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
276
|
+
}, /* @ts-ignore */
|
|
277
|
+
...(ngDevMode ? [{ debugName: "errorState" }] : /* istanbul ignore next */ []));
|
|
278
|
+
region = viewChild.required('region', /* @ts-ignore */
|
|
279
|
+
...(ngDevMode ? [{ debugName: "region" }] : /* istanbul ignore next */ []));
|
|
280
|
+
startThumb = viewChild('startThumb', /* @ts-ignore */
|
|
281
|
+
...(ngDevMode ? [{ debugName: "startThumb" }] : /* istanbul ignore next */ []));
|
|
282
|
+
endThumb = viewChild('endThumb', /* @ts-ignore */
|
|
283
|
+
...(ngDevMode ? [{ debugName: "endThumb" }] : /* istanbul ignore next */ []));
|
|
284
|
+
singleThumb = viewChild('singleThumb', /* @ts-ignore */
|
|
285
|
+
...(ngDevMode ? [{ debugName: "singleThumb" }] : /* istanbul ignore next */ []));
|
|
258
286
|
onChange = () => { };
|
|
259
287
|
onTouched = () => { };
|
|
260
|
-
cvaDisabled = signal(false,
|
|
288
|
+
cvaDisabled = signal(false, /* @ts-ignore */
|
|
289
|
+
...(ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
261
290
|
/** @internal ID of the host element. */
|
|
262
291
|
uid = nextId++;
|
|
263
292
|
/** @internal */
|
|
@@ -271,13 +300,18 @@ class SliderComponent {
|
|
|
271
300
|
/** @internal */
|
|
272
301
|
endThumbId = `tw-slider-${this.uid}-end`;
|
|
273
302
|
/** @internal Internal values during drag / interaction, independent of external model. */
|
|
274
|
-
internalStart = linkedSignal(() => toRange(this.value())[0],
|
|
275
|
-
|
|
276
|
-
|
|
303
|
+
internalStart = linkedSignal(() => toRange(this.value())[0], /* @ts-ignore */
|
|
304
|
+
...(ngDevMode ? [{ debugName: "internalStart" }] : /* istanbul ignore next */ []));
|
|
305
|
+
internalEnd = linkedSignal(() => toRange(this.value())[1], /* @ts-ignore */
|
|
306
|
+
...(ngDevMode ? [{ debugName: "internalEnd" }] : /* istanbul ignore next */ []));
|
|
307
|
+
internalSingle = linkedSignal(() => toNumber(this.value(), this.min()), /* @ts-ignore */
|
|
308
|
+
...(ngDevMode ? [{ debugName: "internalSingle" }] : /* istanbul ignore next */ []));
|
|
277
309
|
/** @internal Which thumb currently has an active pointer gesture (or null). Bound in the template to drive the pressed-thumb styling. */
|
|
278
|
-
activeThumb = signal(null,
|
|
310
|
+
activeThumb = signal(null, /* @ts-ignore */
|
|
311
|
+
...(ngDevMode ? [{ debugName: "activeThumb" }] : /* istanbul ignore next */ []));
|
|
279
312
|
/** @internal Which thumb is focused (for bubble visibility). */
|
|
280
|
-
focusedThumb = signal(null,
|
|
313
|
+
focusedThumb = signal(null, /* @ts-ignore */
|
|
314
|
+
...(ngDevMode ? [{ debugName: "focusedThumb" }] : /* istanbul ignore next */ []));
|
|
281
315
|
/** @internal Set of pointer IDs currently captured per-thumb for release tracking. */
|
|
282
316
|
capturedPointers = new Map();
|
|
283
317
|
/** @internal Tracks whether a keyboard interaction has mutated the value since last blur. */
|
|
@@ -298,22 +332,26 @@ class SliderComponent {
|
|
|
298
332
|
}
|
|
299
333
|
// ── Derived state ─────────────────────────────────────────
|
|
300
334
|
/** @internal Effective disabled state (input OR set via CVA). */
|
|
301
|
-
isDisabled = computed(() => this.disabled() || this.cvaDisabled(),
|
|
335
|
+
isDisabled = computed(() => this.disabled() || this.cvaDisabled(), /* @ts-ignore */
|
|
336
|
+
...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
302
337
|
/** @internal Whether a label/value header row should render. */
|
|
303
|
-
hasHeader = computed(() => !!this.label() || this.showValue(),
|
|
338
|
+
hasHeader = computed(() => !!this.label() || this.showValue(), /* @ts-ignore */
|
|
339
|
+
...(ngDevMode ? [{ debugName: "hasHeader" }] : /* istanbul ignore next */ []));
|
|
304
340
|
/** @internal Effective step: min 0 (continuous). */
|
|
305
341
|
effectiveStep = computed(() => {
|
|
306
342
|
const s = this.step();
|
|
307
343
|
if (s === null || s === undefined)
|
|
308
344
|
return 0;
|
|
309
345
|
return Math.abs(s);
|
|
310
|
-
},
|
|
346
|
+
}, /* @ts-ignore */
|
|
347
|
+
...(ngDevMode ? [{ debugName: "effectiveStep" }] : /* istanbul ignore next */ []));
|
|
311
348
|
/** @internal Current scale range. */
|
|
312
349
|
scaleRange = computed(() => {
|
|
313
350
|
const lo = this.min();
|
|
314
351
|
const hi = this.max();
|
|
315
352
|
return hi > lo ? hi - lo : 0;
|
|
316
|
-
},
|
|
353
|
+
}, /* @ts-ignore */
|
|
354
|
+
...(ngDevMode ? [{ debugName: "scaleRange" }] : /* istanbul ignore next */ []));
|
|
317
355
|
/** @internal Whether marks are resolved as a visible list. */
|
|
318
356
|
marksResolved = computed(() => {
|
|
319
357
|
const source = this.marks();
|
|
@@ -332,66 +370,89 @@ class SliderComponent {
|
|
|
332
370
|
out.push({ value: Math.round(v * 1e6) / 1e6 });
|
|
333
371
|
}
|
|
334
372
|
return out;
|
|
335
|
-
},
|
|
373
|
+
}, /* @ts-ignore */
|
|
374
|
+
...(ngDevMode ? [{ debugName: "marksResolved" }] : /* istanbul ignore next */ []));
|
|
336
375
|
/** @internal */
|
|
337
|
-
resolvedMarks = computed(() => this.marksResolved(),
|
|
376
|
+
resolvedMarks = computed(() => this.marksResolved(), /* @ts-ignore */
|
|
377
|
+
...(ngDevMode ? [{ debugName: "resolvedMarks" }] : /* istanbul ignore next */ []));
|
|
338
378
|
/** @internal */
|
|
339
|
-
hasVisibleMarks = computed(() => this.marksResolved().length > 0,
|
|
379
|
+
hasVisibleMarks = computed(() => this.marksResolved().length > 0, /* @ts-ignore */
|
|
380
|
+
...(ngDevMode ? [{ debugName: "hasVisibleMarks" }] : /* istanbul ignore next */ []));
|
|
340
381
|
/** @internal */
|
|
341
|
-
hasMarkLabels = computed(() => this.showMarkLabels() && this.marksResolved().length > 0,
|
|
382
|
+
hasMarkLabels = computed(() => this.showMarkLabels() && this.marksResolved().length > 0, /* @ts-ignore */
|
|
383
|
+
...(ngDevMode ? [{ debugName: "hasMarkLabels" }] : /* istanbul ignore next */ []));
|
|
342
384
|
/** @internal Clamped current values. */
|
|
343
|
-
startValue = computed(() => this.clampAndSnap(Math.min(this.internalStart(), this.internalEnd())),
|
|
385
|
+
startValue = computed(() => this.clampAndSnap(Math.min(this.internalStart(), this.internalEnd())), /* @ts-ignore */
|
|
386
|
+
...(ngDevMode ? [{ debugName: "startValue" }] : /* istanbul ignore next */ []));
|
|
344
387
|
/** @internal */
|
|
345
|
-
endValue = computed(() => this.clampAndSnap(Math.max(this.internalStart(), this.internalEnd())),
|
|
388
|
+
endValue = computed(() => this.clampAndSnap(Math.max(this.internalStart(), this.internalEnd())), /* @ts-ignore */
|
|
389
|
+
...(ngDevMode ? [{ debugName: "endValue" }] : /* istanbul ignore next */ []));
|
|
346
390
|
/** @internal */
|
|
347
|
-
singleValue = computed(() => this.clampAndSnap(this.internalSingle()),
|
|
391
|
+
singleValue = computed(() => this.clampAndSnap(this.internalSingle()), /* @ts-ignore */
|
|
392
|
+
...(ngDevMode ? [{ debugName: "singleValue" }] : /* istanbul ignore next */ []));
|
|
348
393
|
/** @internal aria-valuemax for the start thumb (cannot cross end thumb). */
|
|
349
|
-
effectiveStartMax = computed(() => this.endValue(),
|
|
394
|
+
effectiveStartMax = computed(() => this.endValue(), /* @ts-ignore */
|
|
395
|
+
...(ngDevMode ? [{ debugName: "effectiveStartMax" }] : /* istanbul ignore next */ []));
|
|
350
396
|
/** @internal aria-valuemin for the end thumb (cannot go below start thumb). */
|
|
351
|
-
effectiveEndMin = computed(() => this.startValue(),
|
|
397
|
+
effectiveEndMin = computed(() => this.startValue(), /* @ts-ignore */
|
|
398
|
+
...(ngDevMode ? [{ debugName: "effectiveEndMin" }] : /* istanbul ignore next */ []));
|
|
352
399
|
/** @internal Percentage position of the single thumb on the rail. */
|
|
353
|
-
singlePct = computed(() => this.valuePct(this.singleValue()),
|
|
400
|
+
singlePct = computed(() => this.valuePct(this.singleValue()), /* @ts-ignore */
|
|
401
|
+
...(ngDevMode ? [{ debugName: "singlePct" }] : /* istanbul ignore next */ []));
|
|
354
402
|
/** @internal */
|
|
355
|
-
startPct = computed(() => this.valuePct(this.startValue()),
|
|
403
|
+
startPct = computed(() => this.valuePct(this.startValue()), /* @ts-ignore */
|
|
404
|
+
...(ngDevMode ? [{ debugName: "startPct" }] : /* istanbul ignore next */ []));
|
|
356
405
|
/** @internal */
|
|
357
|
-
endPct = computed(() => this.valuePct(this.endValue()),
|
|
406
|
+
endPct = computed(() => this.valuePct(this.endValue()), /* @ts-ignore */
|
|
407
|
+
...(ngDevMode ? [{ debugName: "endPct" }] : /* istanbul ignore next */ []));
|
|
358
408
|
/** @internal Fill segment position. */
|
|
359
|
-
fillLeftPct = computed(() => (this.range() ? this.startPct() : 0),
|
|
409
|
+
fillLeftPct = computed(() => (this.range() ? this.startPct() : 0), /* @ts-ignore */
|
|
410
|
+
...(ngDevMode ? [{ debugName: "fillLeftPct" }] : /* istanbul ignore next */ []));
|
|
360
411
|
/** @internal */
|
|
361
|
-
fillWidthPct = computed(() => this.range() ? this.endPct() - this.startPct() : this.singlePct(),
|
|
412
|
+
fillWidthPct = computed(() => this.range() ? this.endPct() - this.startPct() : this.singlePct(), /* @ts-ignore */
|
|
413
|
+
...(ngDevMode ? [{ debugName: "fillWidthPct" }] : /* istanbul ignore next */ []));
|
|
362
414
|
/** @internal Formatted display of the current value for the header. */
|
|
363
415
|
headerValueText = computed(() => {
|
|
364
416
|
if (this.range()) {
|
|
365
417
|
return `${this.format(this.startValue())} – ${this.format(this.endValue())}`;
|
|
366
418
|
}
|
|
367
419
|
return this.format(this.singleValue());
|
|
368
|
-
},
|
|
420
|
+
}, /* @ts-ignore */
|
|
421
|
+
...(ngDevMode ? [{ debugName: "headerValueText" }] : /* istanbul ignore next */ []));
|
|
369
422
|
// ── tv slot classes ─────────────────────────────────────────
|
|
370
423
|
variantResult = computed(() => sliderVariants({
|
|
371
424
|
size: this.size(),
|
|
372
425
|
variant: this.variant(),
|
|
373
426
|
disabled: this.isDisabled(),
|
|
374
427
|
hasHeader: this.hasHeader(),
|
|
375
|
-
}),
|
|
428
|
+
}), /* @ts-ignore */
|
|
429
|
+
...(ngDevMode ? [{ debugName: "variantResult" }] : /* istanbul ignore next */ []));
|
|
376
430
|
/** @internal */
|
|
377
|
-
rootClasses = computed(() => this.variantResult().root(),
|
|
431
|
+
rootClasses = computed(() => this.variantResult().root(), /* @ts-ignore */
|
|
432
|
+
...(ngDevMode ? [{ debugName: "rootClasses" }] : /* istanbul ignore next */ []));
|
|
378
433
|
/** @internal */
|
|
379
|
-
headerClasses = computed(() => this.variantResult().header(),
|
|
434
|
+
headerClasses = computed(() => this.variantResult().header(), /* @ts-ignore */
|
|
435
|
+
...(ngDevMode ? [{ debugName: "headerClasses" }] : /* istanbul ignore next */ []));
|
|
380
436
|
/** @internal */
|
|
381
|
-
labelClasses = computed(() => this.variantResult().label(),
|
|
437
|
+
labelClasses = computed(() => this.variantResult().label(), /* @ts-ignore */
|
|
438
|
+
...(ngDevMode ? [{ debugName: "labelClasses" }] : /* istanbul ignore next */ []));
|
|
382
439
|
/** @internal */
|
|
383
|
-
valueTextClasses = computed(() => this.variantResult().valueText(),
|
|
440
|
+
valueTextClasses = computed(() => this.variantResult().valueText(), /* @ts-ignore */
|
|
441
|
+
...(ngDevMode ? [{ debugName: "valueTextClasses" }] : /* istanbul ignore next */ []));
|
|
384
442
|
/** @internal */
|
|
385
|
-
descriptionClasses = computed(() => this.variantResult().description(),
|
|
443
|
+
descriptionClasses = computed(() => this.variantResult().description(), /* @ts-ignore */
|
|
444
|
+
...(ngDevMode ? [{ debugName: "descriptionClasses" }] : /* istanbul ignore next */ []));
|
|
386
445
|
/** @internal */
|
|
387
|
-
regionClasses = computed(() => this.variantResult().region(),
|
|
446
|
+
regionClasses = computed(() => this.variantResult().region(), /* @ts-ignore */
|
|
447
|
+
...(ngDevMode ? [{ debugName: "regionClasses" }] : /* istanbul ignore next */ []));
|
|
388
448
|
/** @internal */
|
|
389
449
|
railClasses = computed(() => {
|
|
390
450
|
const base = this.variantResult().rail();
|
|
391
451
|
if (this.variant() === 'outline')
|
|
392
452
|
return base;
|
|
393
453
|
return base;
|
|
394
|
-
},
|
|
454
|
+
}, /* @ts-ignore */
|
|
455
|
+
...(ngDevMode ? [{ debugName: "railClasses" }] : /* istanbul ignore next */ []));
|
|
395
456
|
/** @internal */
|
|
396
457
|
fillClasses = computed(() => {
|
|
397
458
|
const base = this.variantResult().fill();
|
|
@@ -403,17 +464,23 @@ class SliderComponent {
|
|
|
403
464
|
return `${base} ${FILL_SOLID[color]} ${FILL_OUTLINE_BORDER[color]}`;
|
|
404
465
|
}
|
|
405
466
|
return `${base} ${FILL_SOLID[color]}`;
|
|
406
|
-
},
|
|
467
|
+
}, /* @ts-ignore */
|
|
468
|
+
...(ngDevMode ? [{ debugName: "fillClasses" }] : /* istanbul ignore next */ []));
|
|
407
469
|
/** @internal */
|
|
408
|
-
marksRowClasses = computed(() => this.variantResult().marksRow(),
|
|
470
|
+
marksRowClasses = computed(() => this.variantResult().marksRow(), /* @ts-ignore */
|
|
471
|
+
...(ngDevMode ? [{ debugName: "marksRowClasses" }] : /* istanbul ignore next */ []));
|
|
409
472
|
/** @internal */
|
|
410
|
-
markLabelsRowClasses = computed(() => this.variantResult().markLabelsRow(),
|
|
473
|
+
markLabelsRowClasses = computed(() => this.variantResult().markLabelsRow(), /* @ts-ignore */
|
|
474
|
+
...(ngDevMode ? [{ debugName: "markLabelsRowClasses" }] : /* istanbul ignore next */ []));
|
|
411
475
|
/** @internal */
|
|
412
|
-
markLabelClasses = computed(() => this.variantResult().markLabel(),
|
|
476
|
+
markLabelClasses = computed(() => this.variantResult().markLabel(), /* @ts-ignore */
|
|
477
|
+
...(ngDevMode ? [{ debugName: "markLabelClasses" }] : /* istanbul ignore next */ []));
|
|
413
478
|
/** @internal */
|
|
414
|
-
minMaxRowClasses = computed(() => this.variantResult().minMaxRow(),
|
|
479
|
+
minMaxRowClasses = computed(() => this.variantResult().minMaxRow(), /* @ts-ignore */
|
|
480
|
+
...(ngDevMode ? [{ debugName: "minMaxRowClasses" }] : /* istanbul ignore next */ []));
|
|
415
481
|
/** @internal */
|
|
416
|
-
thumbClasses = computed(() => `${this.variantResult().thumb()} ${THUMB_BORDER[this.color()]} ${FOCUS_RING[this.color()]}`,
|
|
482
|
+
thumbClasses = computed(() => `${this.variantResult().thumb()} ${THUMB_BORDER[this.color()]} ${FOCUS_RING[this.color()]}`, /* @ts-ignore */
|
|
483
|
+
...(ngDevMode ? [{ debugName: "thumbClasses" }] : /* istanbul ignore next */ []));
|
|
417
484
|
/**
|
|
418
485
|
* @internal Memoized class map for mark dots — keyed by mark value. Recomputed
|
|
419
486
|
* only when the variant slots, fill range, or marks list changes; lookups
|
|
@@ -431,7 +498,8 @@ class SliderComponent {
|
|
|
431
498
|
map.set(mark.value, inside ? insideClass : outsideClass);
|
|
432
499
|
}
|
|
433
500
|
return { map, outsideClass };
|
|
434
|
-
},
|
|
501
|
+
}, /* @ts-ignore */
|
|
502
|
+
...(ngDevMode ? [{ debugName: "markClassMap" }] : /* istanbul ignore next */ []));
|
|
435
503
|
/** @internal Mark dot color depends on whether it falls inside the filled segment. */
|
|
436
504
|
markClassFor(markValue) {
|
|
437
505
|
const { map, outsideClass } = this.markClassMap();
|
|
@@ -456,7 +524,8 @@ class SliderComponent {
|
|
|
456
524
|
start: classFor('start'),
|
|
457
525
|
end: classFor('end'),
|
|
458
526
|
};
|
|
459
|
-
},
|
|
527
|
+
}, /* @ts-ignore */
|
|
528
|
+
...(ngDevMode ? [{ debugName: "bubbleClassMap" }] : /* istanbul ignore next */ []));
|
|
460
529
|
/** @internal Bubble visibility depends on drag / focus / hover state. */
|
|
461
530
|
bubbleClassFor(thumb) {
|
|
462
531
|
return this.bubbleClassMap()[thumb];
|
|
@@ -468,7 +537,8 @@ class SliderComponent {
|
|
|
468
537
|
if (external)
|
|
469
538
|
return external;
|
|
470
539
|
return this.description() ? this.descriptionId : null;
|
|
471
|
-
},
|
|
540
|
+
}, /* @ts-ignore */
|
|
541
|
+
...(ngDevMode ? [{ debugName: "resolvedAriaDescribedby" }] : /* istanbul ignore next */ []));
|
|
472
542
|
/** @internal */
|
|
473
543
|
resolvedSingleAriaLabel = computed(() => {
|
|
474
544
|
if (this.label())
|
|
@@ -476,37 +546,43 @@ class SliderComponent {
|
|
|
476
546
|
if (this.ariaLabelledby())
|
|
477
547
|
return null;
|
|
478
548
|
return this.ariaLabel() ?? null;
|
|
479
|
-
},
|
|
549
|
+
}, /* @ts-ignore */
|
|
550
|
+
...(ngDevMode ? [{ debugName: "resolvedSingleAriaLabel" }] : /* istanbul ignore next */ []));
|
|
480
551
|
/** @internal */
|
|
481
552
|
resolvedSingleAriaLabelledby = computed(() => {
|
|
482
553
|
if (this.label())
|
|
483
554
|
return this.labelId;
|
|
484
555
|
return this.ariaLabelledby() ?? null;
|
|
485
|
-
},
|
|
556
|
+
}, /* @ts-ignore */
|
|
557
|
+
...(ngDevMode ? [{ debugName: "resolvedSingleAriaLabelledby" }] : /* istanbul ignore next */ []));
|
|
486
558
|
/** @internal */
|
|
487
559
|
resolvedStartAriaLabel = computed(() => {
|
|
488
560
|
if (this.ariaLabelledby() || this.label())
|
|
489
561
|
return null;
|
|
490
562
|
return this.ariaLabelStart();
|
|
491
|
-
},
|
|
563
|
+
}, /* @ts-ignore */
|
|
564
|
+
...(ngDevMode ? [{ debugName: "resolvedStartAriaLabel" }] : /* istanbul ignore next */ []));
|
|
492
565
|
/** @internal */
|
|
493
566
|
resolvedStartAriaLabelledby = computed(() => {
|
|
494
567
|
if (this.ariaLabelledby())
|
|
495
568
|
return this.ariaLabelledby() ?? null;
|
|
496
569
|
return this.label() ? this.labelId : null;
|
|
497
|
-
},
|
|
570
|
+
}, /* @ts-ignore */
|
|
571
|
+
...(ngDevMode ? [{ debugName: "resolvedStartAriaLabelledby" }] : /* istanbul ignore next */ []));
|
|
498
572
|
/** @internal */
|
|
499
573
|
resolvedEndAriaLabel = computed(() => {
|
|
500
574
|
if (this.ariaLabelledby() || this.label())
|
|
501
575
|
return null;
|
|
502
576
|
return this.ariaLabelEnd();
|
|
503
|
-
},
|
|
577
|
+
}, /* @ts-ignore */
|
|
578
|
+
...(ngDevMode ? [{ debugName: "resolvedEndAriaLabel" }] : /* istanbul ignore next */ []));
|
|
504
579
|
/** @internal */
|
|
505
580
|
resolvedEndAriaLabelledby = computed(() => {
|
|
506
581
|
if (this.ariaLabelledby())
|
|
507
582
|
return this.ariaLabelledby() ?? null;
|
|
508
583
|
return this.label() ? this.labelId : null;
|
|
509
|
-
},
|
|
584
|
+
}, /* @ts-ignore */
|
|
585
|
+
...(ngDevMode ? [{ debugName: "resolvedEndAriaLabelledby" }] : /* istanbul ignore next */ []));
|
|
510
586
|
// ── Interactions ───────────────────────────────────────────
|
|
511
587
|
/** Track click: move the nearest thumb to the clicked position and begin a drag. */
|
|
512
588
|
onTrackPointerDown(event) {
|
|
@@ -825,8 +901,8 @@ class SliderComponent {
|
|
|
825
901
|
this.capturedPointers.clear();
|
|
826
902
|
});
|
|
827
903
|
}
|
|
828
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
829
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
904
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
905
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: SliderComponent, isStandalone: true, selector: "tw-slider", inputs: { 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 }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, range: { classPropertyName: "range", publicName: "range", isSignal: true, isRequired: false, transformFunction: null }, marks: { classPropertyName: "marks", publicName: "marks", isSignal: true, isRequired: false, transformFunction: null }, showMarkLabels: { classPropertyName: "showMarkLabels", publicName: "showMarkLabels", isSignal: true, isRequired: false, transformFunction: null }, showMinMax: { classPropertyName: "showMinMax", publicName: "showMinMax", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, valueFormatter: { classPropertyName: "valueFormatter", publicName: "valueFormatter", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelStart: { classPropertyName: "ariaLabelStart", publicName: "ariaLabelStart", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelEnd: { classPropertyName: "ariaLabelEnd", publicName: "ariaLabelEnd", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, errorStateMatcher: { classPropertyName: "errorStateMatcher", publicName: "errorStateMatcher", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "input", change: "change" }, host: { properties: { "class": "rootClasses()", "attr.data-disabled": "isDisabled() || null" } }, viewQueries: [{ propertyName: "region", first: true, predicate: ["region"], descendants: true, isSignal: true }, { propertyName: "startThumb", first: true, predicate: ["startThumb"], descendants: true, isSignal: true }, { propertyName: "endThumb", first: true, predicate: ["endThumb"], descendants: true, isSignal: true }, { propertyName: "singleThumb", first: true, predicate: ["singleThumb"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
830
906
|
@if (hasHeader()) {
|
|
831
907
|
<div [class]="headerClasses()">
|
|
832
908
|
@if (label(); as lbl) {
|
|
@@ -977,7 +1053,7 @@ class SliderComponent {
|
|
|
977
1053
|
}
|
|
978
1054
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
979
1055
|
}
|
|
980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SliderComponent, decorators: [{
|
|
981
1057
|
type: Component,
|
|
982
1058
|
args: [{
|
|
983
1059
|
selector: 'tw-slider',
|