@luzmo/ngx-lucero 1.0.1-alpha.78

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.
Files changed (136) hide show
  1. package/README.md +41 -0
  2. package/esm/components/accordion-item.d.ts +32 -0
  3. package/esm/components/accordion-item.js +89 -0
  4. package/esm/components/accordion.d.ts +38 -0
  5. package/esm/components/accordion.js +107 -0
  6. package/esm/components/action-bar.d.ts +32 -0
  7. package/esm/components/action-bar.js +83 -0
  8. package/esm/components/action-button.d.ts +59 -0
  9. package/esm/components/action-button.js +205 -0
  10. package/esm/components/action-group.d.ts +42 -0
  11. package/esm/components/action-group.js +155 -0
  12. package/esm/components/action-menu.d.ts +75 -0
  13. package/esm/components/action-menu.js +337 -0
  14. package/esm/components/avatar.d.ts +35 -0
  15. package/esm/components/avatar.js +94 -0
  16. package/esm/components/badge.d.ts +31 -0
  17. package/esm/components/badge.js +86 -0
  18. package/esm/components/button-group.d.ts +28 -0
  19. package/esm/components/button-group.js +71 -0
  20. package/esm/components/button.d.ts +40 -0
  21. package/esm/components/button.js +140 -0
  22. package/esm/components/calendar.d.ts +64 -0
  23. package/esm/components/calendar.js +218 -0
  24. package/esm/components/chat-message-group.d.ts +29 -0
  25. package/esm/components/chat-message-group.js +76 -0
  26. package/esm/components/chat-message.d.ts +50 -0
  27. package/esm/components/chat-message.js +156 -0
  28. package/esm/components/checkbox.d.ts +55 -0
  29. package/esm/components/checkbox.js +196 -0
  30. package/esm/components/clear-button.d.ts +32 -0
  31. package/esm/components/clear-button.js +88 -0
  32. package/esm/components/close-button.d.ts +33 -0
  33. package/esm/components/close-button.js +95 -0
  34. package/esm/components/color-area.d.ts +45 -0
  35. package/esm/components/color-area.js +167 -0
  36. package/esm/components/color-field.d.ts +91 -0
  37. package/esm/components/color-field.js +321 -0
  38. package/esm/components/color-handle.d.ts +31 -0
  39. package/esm/components/color-handle.js +90 -0
  40. package/esm/components/color-loupe.d.ts +29 -0
  41. package/esm/components/color-loupe.js +76 -0
  42. package/esm/components/color-menu.d.ts +36 -0
  43. package/esm/components/color-menu.js +97 -0
  44. package/esm/components/color-palette-group.d.ts +40 -0
  45. package/esm/components/color-palette-group.js +117 -0
  46. package/esm/components/color-palette.d.ts +43 -0
  47. package/esm/components/color-palette.js +126 -0
  48. package/esm/components/color-picker.d.ts +49 -0
  49. package/esm/components/color-picker.js +143 -0
  50. package/esm/components/color-slider.d.ts +53 -0
  51. package/esm/components/color-slider.js +215 -0
  52. package/esm/components/date-range-picker.d.ts +69 -0
  53. package/esm/components/date-range-picker.js +228 -0
  54. package/esm/components/date-time-picker.d.ts +71 -0
  55. package/esm/components/date-time-picker.js +249 -0
  56. package/esm/components/divider.d.ts +31 -0
  57. package/esm/components/divider.js +78 -0
  58. package/esm/components/field-group.d.ts +32 -0
  59. package/esm/components/field-group.js +101 -0
  60. package/esm/components/field-label.d.ts +37 -0
  61. package/esm/components/field-label.js +104 -0
  62. package/esm/components/help-text.d.ts +30 -0
  63. package/esm/components/help-text.js +77 -0
  64. package/esm/components/icon.d.ts +33 -0
  65. package/esm/components/icon.js +104 -0
  66. package/esm/components/infield-button.d.ts +35 -0
  67. package/esm/components/infield-button.js +103 -0
  68. package/esm/components/label.d.ts +29 -0
  69. package/esm/components/label.js +76 -0
  70. package/esm/components/menu.d.ts +53 -0
  71. package/esm/components/menu.js +218 -0
  72. package/esm/components/multi-language-field.d.ts +58 -0
  73. package/esm/components/multi-language-field.js +263 -0
  74. package/esm/components/number-field.d.ts +103 -0
  75. package/esm/components/number-field.js +372 -0
  76. package/esm/components/options.d.ts +58 -0
  77. package/esm/components/options.js +207 -0
  78. package/esm/components/overlay.d.ts +67 -0
  79. package/esm/components/overlay.js +212 -0
  80. package/esm/components/picker-button.d.ts +32 -0
  81. package/esm/components/picker-button.js +94 -0
  82. package/esm/components/picker.d.ts +79 -0
  83. package/esm/components/picker.js +340 -0
  84. package/esm/components/popover.d.ts +33 -0
  85. package/esm/components/popover.js +93 -0
  86. package/esm/components/progress-bar.d.ts +35 -0
  87. package/esm/components/progress-bar.js +121 -0
  88. package/esm/components/progress-circle.d.ts +35 -0
  89. package/esm/components/progress-circle.js +94 -0
  90. package/esm/components/progress-steps.d.ts +46 -0
  91. package/esm/components/progress-steps.js +127 -0
  92. package/esm/components/prompt-box.d.ts +88 -0
  93. package/esm/components/prompt-box.js +280 -0
  94. package/esm/components/radio-group.d.ts +39 -0
  95. package/esm/components/radio-group.js +136 -0
  96. package/esm/components/radio.d.ts +46 -0
  97. package/esm/components/radio.js +172 -0
  98. package/esm/components/search.d.ts +95 -0
  99. package/esm/components/search.js +351 -0
  100. package/esm/components/select.d.ts +82 -0
  101. package/esm/components/select.js +351 -0
  102. package/esm/components/slider.d.ts +47 -0
  103. package/esm/components/slider.js +185 -0
  104. package/esm/components/status-light.d.ts +30 -0
  105. package/esm/components/status-light.js +78 -0
  106. package/esm/components/swatch-group.d.ts +37 -0
  107. package/esm/components/swatch-group.js +126 -0
  108. package/esm/components/swatch.d.ts +49 -0
  109. package/esm/components/swatch.js +197 -0
  110. package/esm/components/switch.d.ts +48 -0
  111. package/esm/components/switch.js +160 -0
  112. package/esm/components/tab-panel.d.ts +29 -0
  113. package/esm/components/tab-panel.js +78 -0
  114. package/esm/components/tab.d.ts +32 -0
  115. package/esm/components/tab.js +100 -0
  116. package/esm/components/tabs-overflow.d.ts +33 -0
  117. package/esm/components/tabs-overflow.js +97 -0
  118. package/esm/components/tabs.d.ts +43 -0
  119. package/esm/components/tabs.js +150 -0
  120. package/esm/components/tag.d.ts +31 -0
  121. package/esm/components/tag.js +90 -0
  122. package/esm/components/tags.d.ts +30 -0
  123. package/esm/components/tags.js +81 -0
  124. package/esm/components/text-field.d.ts +87 -0
  125. package/esm/components/text-field.js +308 -0
  126. package/esm/components/toast.d.ts +30 -0
  127. package/esm/components/toast.js +68 -0
  128. package/esm/components/tooltip.d.ts +44 -0
  129. package/esm/components/tooltip.js +154 -0
  130. package/esm/components/top-nav-item.d.ts +35 -0
  131. package/esm/components/top-nav-item.js +120 -0
  132. package/esm/components/top-nav.d.ts +35 -0
  133. package/esm/components/top-nav.js +110 -0
  134. package/esm/index.d.ts +135 -0
  135. package/esm/index.js +269 -0
  136. package/package.json +40 -0
@@ -0,0 +1,351 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, forwardRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
+ import '@luzmo/lucero/search';
4
+ import * as i0 from "@angular/core";
5
+ const _c0 = ["*"];
6
+ /**
7
+ * Angular wrapper component for <luzmo-search>
8
+ *
9
+ * @slot help-text - default or non-negative help text to associate to your form element
10
+ * @slot negative-help-text - negative help text to associate to your form element when `invalid`
11
+ */
12
+ export class LuzmoSearch {
13
+ elementRef = inject(ElementRef);
14
+ renderer = inject(Renderer2);
15
+ destroyRef = inject(DestroyRef);
16
+ host = this.elementRef.nativeElement;
17
+ listenerCleanup = [];
18
+ /** The underlying custom element instance. Use to call imperative methods. */
19
+ get nativeElement() {
20
+ return this.host;
21
+ }
22
+ action;
23
+ /** A string applied via `aria-label` to the form control when a user visible label is not provided. */
24
+ label;
25
+ border;
26
+ method;
27
+ /** Text that appears in the form control when it has no value set */
28
+ placeholder;
29
+ holdValueOnEscape;
30
+ form;
31
+ /** The value held by the form control */
32
+ value;
33
+ helpTextManager;
34
+ /** A regular expression outlining the keys that will be allowed to update the value of the form control. */
35
+ allowedKeys;
36
+ /** Whether the `value` held by the form control is invalid. */
37
+ invalid;
38
+ /** Name of the form control. */
39
+ name;
40
+ type;
41
+ /** Pattern the `value` must match to be valid */
42
+ pattern;
43
+ /** Whether a form control delivered with the `multiline` attribute will change size vertically to accomodate longer input */
44
+ grows;
45
+ /** Defines the maximum string length that the user can enter */
46
+ maxlength;
47
+ /** Defines the minimum string length that the user can enter */
48
+ minlength;
49
+ /** Whether the form control should accept a value longer than one line */
50
+ multiline;
51
+ /** Whether a user can interact with the value of the form control */
52
+ readonly;
53
+ /** The specific number of rows the form control should provide in the user interface */
54
+ rows;
55
+ /** The maximum number of rows the form control should grow to when `grows` is enabled. When content exceeds this limit, the textarea will show a scrollbar. A value of -1 means no maximum (unlimited growth). When set, the value must be >= 1; values < 1 will be disregarded. */
56
+ maxRows;
57
+ /** Whether the `value` held by the form control is valid. */
58
+ valid;
59
+ /** Whether to hide the validation state icons (valid/invalid icons). */
60
+ hideValidationIcons;
61
+ /** Whether to display the form control with no visible background */
62
+ quiet;
63
+ /** Whether the form control will be found to be invalid when it holds no `value` */
64
+ required;
65
+ /** What form of assistance should be provided when attempting to supply a value to the form control */
66
+ autocomplete;
67
+ /** The search form has been submitted. */
68
+ submitEvent = output({ alias: 'submit' });
69
+ /** An alteration to the value of the element has been committed by the user. */
70
+ changeEvent = output({ alias: 'change' });
71
+ /** The value of the element has changed. */
72
+ inputEvent = output({ alias: 'input' });
73
+ /** A key has been pressed. */
74
+ keypressEvent = output({ alias: 'keypress' });
75
+ constructor() {
76
+ this.bindEvents();
77
+ this.destroyRef.onDestroy(() => {
78
+ for (const cleanup of this.listenerCleanup) {
79
+ cleanup();
80
+ }
81
+ });
82
+ }
83
+ ngOnChanges(changes) {
84
+ for (const key of Object.keys(changes)) {
85
+ switch (key) {
86
+ case 'action':
87
+ this.setHostProperty('action', changes['action'].currentValue);
88
+ break;
89
+ case 'label':
90
+ this.setHostProperty('label', changes['label'].currentValue);
91
+ break;
92
+ case 'border':
93
+ this.setHostProperty('border', changes['border'].currentValue);
94
+ break;
95
+ case 'method':
96
+ this.setHostProperty('method', changes['method'].currentValue);
97
+ break;
98
+ case 'placeholder':
99
+ this.setHostProperty('placeholder', changes['placeholder'].currentValue);
100
+ break;
101
+ case 'holdValueOnEscape':
102
+ this.setHostProperty('holdValueOnEscape', changes['holdValueOnEscape'].currentValue);
103
+ break;
104
+ case 'form':
105
+ this.setHostProperty('form', changes['form'].currentValue);
106
+ break;
107
+ case 'value':
108
+ this.setHostProperty('value', changes['value'].currentValue);
109
+ break;
110
+ case 'helpTextManager':
111
+ this.setHostProperty('helpTextManager', changes['helpTextManager'].currentValue);
112
+ break;
113
+ case 'allowedKeys':
114
+ this.setHostProperty('allowedKeys', changes['allowedKeys'].currentValue);
115
+ break;
116
+ case 'invalid':
117
+ this.setHostProperty('invalid', changes['invalid'].currentValue);
118
+ break;
119
+ case 'name':
120
+ this.setHostProperty('name', changes['name'].currentValue);
121
+ break;
122
+ case 'type':
123
+ this.setHostProperty('type', changes['type'].currentValue);
124
+ break;
125
+ case 'pattern':
126
+ this.setHostProperty('pattern', changes['pattern'].currentValue);
127
+ break;
128
+ case 'grows':
129
+ this.setHostProperty('grows', changes['grows'].currentValue);
130
+ break;
131
+ case 'maxlength':
132
+ this.setHostProperty('maxlength', changes['maxlength'].currentValue);
133
+ break;
134
+ case 'minlength':
135
+ this.setHostProperty('minlength', changes['minlength'].currentValue);
136
+ break;
137
+ case 'multiline':
138
+ this.setHostProperty('multiline', changes['multiline'].currentValue);
139
+ break;
140
+ case 'readonly':
141
+ this.setHostProperty('readonly', changes['readonly'].currentValue);
142
+ break;
143
+ case 'rows':
144
+ this.setHostProperty('rows', changes['rows'].currentValue);
145
+ break;
146
+ case 'maxRows':
147
+ this.setHostProperty('maxRows', changes['maxRows'].currentValue);
148
+ break;
149
+ case 'valid':
150
+ this.setHostProperty('valid', changes['valid'].currentValue);
151
+ break;
152
+ case 'hideValidationIcons':
153
+ this.setHostProperty('hideValidationIcons', changes['hideValidationIcons'].currentValue);
154
+ break;
155
+ case 'quiet':
156
+ this.setHostProperty('quiet', changes['quiet'].currentValue);
157
+ break;
158
+ case 'required':
159
+ this.setHostProperty('required', changes['required'].currentValue);
160
+ break;
161
+ case 'autocomplete':
162
+ this.setHostProperty('autocomplete', changes['autocomplete'].currentValue);
163
+ break;
164
+ default:
165
+ break;
166
+ }
167
+ }
168
+ }
169
+ /**
170
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
171
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
172
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
173
+ * undefined / null by clearing their bindings.
174
+ */
175
+ setHostProperty(key, value) {
176
+ this.renderer.setProperty(this.host, key, value);
177
+ }
178
+ bindEvents() {
179
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'submit', (event) => {
180
+ this.submitEvent.emit(event);
181
+ }));
182
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'change', (event) => {
183
+ this.changeEvent.emit(event);
184
+ if (!this.isWritingValue) {
185
+ const eventWithDetail = event;
186
+ const eventTarget = event.target;
187
+ const detail = 'detail' in eventWithDetail ? eventWithDetail.detail : undefined;
188
+ const hostRecord = this.host;
189
+ const nextValue = (detail
190
+ ?? eventTarget?.['value']
191
+ ?? hostRecord['value']);
192
+ if (Object.is(this.lastCvaValue, nextValue)) {
193
+ return;
194
+ }
195
+ this.lastCvaValue = nextValue;
196
+ this.setHostProperty('value', nextValue);
197
+ this.onChange(nextValue);
198
+ }
199
+ }));
200
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'input', (event) => {
201
+ this.inputEvent.emit(event);
202
+ }));
203
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'keypress', (event) => {
204
+ this.keypressEvent.emit(event);
205
+ }));
206
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'blur', () => {
207
+ this.onTouched();
208
+ }));
209
+ }
210
+ onChange = () => { };
211
+ onTouched = () => { };
212
+ isWritingValue = false;
213
+ lastCvaValue;
214
+ writeValue(value) {
215
+ this.isWritingValue = true;
216
+ this.lastCvaValue = value;
217
+ this.setHostProperty('value', value);
218
+ this.isWritingValue = false;
219
+ }
220
+ registerOnChange(fn) {
221
+ this.onChange = fn;
222
+ }
223
+ registerOnTouched(fn) {
224
+ this.onTouched = fn;
225
+ }
226
+ setDisabledState(isDisabled) {
227
+ // Underlying element does not declare a 'disabled' field; nothing to do.
228
+ void isDisabled;
229
+ }
230
+ reset() {
231
+ return this.host.reset();
232
+ }
233
+ /** Sets the start and end positions of the current selection. */
234
+ setSelectionRange(selectionStart, selectionEnd, selectionDirection) {
235
+ return this.host.setSelectionRange(selectionStart, selectionEnd, selectionDirection);
236
+ }
237
+ /** Selects all the text. */
238
+ select() {
239
+ return this.host.select();
240
+ }
241
+ checkValidity() {
242
+ return this.host.checkValidity();
243
+ }
244
+ static ɵfac = function LuzmoSearch_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoSearch)(); };
245
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoSearch, selectors: [["luzmo-search"]], inputs: { action: "action", label: "label", border: "border", method: "method", placeholder: "placeholder", holdValueOnEscape: [0, "hold-value-on-escape", "holdValueOnEscape"], form: "form", value: "value", helpTextManager: [0, "help-text-manager", "helpTextManager"], allowedKeys: [0, "allowed-keys", "allowedKeys"], invalid: "invalid", name: "name", type: "type", pattern: "pattern", grows: "grows", maxlength: "maxlength", minlength: "minlength", multiline: "multiline", readonly: "readonly", rows: "rows", maxRows: [0, "max-rows", "maxRows"], valid: "valid", hideValidationIcons: [0, "hide-validation-icons", "hideValidationIcons"], quiet: "quiet", required: "required", autocomplete: "autocomplete" }, outputs: { submitEvent: "submit", changeEvent: "change", inputEvent: "input", keypressEvent: "keypress" }, exportAs: ["luzmoSearch"], features: [i0.ɵɵProvidersFeature([
246
+ {
247
+ provide: NG_VALUE_ACCESSOR,
248
+ useExisting: forwardRef(() => LuzmoSearch),
249
+ multi: true
250
+ }
251
+ ]), i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoSearch_Template(rf, ctx) { if (rf & 1) {
252
+ i0.ɵɵprojectionDef();
253
+ i0.ɵɵprojection(0);
254
+ } }, encapsulation: 2, changeDetection: 0 });
255
+ }
256
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoSearch, [{
257
+ type: Component,
258
+ args: [{
259
+ selector: 'luzmo-search',
260
+ exportAs: 'luzmoSearch',
261
+ standalone: true,
262
+ changeDetection: ChangeDetectionStrategy.OnPush,
263
+ template: '<ng-content />',
264
+ providers: [
265
+ {
266
+ provide: NG_VALUE_ACCESSOR,
267
+ useExisting: forwardRef(() => LuzmoSearch),
268
+ multi: true
269
+ }
270
+ ]
271
+ }]
272
+ }], () => [], { action: [{
273
+ type: Input,
274
+ args: [{ alias: 'action' }]
275
+ }], label: [{
276
+ type: Input,
277
+ args: [{ alias: 'label' }]
278
+ }], border: [{
279
+ type: Input,
280
+ args: [{ alias: 'border' }]
281
+ }], method: [{
282
+ type: Input,
283
+ args: [{ alias: 'method' }]
284
+ }], placeholder: [{
285
+ type: Input,
286
+ args: [{ alias: 'placeholder' }]
287
+ }], holdValueOnEscape: [{
288
+ type: Input,
289
+ args: [{ alias: 'hold-value-on-escape' }]
290
+ }], form: [{
291
+ type: Input,
292
+ args: [{ alias: 'form' }]
293
+ }], value: [{
294
+ type: Input,
295
+ args: [{ alias: 'value' }]
296
+ }], helpTextManager: [{
297
+ type: Input,
298
+ args: [{ alias: 'help-text-manager' }]
299
+ }], allowedKeys: [{
300
+ type: Input,
301
+ args: [{ alias: 'allowed-keys' }]
302
+ }], invalid: [{
303
+ type: Input,
304
+ args: [{ alias: 'invalid' }]
305
+ }], name: [{
306
+ type: Input,
307
+ args: [{ alias: 'name' }]
308
+ }], type: [{
309
+ type: Input,
310
+ args: [{ alias: 'type' }]
311
+ }], pattern: [{
312
+ type: Input,
313
+ args: [{ alias: 'pattern' }]
314
+ }], grows: [{
315
+ type: Input,
316
+ args: [{ alias: 'grows' }]
317
+ }], maxlength: [{
318
+ type: Input,
319
+ args: [{ alias: 'maxlength' }]
320
+ }], minlength: [{
321
+ type: Input,
322
+ args: [{ alias: 'minlength' }]
323
+ }], multiline: [{
324
+ type: Input,
325
+ args: [{ alias: 'multiline' }]
326
+ }], readonly: [{
327
+ type: Input,
328
+ args: [{ alias: 'readonly' }]
329
+ }], rows: [{
330
+ type: Input,
331
+ args: [{ alias: 'rows' }]
332
+ }], maxRows: [{
333
+ type: Input,
334
+ args: [{ alias: 'max-rows' }]
335
+ }], valid: [{
336
+ type: Input,
337
+ args: [{ alias: 'valid' }]
338
+ }], hideValidationIcons: [{
339
+ type: Input,
340
+ args: [{ alias: 'hide-validation-icons' }]
341
+ }], quiet: [{
342
+ type: Input,
343
+ args: [{ alias: 'quiet' }]
344
+ }], required: [{
345
+ type: Input,
346
+ args: [{ alias: 'required' }]
347
+ }], autocomplete: [{
348
+ type: Input,
349
+ args: [{ alias: 'autocomplete' }]
350
+ }], submitEvent: [{ type: i0.Output, args: ["submit"] }], changeEvent: [{ type: i0.Output, args: ["change"] }], inputEvent: [{ type: i0.Output, args: ["input"] }], keypressEvent: [{ type: i0.Output, args: ["keypress"] }] }); })();
351
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoSearch, { className: "LuzmoSearch", filePath: "components/search.ts", lineNumber: 26 }); })();
@@ -0,0 +1,82 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import '@luzmo/lucero/select';
4
+ import type { LuzmoSelect as LuzmoSelectHostElement } from '@luzmo/lucero/select';
5
+ import * as i0 from "@angular/core";
6
+ export declare class LuzmoSelect implements OnChanges, ControlValueAccessor {
7
+ private readonly elementRef;
8
+ private readonly renderer;
9
+ private readonly destroyRef;
10
+ private readonly host;
11
+ private readonly listenerCleanup;
12
+ /** The underlying custom element instance. Use to call imperative methods. */
13
+ get nativeElement(): LuzmoSelectHostElement;
14
+ disabled?: boolean;
15
+ focused?: boolean;
16
+ icons?: 'only' | 'none';
17
+ variant?: 'checkmarks' | 'checkboxes' | 'highlight';
18
+ emphasized?: boolean;
19
+ invalid?: boolean;
20
+ search?: 'on' | 'off' | 'auto';
21
+ noWrap?: boolean;
22
+ retrieving?: boolean;
23
+ pending?: boolean;
24
+ clearable?: boolean;
25
+ hideDropdownIcon?: boolean;
26
+ /** Defines a string value that labels the Picker while it is in pending state. */
27
+ pendingLabel?: string;
28
+ /** Defines a string value that labels the search input field. */
29
+ searchLabel?: string;
30
+ /** Defines a string value that is displayed when no results are found. */
31
+ noResultsLabel?: string;
32
+ noDataLabel?: string;
33
+ multipleLabelTemplate?: string;
34
+ label?: string;
35
+ open?: boolean;
36
+ readonly?: boolean;
37
+ labelAlignment?: 'inline';
38
+ placement?: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
39
+ quiet?: boolean;
40
+ /** The value of the select. */
41
+ value?: (string | number | null)[];
42
+ /** The options of the select. */
43
+ options?: any[];
44
+ /** Optional icon renderer callback forwarded to luzmo-options. Return null to use the default icon/imgSrc rendering. */
45
+ optionIconRenderer?: unknown;
46
+ selects?: never | 'single' | 'multiple';
47
+ /** Announces that the `value` of the element has changed */
48
+ readonly changeEvent: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
49
+ /** Announces that the user has scrolled within the options menu. Only fires when the options menu is virtualized. */
50
+ readonly luzmoScrolledEvent: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
51
+ /** Announces that the search has been updated */
52
+ readonly luzmoSearchEvent: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
53
+ /** Announces that the overlay has been opened */
54
+ readonly luzmoOpenedEvent: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
55
+ /** Announces that the overlay has been closed */
56
+ readonly luzmoClosedEvent: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
57
+ constructor();
58
+ ngOnChanges(changes: SimpleChanges): void;
59
+ /**
60
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
61
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
62
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
63
+ * undefined / null by clearing their bindings.
64
+ */
65
+ private setHostProperty;
66
+ private bindEvents;
67
+ private onChange;
68
+ private onTouched;
69
+ private isWritingValue;
70
+ private lastCvaValue;
71
+ writeValue(value: (string | number | null)[]): void;
72
+ registerOnChange(fn: (value: (string | number | null)[]) => void): void;
73
+ registerOnTouched(fn: () => void): void;
74
+ setDisabledState(isDisabled: boolean): void;
75
+ focus(options?: FocusOptions): void;
76
+ toggle(target?: boolean): void;
77
+ close(): void;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoSelect, never>;
79
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoSelect, "luzmo-select", ["luzmoSelect"], { "disabled": { "alias": "disabled"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "emphasized": { "alias": "emphasized"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "search": { "alias": "search"; "required": false; }; "noWrap": { "alias": "no-wrap"; "required": false; }; "retrieving": { "alias": "retrieving"; "required": false; }; "pending": { "alias": "pending"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "hideDropdownIcon": { "alias": "hide-dropdown-icon"; "required": false; }; "pendingLabel": { "alias": "pending-label"; "required": false; }; "searchLabel": { "alias": "search-label"; "required": false; }; "noResultsLabel": { "alias": "no-results-label"; "required": false; }; "noDataLabel": { "alias": "no-data-label"; "required": false; }; "multipleLabelTemplate": { "alias": "multiple-label-template"; "required": false; }; "label": { "alias": "label"; "required": false; }; "open": { "alias": "open"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "labelAlignment": { "alias": "label-alignment"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "value": { "alias": "value"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionIconRenderer": { "alias": "option-icon-renderer"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; }, { "changeEvent": "change"; "luzmoScrolledEvent": "luzmo-scrolled"; "luzmoSearchEvent": "luzmo-search"; "luzmoOpenedEvent": "luzmo-opened"; "luzmoClosedEvent": "luzmo-closed"; }, never, ["*"], true, never>;
80
+ }
81
+ /** The underlying custom element type for LuzmoSelect */
82
+ export type LuzmoSelectElement = LuzmoSelectHostElement;