@testgorilla/tgo-ui 11.22.3 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs +335 -229
- package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs +547 -465
- package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs +160 -75
- package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs +678 -278
- package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs +337 -274
- package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs +351 -192
- package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs +1950 -960
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs +1206 -1044
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs +328 -182
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs +383 -203
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs +553 -261
- package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-button.mjs +709 -739
- package/fesm2022/testgorilla-tgo-ui-components-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs +219 -184
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs +515 -458
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs +423 -162
- package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs +10784 -10996
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs +810 -533
- package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs +473 -116
- package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs +1149 -540
- package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-divider.mjs +148 -84
- package/fesm2022/testgorilla-tgo-ui-components-divider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs +239 -142
- package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs +599 -467
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs +126 -70
- package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs +324 -329
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs +969 -648
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs +553 -419
- package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs +847 -452
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs +398 -302
- package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs +162 -95
- package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-icon.mjs +1825 -1795
- package/fesm2022/testgorilla-tgo-ui-components-icon.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs +1018 -672
- package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs +758 -368
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs +204 -212
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs +183 -48
- package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs +243 -79
- package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs +751 -361
- package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs +1122 -385
- package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs +689 -413
- package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs +227 -92
- package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs +174 -113
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs +367 -165
- package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs +253 -118
- package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs +730 -444
- package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs +533 -221
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs +274 -76
- package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs +184 -124
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs +1223 -574
- package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs +249 -160
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs +447 -439
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs +226 -150
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs +255 -67
- package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs +205 -162
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs +245 -153
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs +274 -140
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs +319 -147
- package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs +286 -84
- package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs +660 -208
- package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs +579 -320
- package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs +419 -200
- package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs +132 -80
- package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +741 -390
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs +455 -329
- package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs +543 -514
- package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs +193 -104
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs +760 -524
- package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-table.mjs +714 -415
- package/fesm2022/testgorilla-tgo-ui-components-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs +847 -438
- package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs +535 -275
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs +316 -246
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs +404 -284
- package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs +664 -383
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs +201 -112
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs +1014 -458
- package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui.mjs +147 -155
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/mcp/catalog.json +1 -1
- package/package.json +16 -17
- package/projects/tgo-canopy-ui/theme/_palette.scss +23 -18
- package/types/testgorilla-tgo-ui-components-accordion.d.ts +214 -158
- package/types/testgorilla-tgo-ui-components-ai-audio-circle.d.ts +93 -69
- package/types/testgorilla-tgo-ui-components-ai-caveat.d.ts +37 -34
- package/types/testgorilla-tgo-ui-components-ai-feedback.d.ts +126 -86
- package/types/testgorilla-tgo-ui-components-alert-banner.d.ts +260 -185
- package/types/testgorilla-tgo-ui-components-audio-waveform.d.ts +96 -67
- package/types/testgorilla-tgo-ui-components-autocomplete-v2.d.ts +455 -256
- package/types/testgorilla-tgo-ui-components-autocomplete.d.ts +545 -390
- package/types/testgorilla-tgo-ui-components-avatar.d.ts +128 -102
- package/types/testgorilla-tgo-ui-components-badge.d.ts +191 -139
- package/types/testgorilla-tgo-ui-components-breadcrumb.d.ts +100 -62
- package/types/testgorilla-tgo-ui-components-button.d.ts +479 -340
- package/types/testgorilla-tgo-ui-components-card.d.ts +153 -114
- package/types/testgorilla-tgo-ui-components-checkbox.d.ts +299 -223
- package/types/testgorilla-tgo-ui-components-checklist.d.ts +149 -97
- package/types/testgorilla-tgo-ui-components-core.d.ts +307 -295
- package/types/testgorilla-tgo-ui-components-datepicker.d.ts +404 -299
- package/types/testgorilla-tgo-ui-components-device-control.d.ts +151 -81
- package/types/testgorilla-tgo-ui-components-dialog.d.ts +442 -329
- package/types/testgorilla-tgo-ui-components-divider.d.ts +64 -51
- package/types/testgorilla-tgo-ui-components-donut-chart.d.ts +41 -37
- package/types/testgorilla-tgo-ui-components-dropdown.d.ts +335 -241
- package/types/testgorilla-tgo-ui-components-elevation-shadow.d.ts +48 -43
- package/types/testgorilla-tgo-ui-components-empty-state.d.ts +317 -215
- package/types/testgorilla-tgo-ui-components-field.d.ts +559 -388
- package/types/testgorilla-tgo-ui-components-file-upload.d.ts +230 -168
- package/types/testgorilla-tgo-ui-components-filter-button.d.ts +263 -206
- package/types/testgorilla-tgo-ui-components-gaussian-chart.d.ts +107 -94
- package/types/testgorilla-tgo-ui-components-icon-label.d.ts +84 -61
- package/types/testgorilla-tgo-ui-components-icon.d.ts +137 -110
- package/types/testgorilla-tgo-ui-components-infinite-scroll-table.d.ts +429 -303
- package/types/testgorilla-tgo-ui-components-inline-field.d.ts +338 -254
- package/types/testgorilla-tgo-ui-components-logo.d.ts +119 -101
- package/types/testgorilla-tgo-ui-components-media-card.d.ts +51 -35
- package/types/testgorilla-tgo-ui-components-media-dialog.d.ts +40 -45
- package/types/testgorilla-tgo-ui-components-multi-input.d.ts +283 -194
- package/types/testgorilla-tgo-ui-components-navbar.d.ts +326 -208
- package/types/testgorilla-tgo-ui-components-overflow-menu.d.ts +276 -204
- package/types/testgorilla-tgo-ui-components-page-header.d.ts +67 -50
- package/types/testgorilla-tgo-ui-components-paginator.d.ts +103 -70
- package/types/testgorilla-tgo-ui-components-password-criteria.d.ts +67 -58
- package/types/testgorilla-tgo-ui-components-password-strength.d.ts +66 -57
- package/types/testgorilla-tgo-ui-components-phone-input.d.ts +217 -175
- package/types/testgorilla-tgo-ui-components-popover.d.ts +94 -53
- package/types/testgorilla-tgo-ui-components-popup-tip.d.ts +81 -44
- package/types/testgorilla-tgo-ui-components-progress-bar.d.ts +115 -84
- package/types/testgorilla-tgo-ui-components-prompt.d.ts +315 -219
- package/types/testgorilla-tgo-ui-components-radial-progress.d.ts +146 -107
- package/types/testgorilla-tgo-ui-components-radio-button.d.ts +296 -219
- package/types/testgorilla-tgo-ui-components-rating.d.ts +134 -95
- package/types/testgorilla-tgo-ui-components-scale-table.d.ts +67 -47
- package/types/testgorilla-tgo-ui-components-scale.d.ts +91 -66
- package/types/testgorilla-tgo-ui-components-segmented-bar.d.ts +118 -89
- package/types/testgorilla-tgo-ui-components-segmented-button.d.ts +107 -80
- package/types/testgorilla-tgo-ui-components-segmented-toggle.d.ts +138 -105
- package/types/testgorilla-tgo-ui-components-selectable-card.d.ts +90 -56
- package/types/testgorilla-tgo-ui-components-side-navigation.d.ts +183 -107
- package/types/testgorilla-tgo-ui-components-side-panel.d.ts +156 -145
- package/types/testgorilla-tgo-ui-components-side-sheet.d.ts +98 -89
- package/types/testgorilla-tgo-ui-components-skeleton.d.ts +50 -33
- package/types/testgorilla-tgo-ui-components-slider.d.ts +278 -198
- package/types/testgorilla-tgo-ui-components-snackbar.d.ts +211 -159
- package/types/testgorilla-tgo-ui-components-spider-chart.d.ts +140 -121
- package/types/testgorilla-tgo-ui-components-spinner.d.ts +93 -72
- package/types/testgorilla-tgo-ui-components-stepper.d.ts +480 -338
- package/types/testgorilla-tgo-ui-components-table.d.ts +280 -233
- package/types/testgorilla-tgo-ui-components-tabs.d.ts +282 -183
- package/types/testgorilla-tgo-ui-components-tag.d.ts +266 -193
- package/types/testgorilla-tgo-ui-components-toggle.d.ts +180 -132
- package/types/testgorilla-tgo-ui-components-tooltip.d.ts +142 -105
- package/types/testgorilla-tgo-ui-components-universal-skills.d.ts +165 -144
- package/types/testgorilla-tgo-ui-components-validation-error.d.ts +70 -51
- package/types/testgorilla-tgo-ui-components-write-with-ai.d.ts +210 -133
- package/types/testgorilla-tgo-ui.d.ts +52 -45
|
@@ -1,201 +1,281 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { MatSliderDragEvent } from
|
|
6
|
-
import { ApplicationTheme } from
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
start: number;
|
|
11
|
-
end: number;
|
|
1
|
+
import { DecimalPipe } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectorRef, EventEmitter } from "@angular/core";
|
|
4
|
+
import { AbstractControl, ValidationErrors, Validator } from "@angular/forms";
|
|
5
|
+
import { MatSliderDragEvent } from "@angular/material/slider";
|
|
6
|
+
import { ApplicationTheme, ApplicationTheme as ApplicationTheme$1 } from "@testgorilla/tgo-ui/components/core";
|
|
7
|
+
export interface SliderValue {
|
|
8
|
+
start: number;
|
|
9
|
+
end: number;
|
|
12
10
|
}
|
|
13
|
-
type SliderVariant = 'basic' | 'range';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
11
|
+
export type SliderVariant = 'basic' | 'range';
|
|
12
|
+
export declare class SliderComponent implements Validator {
|
|
13
|
+
private readonly defaultAppTheme;
|
|
14
|
+
/**
|
|
15
|
+
* The maximum value of the slider.
|
|
16
|
+
*
|
|
17
|
+
* @type {number}
|
|
18
|
+
* @default 100
|
|
19
|
+
*/
|
|
20
|
+
max: number;
|
|
21
|
+
/**
|
|
22
|
+
* The minimum value of the slider.
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @default 0
|
|
26
|
+
*/
|
|
27
|
+
min: number;
|
|
28
|
+
/**
|
|
29
|
+
* A flag indicating whether the slider displays values as percentages.
|
|
30
|
+
*
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
percentage: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* A flag indicating whether the slider is disabled.
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The starting value of the slider.
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @default 0
|
|
47
|
+
*/
|
|
48
|
+
sliderStart: number;
|
|
49
|
+
/**
|
|
50
|
+
* The ending value of the slider.
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @default 100
|
|
54
|
+
*/
|
|
55
|
+
sliderEnd: number;
|
|
56
|
+
/**
|
|
57
|
+
* The label for the slider.
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @default ''
|
|
61
|
+
*/
|
|
62
|
+
label: string;
|
|
63
|
+
/**
|
|
64
|
+
* Show slider inputs.
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
showInputs: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Step number.
|
|
72
|
+
*
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @default 1
|
|
75
|
+
*/
|
|
76
|
+
step: number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* Defines the application theme
|
|
80
|
+
*
|
|
81
|
+
* @type {ApplicationTheme}
|
|
82
|
+
* @memberof SliderComponent
|
|
83
|
+
*/
|
|
84
|
+
applicationTheme: ApplicationTheme$1;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* Defines the variant slider
|
|
88
|
+
*
|
|
89
|
+
* @type {SliderVariant}
|
|
90
|
+
* @memberof SliderComponent
|
|
91
|
+
*/
|
|
92
|
+
variant: SliderVariant;
|
|
93
|
+
testId: string | null;
|
|
94
|
+
get startThumbTestId(): string;
|
|
95
|
+
get endThumbTestId(): string;
|
|
96
|
+
get startInputTestId(): string;
|
|
97
|
+
get endInputTestId(): string;
|
|
98
|
+
/**
|
|
99
|
+
* Controls whether decimal values are allowed in the input fields.
|
|
100
|
+
* When true, inputs accept decimal numbers (up to 2 decimal places).
|
|
101
|
+
* When false, inputs only accept whole numbers.
|
|
102
|
+
*/
|
|
103
|
+
useDecimal: import("@angular/core").InputSignal<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* Controls whether numbers are displayed with thousands separators.
|
|
106
|
+
* When true, displays numbers like "100,000" instead of "100000".
|
|
107
|
+
* This is independent of useDecimal - you can have thousands separators
|
|
108
|
+
* without decimals, or decimals without thousands separators.
|
|
109
|
+
*/
|
|
110
|
+
useThousandsSeparator: import("@angular/core").InputSignal<boolean>;
|
|
111
|
+
minLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
112
|
+
maxLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
113
|
+
inputWidth: import("@angular/core").InputSignal<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Controls whether the value bubble pops above the thumb on hover and while dragging.
|
|
116
|
+
* Set it to false for scrubber-style sliders whose designs do not show one.
|
|
117
|
+
* Applies to both the basic and the range variant.
|
|
118
|
+
*/
|
|
119
|
+
showValueBubble: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
120
|
+
sliderValueChange: EventEmitter<SliderValue>;
|
|
121
|
+
/**
|
|
122
|
+
* Emitted with the current value when the user starts dragging the thumb.
|
|
123
|
+
* Basic variant only, and never emitted for programmatic value writes, so a consumer
|
|
124
|
+
* that also drives the slider on a timer can tell a user drag apart from its own write.
|
|
125
|
+
*/
|
|
126
|
+
dragStart: import("@angular/core").OutputEmitterRef<number>;
|
|
127
|
+
/**
|
|
128
|
+
* Emitted with the released value when the user stops dragging the thumb.
|
|
129
|
+
* Basic variant only. See {@link dragStart}.
|
|
130
|
+
*/
|
|
131
|
+
dragEnd: import("@angular/core").OutputEmitterRef<number>;
|
|
132
|
+
/**
|
|
133
|
+
* Emitted with the thumb's current value on every move while the user is dragging it.
|
|
134
|
+
* Basic variant only, and pointer drag only: keyboard seeks and programmatic writes never
|
|
135
|
+
* emit it and keep arriving through `sliderValueChange`. See {@link dragStart}.
|
|
136
|
+
*/
|
|
137
|
+
dragMove: import("@angular/core").OutputEmitterRef<number>;
|
|
138
|
+
private isDragging;
|
|
139
|
+
/**
|
|
140
|
+
* Tracks hover, so the value bubble markup is only mounted while the pointer is over the slider.
|
|
141
|
+
* Starts true to keep the at-rest markup identical to what the component shipped before
|
|
142
|
+
* `showValueBubble` existed: Material leaves the bubble invisible until the thumb is active, and
|
|
143
|
+
* unmounting it changes how the disabled slider's opacity layer rasterises its text.
|
|
144
|
+
*/
|
|
145
|
+
private readonly isHovered;
|
|
146
|
+
/** Material renders the value bubble only while `discrete` is set, so gate it on both hover and the input. */
|
|
147
|
+
protected readonly isDiscrete: import("@angular/core").Signal<boolean>;
|
|
148
|
+
cdr: ChangeDetectorRef;
|
|
149
|
+
decimalPipe: DecimalPipe;
|
|
150
|
+
private control?;
|
|
151
|
+
private readonly destroyRef;
|
|
152
|
+
private readonly ngZone;
|
|
153
|
+
private readonly matSlider;
|
|
154
|
+
private readonly matSliderElement;
|
|
155
|
+
constructor(defaultAppTheme: ApplicationTheme$1);
|
|
156
|
+
/**
|
|
157
|
+
* Works around MatSlider's resize handling for the range variant. On a resize, `_onResize()`
|
|
158
|
+
* repositions the end thumb before the start thumb, and clamps the end thumb so it cannot sit
|
|
159
|
+
* left of the start thumb's position — which at that point is still the pre-resize one. When the
|
|
160
|
+
* slider shrinks to under about half its width, the end thumb is clamped to that stale position
|
|
161
|
+
* and stays there, because nothing repositions it afterwards. Running the resize step once more,
|
|
162
|
+
* after Material's own observer, places the end thumb against the start thumb's new position.
|
|
163
|
+
* Growing the slider never clamps, so the extra pass is a no-op there.
|
|
164
|
+
*/
|
|
165
|
+
private observeRangeResize;
|
|
166
|
+
private value;
|
|
167
|
+
protected translationContext: string;
|
|
168
|
+
protected touchedControlName: string;
|
|
169
|
+
onChange: (value: SliderValue) => void;
|
|
170
|
+
onTouch: () => void;
|
|
171
|
+
registerOnChange(fn: (value: SliderValue) => void): void;
|
|
172
|
+
registerOnTouched(fn: () => void): void;
|
|
173
|
+
setDisabledState(isDisabled: boolean): void;
|
|
174
|
+
writeValue(value: SliderValue): void;
|
|
175
|
+
protected onValueChange(ev?: number): void;
|
|
176
|
+
protected onSliderHover(isHovered: boolean): void;
|
|
177
|
+
protected onDragStart(event: MatSliderDragEvent): void;
|
|
178
|
+
protected onDragMove(value: number): void;
|
|
179
|
+
protected onDragEnd(event: MatSliderDragEvent): void;
|
|
180
|
+
protected onInputBlur(inputName: string): void;
|
|
181
|
+
protected onInputFocus(): void;
|
|
182
|
+
private isValueChanged;
|
|
183
|
+
get hasError(): boolean;
|
|
184
|
+
get isBasicSlider(): boolean;
|
|
185
|
+
formatLabel(value: number): string;
|
|
186
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, [{
|
|
188
|
+
optional: true;
|
|
189
|
+
}]>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "ui-slider", never, {
|
|
191
|
+
"max": {
|
|
192
|
+
"alias": "max";
|
|
193
|
+
"required": false;
|
|
194
|
+
};
|
|
195
|
+
"min": {
|
|
196
|
+
"alias": "min";
|
|
197
|
+
"required": false;
|
|
198
|
+
};
|
|
199
|
+
"percentage": {
|
|
200
|
+
"alias": "percentage";
|
|
201
|
+
"required": false;
|
|
202
|
+
};
|
|
203
|
+
"disabled": {
|
|
204
|
+
"alias": "disabled";
|
|
205
|
+
"required": false;
|
|
206
|
+
};
|
|
207
|
+
"sliderStart": {
|
|
208
|
+
"alias": "sliderStart";
|
|
209
|
+
"required": false;
|
|
210
|
+
};
|
|
211
|
+
"sliderEnd": {
|
|
212
|
+
"alias": "sliderEnd";
|
|
213
|
+
"required": false;
|
|
214
|
+
};
|
|
215
|
+
"label": {
|
|
216
|
+
"alias": "label";
|
|
217
|
+
"required": false;
|
|
218
|
+
};
|
|
219
|
+
"showInputs": {
|
|
220
|
+
"alias": "showInputs";
|
|
221
|
+
"required": false;
|
|
222
|
+
};
|
|
223
|
+
"step": {
|
|
224
|
+
"alias": "step";
|
|
225
|
+
"required": false;
|
|
226
|
+
};
|
|
227
|
+
"applicationTheme": {
|
|
228
|
+
"alias": "applicationTheme";
|
|
229
|
+
"required": false;
|
|
230
|
+
};
|
|
231
|
+
"variant": {
|
|
232
|
+
"alias": "variant";
|
|
233
|
+
"required": false;
|
|
234
|
+
};
|
|
235
|
+
"testId": {
|
|
236
|
+
"alias": "testId";
|
|
237
|
+
"required": false;
|
|
238
|
+
};
|
|
239
|
+
"useDecimal": {
|
|
240
|
+
"alias": "useDecimal";
|
|
241
|
+
"required": false;
|
|
242
|
+
"isSignal": true;
|
|
243
|
+
};
|
|
244
|
+
"useThousandsSeparator": {
|
|
245
|
+
"alias": "useThousandsSeparator";
|
|
246
|
+
"required": false;
|
|
247
|
+
"isSignal": true;
|
|
248
|
+
};
|
|
249
|
+
"minLabel": {
|
|
250
|
+
"alias": "minLabel";
|
|
251
|
+
"required": false;
|
|
252
|
+
"isSignal": true;
|
|
253
|
+
};
|
|
254
|
+
"maxLabel": {
|
|
255
|
+
"alias": "maxLabel";
|
|
256
|
+
"required": false;
|
|
257
|
+
"isSignal": true;
|
|
258
|
+
};
|
|
259
|
+
"inputWidth": {
|
|
260
|
+
"alias": "inputWidth";
|
|
261
|
+
"required": false;
|
|
262
|
+
"isSignal": true;
|
|
263
|
+
};
|
|
264
|
+
"showValueBubble": {
|
|
265
|
+
"alias": "showValueBubble";
|
|
266
|
+
"required": false;
|
|
267
|
+
"isSignal": true;
|
|
268
|
+
};
|
|
269
|
+
}, {
|
|
270
|
+
"sliderValueChange": "sliderValueChange";
|
|
271
|
+
"dragStart": "dragStart";
|
|
272
|
+
"dragEnd": "dragEnd";
|
|
273
|
+
"dragMove": "dragMove";
|
|
274
|
+
}, never, never, true, never>;
|
|
192
275
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SliderComponentModule>;
|
|
276
|
+
export declare class SliderComponentModule {
|
|
277
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponentModule, never>;
|
|
278
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SliderComponentModule, never, [typeof SliderComponent], [typeof SliderComponent]>;
|
|
279
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SliderComponentModule>;
|
|
198
280
|
}
|
|
199
|
-
|
|
200
|
-
export { SliderComponent, SliderComponentModule };
|
|
201
|
-
export type { SliderValue, SliderVariant };
|
|
281
|
+
export { ApplicationTheme };
|