shirkasoft-ui-components 1.13.18 → 2.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/README.md +415 -42
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-button.mjs +367 -73
- package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
- package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-config.mjs +976 -0
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1400
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -293
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +1141 -0
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-knob.mjs +395 -180
- package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
- package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -303
- package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
- package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -277
- package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -814
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +1918 -1676
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -177
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +177 -51
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -369
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +466 -0
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs +147 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -215
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +205 -128
- package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +97 -125
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -166
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components.mjs +0 -9
- package/package.json +37 -7
- package/src/baseline.css +2472 -0
- package/src/theme.css +15 -543
- package/src/themes/ocean.css +56 -0
- package/src/themes/sunset.css +55 -0
- package/src/themes/violet.css +25 -0
- package/src/tokens.css +612 -0
- package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
- package/types/shirkasoft-ui-components-button.d.ts +142 -49
- package/types/shirkasoft-ui-components-chart.d.ts +59 -44
- package/types/shirkasoft-ui-components-config.d.ts +357 -0
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -65
- package/types/shirkasoft-ui-components-date-picker.d.ts +527 -373
- package/types/shirkasoft-ui-components-fieldset.d.ts +135 -59
- package/types/shirkasoft-ui-components-file-upload.d.ts +176 -106
- package/types/shirkasoft-ui-components-icons.d.ts +1430 -0
- package/types/shirkasoft-ui-components-knob.d.ts +151 -64
- package/types/shirkasoft-ui-components-loading.d.ts +155 -64
- package/types/shirkasoft-ui-components-modal.d.ts +134 -132
- package/types/shirkasoft-ui-components-notification.d.ts +63 -58
- package/types/shirkasoft-ui-components-price-input.d.ts +198 -85
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
- package/types/shirkasoft-ui-components-select.d.ts +301 -192
- package/types/shirkasoft-ui-components-sidebar.d.ts +198 -92
- package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
- package/types/shirkasoft-ui-components-table.d.ts +849 -649
- package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
- package/types/shirkasoft-ui-components-tag.d.ts +54 -23
- package/types/shirkasoft-ui-components-text-field.d.ts +231 -111
- package/types/shirkasoft-ui-components-theme-picker.d.ts +117 -0
- package/types/shirkasoft-ui-components-theme.d.ts +80 -0
- package/types/shirkasoft-ui-components-timeline.d.ts +326 -150
- package/types/shirkasoft-ui-components-toggle.d.ts +76 -45
- package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
- package/types/shirkasoft-ui-components-utils.d.ts +26 -17
- package/types/shirkasoft-ui-components-wizard.d.ts +236 -86
- package/types/shirkasoft-ui-components.d.ts +1 -2
- package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { ElementRef } from "@angular/core";
|
|
6
|
+
import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms";
|
|
7
|
+
import { FormValueControl } from "@angular/forms/signals";
|
|
5
8
|
/** Option rendered by the select, optionally prefixed with a "new entry" badge. */
|
|
6
9
|
interface SelectOption {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
label: string;
|
|
11
|
+
value: any;
|
|
12
|
+
custom?: boolean;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* Shirkasoft UI Components.
|
|
@@ -18,189 +21,295 @@ interface SelectOption {
|
|
|
18
21
|
* selection, searchable, keyboard navigation, pagination, custom entries and
|
|
19
22
|
* reactive-form integration.
|
|
20
23
|
*/
|
|
21
|
-
declare class SelectComponent implements ControlValueAccessor {
|
|
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
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
24
|
+
export declare class SelectComponent implements ControlValueAccessor, FormValueControl<any> {
|
|
25
|
+
private elementRef;
|
|
26
|
+
/** Resolves icon names to SVG data, falling back to a chevron. */
|
|
27
|
+
protected getIcon: (name: any) => import("shirkasoft-ui-components/icons").IconNode | null;
|
|
28
|
+
/** Available options. */
|
|
29
|
+
options: import("@angular/core").InputSignal<SelectOption[]>;
|
|
30
|
+
/** Enables multi-select mode. */
|
|
31
|
+
multiple: import("@angular/core").InputSignal<boolean>;
|
|
32
|
+
/** Restricts multi-selection to the given value combinations. */
|
|
33
|
+
validCombinations: import("@angular/core").InputSignal<string[][] | undefined>;
|
|
34
|
+
/** Placeholder shown when there is no selection. */
|
|
35
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
36
|
+
/** Label used to bind the control inside a `formGroup`. */
|
|
37
|
+
label: import("@angular/core").InputSignal<string | undefined>;
|
|
38
|
+
/** Shows a loading state while options are being fetched. */
|
|
39
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
40
|
+
/** Marks that all options have been loaded (used with pagination + search). */
|
|
41
|
+
isAllDataLoaded: import("@angular/core").InputSignal<boolean>;
|
|
42
|
+
/** Allows creating new entries from the typed search term. */
|
|
43
|
+
allowCustomEntries: import("@angular/core").InputSignal<boolean>;
|
|
44
|
+
/** Parent form group to resolve the control from `label`. */
|
|
45
|
+
formGroup: import("@angular/core").InputSignal<FormGroup<any> | undefined>;
|
|
46
|
+
/** Enables the search input inside the dropdown. */
|
|
47
|
+
isSearchable: import("@angular/core").InputSignal<boolean>;
|
|
48
|
+
/** Number of options loaded per page when pagination is enabled. */
|
|
49
|
+
itemsPerPage: import("@angular/core").InputSignal<number>;
|
|
50
|
+
/** FormControl bound externally (used instead of `formGroup`/`label`). */
|
|
51
|
+
control: import("@angular/core").InputSignal<FormControl<any> | undefined>;
|
|
52
|
+
/** Paginates the option list instead of rendering it all at once. */
|
|
53
|
+
usePagination: import("@angular/core").InputSignal<boolean>;
|
|
54
|
+
/** Disables the whole select. */
|
|
55
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
56
|
+
/** Custom per-validation-error messages shown under the select. */
|
|
57
|
+
errorMessages: import("@angular/core").InputSignal<{
|
|
58
|
+
[key: string]: string;
|
|
59
|
+
}>;
|
|
60
|
+
/** Keeps the search term when options reload. */
|
|
61
|
+
preserveSearchOnLoad: import("@angular/core").InputSignal<boolean>;
|
|
62
|
+
/** Translation key of the "no records" empty message. */
|
|
63
|
+
emptyMessageKey: import("@angular/core").InputSignal<string>;
|
|
64
|
+
/** Opens the dropdown above the trigger instead of below. */
|
|
65
|
+
dropdownUpward: import("@angular/core").InputSignal<boolean>;
|
|
66
|
+
/** Shows the "no selection" option in single-select mode. */
|
|
67
|
+
showEmptyOption: import("@angular/core").InputSignal<boolean>;
|
|
68
|
+
/** Emits when the selection changes (new value or array in multiple mode). */
|
|
69
|
+
selectionChange: import("@angular/core").OutputEmitterRef<any>;
|
|
70
|
+
/** Emitted on blur/close so Signal Forms can mark the field as touched. */
|
|
71
|
+
touch: import("@angular/core").OutputEmitterRef<void>;
|
|
72
|
+
/** Emits the debounced search term while typing. */
|
|
73
|
+
search: import("@angular/core").OutputEmitterRef<string>;
|
|
74
|
+
/** Reference to the filter input inside the dropdown (when searchable). */
|
|
75
|
+
filterInput: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
76
|
+
/** Reference to the select container element. */
|
|
77
|
+
private selectContainer;
|
|
78
|
+
/** Reference to the trigger button. */
|
|
79
|
+
private selectTrigger;
|
|
80
|
+
/** Reference to the dropdown list container. */
|
|
81
|
+
private dropdownContainer;
|
|
82
|
+
/** Selection value. Two-way bindable and used by Signal Forms `[formField]`. */
|
|
83
|
+
value: import("@angular/core").ModelSignal<any>;
|
|
84
|
+
/** Internal alias kept for the existing implementation. */
|
|
85
|
+
private get _value();
|
|
86
|
+
/** Whether the dropdown is open. */
|
|
87
|
+
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
88
|
+
/** Index of the currently focused option for keyboard navigation. */
|
|
89
|
+
focusedIndex: import("@angular/core").WritableSignal<number>;
|
|
90
|
+
/** Current search term (searchable mode). */
|
|
91
|
+
searchTerm: import("@angular/core").WritableSignal<string>;
|
|
92
|
+
/** Current page of the paginated dropdown. */
|
|
93
|
+
currentPage: import("@angular/core").WritableSignal<number>;
|
|
94
|
+
/** Tracks whether the user typed in the search input. */
|
|
95
|
+
private searchTermChanged;
|
|
96
|
+
/** Internal disabled state from the reactive form (setDisabledState). */
|
|
97
|
+
private _isDisabled;
|
|
98
|
+
/** Debounce timer handle for the search output. */
|
|
99
|
+
private debounceTimer;
|
|
100
|
+
/** Error-state counter used to recompute error helpers reactively. */
|
|
101
|
+
private errorTracker;
|
|
102
|
+
/** Whether an error has been shown at some point (for "fixed" messaging). */
|
|
103
|
+
hadError: import("@angular/core").WritableSignal<boolean>;
|
|
104
|
+
/** Whether control status/value subscriptions have been attached. */
|
|
105
|
+
private subscribed;
|
|
106
|
+
private valueSubscribed;
|
|
107
|
+
/** True when the select is disabled via input or by the reactive form. */
|
|
108
|
+
isDisabled: import("@angular/core").Signal<boolean>;
|
|
109
|
+
/** Resolves the form control from `control` or from `formGroup`+`label`. */
|
|
110
|
+
actualControl: import("@angular/core").Signal<FormControl<any> | undefined>;
|
|
111
|
+
/** Whether the bound control should display its error (invalid + touched/dirty). */
|
|
112
|
+
shouldShowError: import("@angular/core").Signal<boolean | undefined>;
|
|
113
|
+
/** Whether an error was shown before and the control is now valid + touched. */
|
|
114
|
+
wasFixedError: import("@angular/core").Signal<boolean | undefined>;
|
|
115
|
+
/** Text shown in the trigger: the selected label(s) or the placeholder. */
|
|
116
|
+
displayValue: import("@angular/core").Signal<any>;
|
|
117
|
+
/** List of validation error messages for the bound control. */
|
|
118
|
+
getErrorMessages: import("@angular/core").Signal<string[]>;
|
|
119
|
+
/** Options filtered by the search term (matches first, then contains). */
|
|
120
|
+
filteredOptions: import("@angular/core").Signal<SelectOption[]>;
|
|
121
|
+
/** Options for the current page, with a synthetic custom entry when allowed. */
|
|
122
|
+
paginatedOptions: import("@angular/core").Signal<SelectOption[]>;
|
|
123
|
+
/** Non-custom options, including the empty option in single-select mode. */
|
|
124
|
+
regularOptions: import("@angular/core").Signal<SelectOption[]>;
|
|
125
|
+
/** Total pages of the filtered option list (1 when pagination is off). */
|
|
126
|
+
totalPages: import("@angular/core").Signal<number>;
|
|
127
|
+
/** Whether there is at least one selected value. */
|
|
128
|
+
hasSelectedValues: import("@angular/core").Signal<any>;
|
|
129
|
+
/** Whether the custom optional entry should be offered for the current term. */
|
|
130
|
+
showCustomOption: import("@angular/core").Signal<boolean>;
|
|
131
|
+
/** Fixed position of the dropdown relative to the viewport. */
|
|
132
|
+
dropdownPosition: import("@angular/core").WritableSignal<{
|
|
133
|
+
top: number;
|
|
134
|
+
left: number;
|
|
135
|
+
width: number;
|
|
136
|
+
}>;
|
|
137
|
+
/** Computes the fixed position of the dropdown so it's not clipped by overflow. */
|
|
138
|
+
/** Max height of the dropdown panel (matches `max-h-[240px]` in the template). */
|
|
139
|
+
private static readonly DROPDOWN_MAX_HEIGHT;
|
|
140
|
+
/** Approximate height of one option row (`py-2` + `text-sm`), used before the panel is rendered. */
|
|
141
|
+
private static readonly OPTION_HEIGHT;
|
|
142
|
+
/**
|
|
143
|
+
* Height the panel will take: the rendered height when the panel already
|
|
144
|
+
* exists, otherwise an estimate from the number of rows. Before this the
|
|
145
|
+
* position always assumed 240px, so a 3-option select near the bottom of the
|
|
146
|
+
* viewport opened upward even though it fitted below.
|
|
147
|
+
*/
|
|
148
|
+
private dropdownHeight;
|
|
149
|
+
/** Computes the fixed position of the dropdown so it's not clipped by overflow. */
|
|
150
|
+
computeDropdownPosition(): void;
|
|
151
|
+
private transloco;
|
|
152
|
+
/** ControlValueAccessor onChange callback. */
|
|
153
|
+
private onChange;
|
|
154
|
+
/** ControlValueAccessor onTouched callback. */
|
|
155
|
+
private onTouched;
|
|
156
|
+
private destroyRef;
|
|
157
|
+
/** Closes the dropdown when the page/container scrolls, ignoring scrolls that start inside the component (its own options list). */
|
|
158
|
+
private readonly scrollCloseHandler;
|
|
159
|
+
constructor(elementRef: ElementRef);
|
|
160
|
+
/** Sets the disabled state coming from the reactive form infrastructure. */
|
|
161
|
+
setDisabledState(isDisabled: boolean): void;
|
|
162
|
+
/** Marks the control as touched and updates validity and error state. */
|
|
163
|
+
private markAsTouchedAndUpdate;
|
|
164
|
+
/** Strips accents and lowercases text for accent-insensitive matching. */
|
|
165
|
+
normalizeText(text: string): string;
|
|
166
|
+
/** Keyboard handler for the trigger element (open/close/navigate/select). */
|
|
167
|
+
onKeydown(event: KeyboardEvent): void;
|
|
168
|
+
/** Keyboard handler for the search input inside a searchable dropdown. */
|
|
169
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
170
|
+
/** Moves the focused option index by `direction`, skipping disabled ones. */
|
|
171
|
+
private moveFocus;
|
|
172
|
+
/** Index of the currently selected option, or -1. */
|
|
173
|
+
private getSelectedIndex;
|
|
174
|
+
/** Whether an option is disabled based on the valid combinations rule. */
|
|
175
|
+
isOptionDisabled(option: SelectOption): boolean;
|
|
176
|
+
/** Whether an option is currently selected. */
|
|
177
|
+
isSelected(option: SelectOption): boolean;
|
|
178
|
+
/** Goes to the next options page when possible. */
|
|
179
|
+
nextPage(): void;
|
|
180
|
+
/** Goes to the previous options page when possible. */
|
|
181
|
+
previousPage(): void;
|
|
182
|
+
/** Whether a node belongs to the component or to its (portaled) dropdown panel. */
|
|
183
|
+
private isInsideComponent;
|
|
184
|
+
/** Closes the dropdown when a click happens outside the component. */
|
|
185
|
+
onClickOutside(event: MouseEvent): void;
|
|
186
|
+
/** Selects a typed free-text value as a new custom entry. */
|
|
187
|
+
onCustomOptionClick(): void;
|
|
188
|
+
/** Handles typing in the search input (updates term and emits search). */
|
|
189
|
+
onInputChange(event: Event): void;
|
|
190
|
+
/** Selects or toggles the clicked option (custom entries included). */
|
|
191
|
+
onOptionClick(option: SelectOption): void;
|
|
192
|
+
/** Selects a single option and updates the control/outputs. */
|
|
193
|
+
selectOption(option: SelectOption): void;
|
|
194
|
+
/** Toggles an option in multiple mode, honoring the valid combinations. */
|
|
195
|
+
toggleOption(option: SelectOption): void;
|
|
196
|
+
/** Opens/closes the dropdown and manages focus/selection state. */
|
|
197
|
+
toggleDropdown(): void;
|
|
198
|
+
/** trackBy for rendered options so Angular reuses DOM nodes by value. */
|
|
199
|
+
trackByFn(index: number, option: SelectOption): any;
|
|
200
|
+
/** Writes an external value into the internal signal (ControlValueAccessor). */
|
|
201
|
+
writeValue(value: any): void;
|
|
202
|
+
/** Stores the onChange callback (ControlValueAccessor). */
|
|
203
|
+
registerOnChange(fn: any): void;
|
|
204
|
+
/** Stores the onTouched callback (ControlValueAccessor). */
|
|
205
|
+
registerOnTouched(fn: any): void;
|
|
206
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
207
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "shk-select", never, {
|
|
208
|
+
"options": {
|
|
209
|
+
"alias": "options";
|
|
210
|
+
"required": false;
|
|
211
|
+
"isSignal": true;
|
|
212
|
+
};
|
|
213
|
+
"multiple": {
|
|
214
|
+
"alias": "multiple";
|
|
215
|
+
"required": false;
|
|
216
|
+
"isSignal": true;
|
|
217
|
+
};
|
|
218
|
+
"validCombinations": {
|
|
219
|
+
"alias": "validCombinations";
|
|
220
|
+
"required": false;
|
|
221
|
+
"isSignal": true;
|
|
222
|
+
};
|
|
223
|
+
"placeholder": {
|
|
224
|
+
"alias": "placeholder";
|
|
225
|
+
"required": false;
|
|
226
|
+
"isSignal": true;
|
|
227
|
+
};
|
|
228
|
+
"label": {
|
|
229
|
+
"alias": "label";
|
|
230
|
+
"required": false;
|
|
231
|
+
"isSignal": true;
|
|
232
|
+
};
|
|
233
|
+
"isLoading": {
|
|
234
|
+
"alias": "isLoading";
|
|
235
|
+
"required": false;
|
|
236
|
+
"isSignal": true;
|
|
237
|
+
};
|
|
238
|
+
"isAllDataLoaded": {
|
|
239
|
+
"alias": "isAllDataLoaded";
|
|
240
|
+
"required": false;
|
|
241
|
+
"isSignal": true;
|
|
242
|
+
};
|
|
243
|
+
"allowCustomEntries": {
|
|
244
|
+
"alias": "allowCustomEntries";
|
|
245
|
+
"required": false;
|
|
246
|
+
"isSignal": true;
|
|
247
|
+
};
|
|
248
|
+
"formGroup": {
|
|
249
|
+
"alias": "formGroup";
|
|
250
|
+
"required": false;
|
|
251
|
+
"isSignal": true;
|
|
252
|
+
};
|
|
253
|
+
"isSearchable": {
|
|
254
|
+
"alias": "isSearchable";
|
|
255
|
+
"required": false;
|
|
256
|
+
"isSignal": true;
|
|
257
|
+
};
|
|
258
|
+
"itemsPerPage": {
|
|
259
|
+
"alias": "itemsPerPage";
|
|
260
|
+
"required": false;
|
|
261
|
+
"isSignal": true;
|
|
262
|
+
};
|
|
263
|
+
"control": {
|
|
264
|
+
"alias": "control";
|
|
265
|
+
"required": false;
|
|
266
|
+
"isSignal": true;
|
|
267
|
+
};
|
|
268
|
+
"usePagination": {
|
|
269
|
+
"alias": "usePagination";
|
|
270
|
+
"required": false;
|
|
271
|
+
"isSignal": true;
|
|
272
|
+
};
|
|
273
|
+
"disabled": {
|
|
274
|
+
"alias": "disabled";
|
|
275
|
+
"required": false;
|
|
276
|
+
"isSignal": true;
|
|
277
|
+
};
|
|
278
|
+
"errorMessages": {
|
|
279
|
+
"alias": "errorMessages";
|
|
280
|
+
"required": false;
|
|
281
|
+
"isSignal": true;
|
|
282
|
+
};
|
|
283
|
+
"preserveSearchOnLoad": {
|
|
284
|
+
"alias": "preserveSearchOnLoad";
|
|
285
|
+
"required": false;
|
|
286
|
+
"isSignal": true;
|
|
287
|
+
};
|
|
288
|
+
"emptyMessageKey": {
|
|
289
|
+
"alias": "emptyMessageKey";
|
|
290
|
+
"required": false;
|
|
291
|
+
"isSignal": true;
|
|
292
|
+
};
|
|
293
|
+
"dropdownUpward": {
|
|
294
|
+
"alias": "dropdownUpward";
|
|
295
|
+
"required": false;
|
|
296
|
+
"isSignal": true;
|
|
297
|
+
};
|
|
298
|
+
"showEmptyOption": {
|
|
299
|
+
"alias": "showEmptyOption";
|
|
300
|
+
"required": false;
|
|
301
|
+
"isSignal": true;
|
|
302
|
+
};
|
|
303
|
+
"value": {
|
|
304
|
+
"alias": "value";
|
|
305
|
+
"required": false;
|
|
306
|
+
"isSignal": true;
|
|
307
|
+
};
|
|
308
|
+
}, {
|
|
309
|
+
"selectionChange": "selectionChange";
|
|
310
|
+
"touch": "touch";
|
|
311
|
+
"search": "search";
|
|
312
|
+
"value": "valueChange";
|
|
313
|
+
}, never, never, true, never>;
|
|
203
314
|
}
|
|
204
|
-
|
|
205
|
-
export { SelectComponent };
|
|
206
|
-
export type { SelectOption };
|
|
315
|
+
export type { SelectOption };
|