@@ -11,8 +11,7 @@ import { Components } from '@anywhere-ui/core';
11
11
export declare interface AnyBadge extends Components . AnyBadge { }
12
12
13
13
@ProxyCmp ( {
14
- tagName : 'any-badge' ,
15
- customElement : undefined ,
14
+ defineCustomElementFn : undefined ,
16
15
inputs : [ 'anyStyle' , 'severity' , 'size' , 'styleClass' , 'value' ]
17
16
} )
18
17
@Component ( {
@@ -33,8 +32,7 @@ export class AnyBadge {
33
32
export declare interface AnyBadgeOverlay extends Components . AnyBadgeOverlay { }
34
33
35
34
@ProxyCmp ( {
36
- tagName : 'any-badge-overlay' ,
37
- customElement : undefined ,
35
+ defineCustomElementFn : undefined ,
38
36
inputs : [ 'styleClass' ]
39
37
} )
40
38
@Component ( {
@@ -69,8 +67,7 @@ export declare interface AnyButton extends Components.AnyButton {
69
67
}
70
68
71
69
@ProxyCmp ( {
72
- tagName : 'any-button' ,
73
- customElement : undefined ,
70
+ defineCustomElementFn : undefined ,
74
71
inputs : [ 'anyStyle' , 'badge' , 'badgeClass' , 'disabled' , 'icon' , 'iconHeight' , 'iconPos' , 'iconWidth' , 'label' , 'loading' , 'loadingIcon' , 'loadingIconStyleClass' , 'styleClass' , 'type' ]
75
72
} )
76
73
@Component ( {
@@ -106,16 +103,15 @@ export declare interface AnyCheckbox extends Components.AnyCheckbox {
106
103
}
107
104
108
105
@ProxyCmp ( {
109
- tagName : 'any-checkbox' ,
110
- customElement : undefined ,
111
- inputs : [ 'anyStyle' , 'binary' , 'checkboxIcon' , 'checked' , 'disabled' , 'inputId' , 'label' , 'labelStyleClass' , 'name' , 'readonly' , 'styleClass' , 'value' ] ,
106
+ defineCustomElementFn : undefined ,
107
+ inputs : [ 'anyStyle' , 'anyTabIndex' , 'binary' , 'checkboxIcon' , 'checked' , 'disabled' , 'inputId' , 'label' , 'labelStyleClass' , 'name' , 'readonly' , 'styleClass' , 'value' ] ,
112
108
methods : [ 'inputFocus' ]
113
109
} )
114
110
@Component ( {
115
111
selector : 'any-checkbox' ,
116
112
changeDetection : ChangeDetectionStrategy . OnPush ,
117
113
template : '<ng-content></ng-content>' ,
118
- inputs : [ 'anyStyle' , 'binary' , 'checkboxIcon' , 'checked' , 'disabled' , 'inputId' , 'label' , 'labelStyleClass' , 'name' , 'readonly' , 'styleClass' , 'value' ]
114
+ inputs : [ 'anyStyle' , 'anyTabIndex' , ' binary', 'checkboxIcon' , 'checked' , 'disabled' , 'inputId' , 'label' , 'labelStyleClass' , 'name' , 'readonly' , 'styleClass' , 'value' ]
119
115
} )
120
116
export class AnyCheckbox {
121
117
protected el : HTMLElement ;
@@ -164,8 +160,7 @@ export declare interface AnyDropdown extends Components.AnyDropdown {
164
160
}
165
161
166
162
@ProxyCmp ( {
167
- tagName : 'any-dropdown' ,
168
- customElement : undefined ,
163
+ defineCustomElementFn : undefined ,
169
164
inputs : [ 'anyStyle' , 'anyTabIndex' , 'autoZIndex' , 'baseZIndex' , 'clearIcon' , 'disabled' , 'dropdownIcon' , 'hideAnimation' , 'inputId' , 'name' , 'optionLabel' , 'optionValue' , 'options' , 'panelScrollHeight' , 'placeholder' , 'readonly' , 'showAnimation' , 'showClear' , 'value' , 'virtualScroll' ]
170
165
} )
171
166
@Component ( {
@@ -201,8 +196,7 @@ export declare interface AnyInputSwitch extends Components.AnyInputSwitch {
201
196
}
202
197
203
198
@ProxyCmp ( {
204
- tagName : 'any-input-switch' ,
205
- customElement : undefined ,
199
+ defineCustomElementFn : undefined ,
206
200
inputs : [ 'anyStyle' , 'anyTabIndex' , 'ariaLabeledBy' , 'checked' , 'disabled' , 'falseValue' , 'inputId' , 'name' , 'readonly' , 'styleClass' , 'trueValue' ]
207
201
} )
208
202
@Component ( {
@@ -230,8 +224,7 @@ export declare interface AnyInputText extends Components.AnyInputText {
230
224
}
231
225
232
226
@ProxyCmp ( {
233
- tagName : 'any-input-text' ,
234
- customElement : undefined ,
227
+ defineCustomElementFn : undefined ,
235
228
inputs : [ 'disabled' , 'floatLabel' , 'inputId' , 'inputWrapperClass' , 'label' , 'leftIconClass' , 'name' , 'placeholder' , 'readonly' , 'rightIconClass' , 'value' ] ,
236
229
methods : [ 'getInputRef' ]
237
230
} )
@@ -260,8 +253,7 @@ export declare interface AnyListbox extends Components.AnyListbox {
260
253
}
261
254
262
255
@ProxyCmp ( {
263
- tagName : 'any-listbox' ,
264
- customElement : undefined ,
256
+ defineCustomElementFn : undefined ,
265
257
inputs : [ 'anyStyle' , 'disabled' , 'inputId' , 'listStyle' , 'name' , 'optionLabel' , 'optionValue' , 'options' , 'readonly' , 'scrollerHeight' , 'value' , 'virtualScroll' ]
266
258
} )
267
259
@Component ( {
@@ -280,11 +272,75 @@ export class AnyListbox {
280
272
}
281
273
282
274
275
+ export declare interface AnyRadioButton extends Components . AnyRadioButton {
276
+ /**
277
+ * Callback to invoke on radio button select.
278
+ */
279
+ aOnSelect : EventEmitter < CustomEvent < any > > ;
280
+ /**
281
+ * Callback to invoke when the radio button receives focus.
282
+ */
283
+ aOnFocus : EventEmitter < CustomEvent < any > > ;
284
+ /**
285
+ * Callback to invoke when the radio button loses focus.
286
+ */
287
+ aOnBlur : EventEmitter < CustomEvent < any > > ;
288
+
289
+ }
290
+
291
+ @ProxyCmp ( {
292
+ defineCustomElementFn : undefined ,
293
+ inputs : [ 'anyStyle' , 'anyTabIndex' , 'disabled' , 'inputId' , 'label' , 'labelStyleClass' , 'name' , 'styleClass' , 'value' ] ,
294
+ methods : [ 'setFocus' ]
295
+ } )
296
+ @Component ( {
297
+ selector : 'any-radio-button' ,
298
+ changeDetection : ChangeDetectionStrategy . OnPush ,
299
+ template : '<ng-content></ng-content>' ,
300
+ inputs : [ 'anyStyle' , 'anyTabIndex' , 'disabled' , 'inputId' , 'label' , 'labelStyleClass' , 'name' , 'styleClass' , 'value' ]
301
+ } )
302
+ export class AnyRadioButton {
303
+ protected el : HTMLElement ;
304
+ constructor ( c : ChangeDetectorRef , r : ElementRef , protected z : NgZone ) {
305
+ c . detach ( ) ;
306
+ this . el = r . nativeElement ;
307
+ proxyOutputs ( this , this . el , [ 'aOnSelect' , 'aOnFocus' , 'aOnBlur' ] ) ;
308
+ }
309
+ }
310
+
311
+ import type { RadioGroupChangeEventDetail as IRadioGroupRadioGroupChangeEventDetail } from '@anywhere-ui/core' ;
312
+ export declare interface AnyRadioGroup extends Components . AnyRadioGroup {
313
+ /**
314
+ * Emitted when the value has changed.
315
+ */
316
+ valueChange : EventEmitter < CustomEvent < IRadioGroupRadioGroupChangeEventDetail > > ;
317
+
318
+ }
319
+
320
+ @ProxyCmp ( {
321
+ defineCustomElementFn : undefined ,
322
+ inputs : [ 'allowEmptySelection' , 'name' , 'value' ]
323
+ } )
324
+ @Component ( {
325
+ selector : 'any-radio-group' ,
326
+ changeDetection : ChangeDetectionStrategy . OnPush ,
327
+ template : '<ng-content></ng-content>' ,
328
+ inputs : [ 'allowEmptySelection' , 'name' , 'value' ]
329
+ } )
330
+ export class AnyRadioGroup {
331
+ protected el : HTMLElement ;
332
+ constructor ( c : ChangeDetectorRef , r : ElementRef , protected z : NgZone ) {
333
+ c . detach ( ) ;
334
+ this . el = r . nativeElement ;
335
+ proxyOutputs ( this , this . el , [ 'valueChange' ] ) ;
336
+ }
337
+ }
338
+
339
+
283
340
export declare interface AnyRippleEffect extends Components . AnyRippleEffect { }
284
341
285
342
@ProxyCmp ( {
286
- tagName : 'any-ripple-effect' ,
287
- customElement : undefined ,
343
+ defineCustomElementFn : undefined ,
288
344
inputs : [ 'type' ]
289
345
} )
290
346
@Component ( {
@@ -305,8 +361,7 @@ export class AnyRippleEffect {
305
361
export declare interface AnyTabPanel extends Components . AnyTabPanel { }
306
362
307
363
@ProxyCmp ( {
308
- tagName : 'any-tab-panel' ,
309
- customElement : undefined ,
364
+ defineCustomElementFn : undefined ,
310
365
inputs : [ 'disabled' , 'header' , 'selected' ]
311
366
} )
312
367
@Component ( {
@@ -327,8 +382,7 @@ export class AnyTabPanel {
327
382
export declare interface AnyTabView extends Components . AnyTabView { }
328
383
329
384
@ProxyCmp ( {
330
- tagName : 'any-tab-view' ,
331
- customElement : undefined ,
385
+ defineCustomElementFn : undefined ,
332
386
inputs : [ 'activeIndex' , 'anyStyle' , 'styleClass' ]
333
387
} )
334
388
@Component ( {
@@ -371,8 +425,7 @@ export declare interface AnyVirtualScroller extends Components.AnyVirtualScrolle
371
425
}
372
426
373
427
@ProxyCmp ( {
374
- tagName : 'any-virtual-scroller' ,
375
- customElement : undefined ,
428
+ defineCustomElementFn : undefined ,
376
429
inputs : [ 'anyStyle' , 'contentElemClass' , 'contentElemTag' , 'delay' , 'itemElemClass' , 'itemSize' , 'itemTag' , 'items' , 'lazy' , 'noDataText' , 'rowsPerPage' , 'scrollElemClass' , 'scrollerHeight' , 'styleClass' ]
377
430
} )
378
431
@Component ( {
0 commit comments