@angular/aria 21.0.1 → 21.0.3
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/_combobox-chunk.mjs +425 -0
- package/fesm2022/_combobox-chunk.mjs.map +1 -0
- package/fesm2022/_combobox-listbox-chunk.mjs +522 -0
- package/fesm2022/_combobox-listbox-chunk.mjs.map +1 -0
- package/fesm2022/_combobox-popup-chunk.mjs +46 -0
- package/fesm2022/_combobox-popup-chunk.mjs.map +1 -0
- package/fesm2022/_list-navigation-chunk.mjs +116 -0
- package/fesm2022/_list-navigation-chunk.mjs.map +1 -0
- package/fesm2022/_pointer-event-manager-chunk.mjs +134 -0
- package/fesm2022/_pointer-event-manager-chunk.mjs.map +1 -0
- package/fesm2022/_widget-chunk.mjs +4 -246
- package/fesm2022/_widget-chunk.mjs.map +1 -1
- package/fesm2022/accordion.mjs +17 -4
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -1
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +96 -120
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +225 -201
- package/fesm2022/grid.mjs.map +1 -1
- package/fesm2022/listbox.mjs +173 -161
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +256 -238
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/private.mjs +9 -932
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/tabs.mjs +182 -168
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +15 -3
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +4 -2
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/types/_combobox-chunk.d.ts +98 -0
- package/types/_combobox-chunk.d2.ts +193 -0
- package/types/_grid-chunk.d.ts +3 -210
- package/types/_list-chunk.d.ts +212 -0
- package/types/_list-navigation-chunk.d.ts +212 -0
- package/types/_listbox-chunk.d.ts +106 -0
- package/types/accordion.d.ts +52 -49
- package/types/combobox.d.ts +25 -111
- package/types/grid.d.ts +37 -32
- package/types/listbox.d.ts +8 -5
- package/types/menu.d.ts +113 -113
- package/types/private.d.ts +12 -498
- package/types/tabs.d.ts +89 -84
- package/types/toolbar.d.ts +69 -66
- package/types/tree.d.ts +106 -103
- package/_adev_assets/aria-accordion.json +0 -743
- package/_adev_assets/aria-combobox.json +0 -607
- package/_adev_assets/aria-grid.json +0 -901
- package/_adev_assets/aria-listbox.json +0 -544
- package/_adev_assets/aria-menu.json +0 -1049
- package/_adev_assets/aria-tabs.json +0 -880
- package/_adev_assets/aria-toolbar.json +0 -545
- package/_adev_assets/aria-tree.json +0 -861
package/fesm2022/grid.mjs
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, ElementRef, contentChildren, computed, input, booleanAttribute, afterRenderEffect, Directive,
|
|
2
|
+
import { InjectionToken, inject, ElementRef, contentChildren, computed, input, booleanAttribute, afterRenderEffect, Directive, output, model } from '@angular/core';
|
|
4
3
|
import { Directionality } from '@angular/cdk/bidi';
|
|
5
|
-
import { GridPattern,
|
|
4
|
+
import { GridPattern, GridCellWidgetPattern, GridCellPattern, GridRowPattern } from './_widget-chunk.mjs';
|
|
5
|
+
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
6
|
+
import './_pointer-event-manager-chunk.mjs';
|
|
7
|
+
import './_list-navigation-chunk.mjs';
|
|
8
|
+
|
|
9
|
+
const GRID_CELL = new InjectionToken('GRID_CELL');
|
|
10
|
+
const GRID_ROW = new InjectionToken('GRID_ROW');
|
|
6
11
|
|
|
7
12
|
class Grid {
|
|
8
13
|
_elementRef = inject(ElementRef);
|
|
9
14
|
element = this._elementRef.nativeElement;
|
|
10
|
-
_rows = contentChildren(
|
|
15
|
+
_rows = contentChildren(GRID_ROW, ...(ngDevMode ? [{
|
|
11
16
|
debugName: "_rows",
|
|
12
17
|
descendants: true
|
|
13
18
|
}] : [{
|
|
@@ -185,7 +190,7 @@ class Grid {
|
|
|
185
190
|
},
|
|
186
191
|
queries: [{
|
|
187
192
|
propertyName: "_rows",
|
|
188
|
-
predicate:
|
|
193
|
+
predicate: GRID_ROW,
|
|
189
194
|
descendants: true,
|
|
190
195
|
isSignal: true
|
|
191
196
|
}],
|
|
@@ -221,7 +226,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
221
226
|
propDecorators: {
|
|
222
227
|
_rows: [{
|
|
223
228
|
type: i0.ContentChildren,
|
|
224
|
-
args: [i0.forwardRef(() =>
|
|
229
|
+
args: [i0.forwardRef(() => GRID_ROW), {
|
|
225
230
|
...{
|
|
226
231
|
descendants: true
|
|
227
232
|
},
|
|
@@ -302,68 +307,134 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
302
307
|
}]
|
|
303
308
|
}
|
|
304
309
|
});
|
|
305
|
-
|
|
310
|
+
|
|
311
|
+
class GridCellWidget {
|
|
306
312
|
_elementRef = inject(ElementRef);
|
|
307
313
|
element = this._elementRef.nativeElement;
|
|
308
|
-
|
|
309
|
-
debugName: "
|
|
310
|
-
|
|
314
|
+
active = computed(() => this._pattern.active(), ...(ngDevMode ? [{
|
|
315
|
+
debugName: "active"
|
|
316
|
+
}] : []));
|
|
317
|
+
_cell = inject(GRID_CELL);
|
|
318
|
+
id = input(inject(_IdGenerator).getId('ng-grid-cell-widget-', true), ...(ngDevMode ? [{
|
|
319
|
+
debugName: "id"
|
|
320
|
+
}] : []));
|
|
321
|
+
widgetType = input('simple', ...(ngDevMode ? [{
|
|
322
|
+
debugName: "widgetType"
|
|
323
|
+
}] : []));
|
|
324
|
+
disabled = input(false, ...(ngDevMode ? [{
|
|
325
|
+
debugName: "disabled",
|
|
326
|
+
transform: booleanAttribute
|
|
311
327
|
}] : [{
|
|
312
|
-
|
|
328
|
+
transform: booleanAttribute
|
|
313
329
|
}]));
|
|
314
|
-
|
|
315
|
-
debugName: "
|
|
330
|
+
focusTarget = input(...(ngDevMode ? [undefined, {
|
|
331
|
+
debugName: "focusTarget"
|
|
316
332
|
}] : []));
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
333
|
+
onActivate = output();
|
|
334
|
+
onDeactivate = output();
|
|
335
|
+
tabindex = input(...(ngDevMode ? [undefined, {
|
|
336
|
+
debugName: "tabindex"
|
|
320
337
|
}] : []));
|
|
321
|
-
|
|
322
|
-
debugName: "
|
|
338
|
+
_tabIndex = computed(() => this.tabindex() ?? (this.focusTarget() ? -1 : this._pattern.tabIndex()), ...(ngDevMode ? [{
|
|
339
|
+
debugName: "_tabIndex"
|
|
323
340
|
}] : []));
|
|
324
|
-
_pattern = new
|
|
341
|
+
_pattern = new GridCellWidgetPattern({
|
|
325
342
|
...this,
|
|
326
|
-
|
|
327
|
-
|
|
343
|
+
element: () => this.element,
|
|
344
|
+
cell: () => this._cell._pattern,
|
|
345
|
+
focusTarget: computed(() => {
|
|
346
|
+
if (this.focusTarget() instanceof ElementRef) {
|
|
347
|
+
return this.focusTarget().nativeElement;
|
|
348
|
+
}
|
|
349
|
+
return this.focusTarget();
|
|
350
|
+
})
|
|
328
351
|
});
|
|
352
|
+
get isActivated() {
|
|
353
|
+
return this._pattern.isActivated.asReadonly();
|
|
354
|
+
}
|
|
355
|
+
constructor() {
|
|
356
|
+
afterRenderEffect(() => {
|
|
357
|
+
const activateEvent = this._pattern.lastActivateEvent();
|
|
358
|
+
if (activateEvent) {
|
|
359
|
+
this.onActivate.emit(activateEvent);
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
afterRenderEffect(() => {
|
|
363
|
+
const deactivateEvent = this._pattern.lastDeactivateEvent();
|
|
364
|
+
if (deactivateEvent) {
|
|
365
|
+
this.onDeactivate.emit(deactivateEvent);
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
activate() {
|
|
370
|
+
this._pattern.activate();
|
|
371
|
+
}
|
|
372
|
+
deactivate() {
|
|
373
|
+
this._pattern.deactivate();
|
|
374
|
+
}
|
|
329
375
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
330
376
|
minVersion: "12.0.0",
|
|
331
377
|
version: "21.0.0",
|
|
332
378
|
ngImport: i0,
|
|
333
|
-
type:
|
|
379
|
+
type: GridCellWidget,
|
|
334
380
|
deps: [],
|
|
335
381
|
target: i0.ɵɵFactoryTarget.Directive
|
|
336
382
|
});
|
|
337
383
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
338
|
-
minVersion: "17.
|
|
384
|
+
minVersion: "17.1.0",
|
|
339
385
|
version: "21.0.0",
|
|
340
|
-
type:
|
|
386
|
+
type: GridCellWidget,
|
|
341
387
|
isStandalone: true,
|
|
342
|
-
selector: "[
|
|
388
|
+
selector: "[ngGridCellWidget]",
|
|
343
389
|
inputs: {
|
|
344
|
-
|
|
345
|
-
classPropertyName: "
|
|
346
|
-
publicName: "
|
|
390
|
+
id: {
|
|
391
|
+
classPropertyName: "id",
|
|
392
|
+
publicName: "id",
|
|
393
|
+
isSignal: true,
|
|
394
|
+
isRequired: false,
|
|
395
|
+
transformFunction: null
|
|
396
|
+
},
|
|
397
|
+
widgetType: {
|
|
398
|
+
classPropertyName: "widgetType",
|
|
399
|
+
publicName: "widgetType",
|
|
400
|
+
isSignal: true,
|
|
401
|
+
isRequired: false,
|
|
402
|
+
transformFunction: null
|
|
403
|
+
},
|
|
404
|
+
disabled: {
|
|
405
|
+
classPropertyName: "disabled",
|
|
406
|
+
publicName: "disabled",
|
|
407
|
+
isSignal: true,
|
|
408
|
+
isRequired: false,
|
|
409
|
+
transformFunction: null
|
|
410
|
+
},
|
|
411
|
+
focusTarget: {
|
|
412
|
+
classPropertyName: "focusTarget",
|
|
413
|
+
publicName: "focusTarget",
|
|
414
|
+
isSignal: true,
|
|
415
|
+
isRequired: false,
|
|
416
|
+
transformFunction: null
|
|
417
|
+
},
|
|
418
|
+
tabindex: {
|
|
419
|
+
classPropertyName: "tabindex",
|
|
420
|
+
publicName: "tabindex",
|
|
347
421
|
isSignal: true,
|
|
348
422
|
isRequired: false,
|
|
349
423
|
transformFunction: null
|
|
350
424
|
}
|
|
351
425
|
},
|
|
426
|
+
outputs: {
|
|
427
|
+
onActivate: "onActivate",
|
|
428
|
+
onDeactivate: "onDeactivate"
|
|
429
|
+
},
|
|
352
430
|
host: {
|
|
353
|
-
attributes: {
|
|
354
|
-
"role": "row"
|
|
355
|
-
},
|
|
356
431
|
properties: {
|
|
357
|
-
"attr.
|
|
432
|
+
"attr.data-active": "active()",
|
|
433
|
+
"attr.data-active-control": "isActivated() ? \"widget\" : \"cell\"",
|
|
434
|
+
"tabindex": "_tabIndex()"
|
|
358
435
|
}
|
|
359
436
|
},
|
|
360
|
-
|
|
361
|
-
propertyName: "_cells",
|
|
362
|
-
predicate: GridCell,
|
|
363
|
-
descendants: true,
|
|
364
|
-
isSignal: true
|
|
365
|
-
}],
|
|
366
|
-
exportAs: ["ngGridRow"],
|
|
437
|
+
exportAs: ["ngGridCellWidget"],
|
|
367
438
|
ngImport: i0
|
|
368
439
|
});
|
|
369
440
|
}
|
|
@@ -371,38 +442,72 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
371
442
|
minVersion: "12.0.0",
|
|
372
443
|
version: "21.0.0",
|
|
373
444
|
ngImport: i0,
|
|
374
|
-
type:
|
|
445
|
+
type: GridCellWidget,
|
|
375
446
|
decorators: [{
|
|
376
447
|
type: Directive,
|
|
377
448
|
args: [{
|
|
378
|
-
selector: '[
|
|
379
|
-
exportAs: '
|
|
449
|
+
selector: '[ngGridCellWidget]',
|
|
450
|
+
exportAs: 'ngGridCellWidget',
|
|
380
451
|
host: {
|
|
381
|
-
'
|
|
382
|
-
'[attr.
|
|
452
|
+
'[attr.data-active]': 'active()',
|
|
453
|
+
'[attr.data-active-control]': 'isActivated() ? "widget" : "cell"',
|
|
454
|
+
'[tabindex]': '_tabIndex()'
|
|
383
455
|
}
|
|
384
456
|
}]
|
|
385
457
|
}],
|
|
458
|
+
ctorParameters: () => [],
|
|
386
459
|
propDecorators: {
|
|
387
|
-
|
|
388
|
-
type: i0.
|
|
389
|
-
args: [
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
isSignal: true
|
|
460
|
+
id: [{
|
|
461
|
+
type: i0.Input,
|
|
462
|
+
args: [{
|
|
463
|
+
isSignal: true,
|
|
464
|
+
alias: "id",
|
|
465
|
+
required: false
|
|
394
466
|
}]
|
|
395
467
|
}],
|
|
396
|
-
|
|
468
|
+
widgetType: [{
|
|
397
469
|
type: i0.Input,
|
|
398
470
|
args: [{
|
|
399
471
|
isSignal: true,
|
|
400
|
-
alias: "
|
|
472
|
+
alias: "widgetType",
|
|
473
|
+
required: false
|
|
474
|
+
}]
|
|
475
|
+
}],
|
|
476
|
+
disabled: [{
|
|
477
|
+
type: i0.Input,
|
|
478
|
+
args: [{
|
|
479
|
+
isSignal: true,
|
|
480
|
+
alias: "disabled",
|
|
481
|
+
required: false
|
|
482
|
+
}]
|
|
483
|
+
}],
|
|
484
|
+
focusTarget: [{
|
|
485
|
+
type: i0.Input,
|
|
486
|
+
args: [{
|
|
487
|
+
isSignal: true,
|
|
488
|
+
alias: "focusTarget",
|
|
489
|
+
required: false
|
|
490
|
+
}]
|
|
491
|
+
}],
|
|
492
|
+
onActivate: [{
|
|
493
|
+
type: i0.Output,
|
|
494
|
+
args: ["onActivate"]
|
|
495
|
+
}],
|
|
496
|
+
onDeactivate: [{
|
|
497
|
+
type: i0.Output,
|
|
498
|
+
args: ["onDeactivate"]
|
|
499
|
+
}],
|
|
500
|
+
tabindex: [{
|
|
501
|
+
type: i0.Input,
|
|
502
|
+
args: [{
|
|
503
|
+
isSignal: true,
|
|
504
|
+
alias: "tabindex",
|
|
401
505
|
required: false
|
|
402
506
|
}]
|
|
403
507
|
}]
|
|
404
508
|
}
|
|
405
509
|
});
|
|
510
|
+
|
|
406
511
|
class GridCell {
|
|
407
512
|
_elementRef = inject(ElementRef);
|
|
408
513
|
element = this._elementRef.nativeElement;
|
|
@@ -418,7 +523,7 @@ class GridCell {
|
|
|
418
523
|
_widgetPatterns = computed(() => this._widgets().map(w => w._pattern), ...(ngDevMode ? [{
|
|
419
524
|
debugName: "_widgetPatterns"
|
|
420
525
|
}] : []));
|
|
421
|
-
_row = inject(
|
|
526
|
+
_row = inject(GRID_ROW);
|
|
422
527
|
textDirection = inject(Directionality).valueSignal;
|
|
423
528
|
id = input(inject(_IdGenerator).getId('ng-grid-cell-', true), ...(ngDevMode ? [{
|
|
424
529
|
debugName: "id"
|
|
@@ -605,6 +710,10 @@ class GridCell {
|
|
|
605
710
|
"tabindex": "_tabIndex()"
|
|
606
711
|
}
|
|
607
712
|
},
|
|
713
|
+
providers: [{
|
|
714
|
+
provide: GRID_CELL,
|
|
715
|
+
useExisting: GridCell
|
|
716
|
+
}],
|
|
608
717
|
queries: [{
|
|
609
718
|
propertyName: "_widgets",
|
|
610
719
|
predicate: GridCellWidget,
|
|
@@ -639,7 +748,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
639
748
|
'[attr.aria-colindex]': '_pattern.ariaColIndex()',
|
|
640
749
|
'[attr.aria-selected]': '_pattern.ariaSelected()',
|
|
641
750
|
'[tabindex]': '_tabIndex()'
|
|
642
|
-
}
|
|
751
|
+
},
|
|
752
|
+
providers: [{
|
|
753
|
+
provide: GRID_CELL,
|
|
754
|
+
useExisting: GridCell
|
|
755
|
+
}]
|
|
643
756
|
}]
|
|
644
757
|
}],
|
|
645
758
|
ctorParameters: () => [],
|
|
@@ -754,133 +867,73 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
754
867
|
}]
|
|
755
868
|
}
|
|
756
869
|
});
|
|
757
|
-
|
|
870
|
+
|
|
871
|
+
class GridRow {
|
|
758
872
|
_elementRef = inject(ElementRef);
|
|
759
873
|
element = this._elementRef.nativeElement;
|
|
760
|
-
|
|
761
|
-
debugName: "
|
|
762
|
-
|
|
763
|
-
_cell = inject(GridCell);
|
|
764
|
-
id = input(inject(_IdGenerator).getId('ng-grid-cell-widget-', true), ...(ngDevMode ? [{
|
|
765
|
-
debugName: "id"
|
|
766
|
-
}] : []));
|
|
767
|
-
widgetType = input('simple', ...(ngDevMode ? [{
|
|
768
|
-
debugName: "widgetType"
|
|
769
|
-
}] : []));
|
|
770
|
-
disabled = input(false, ...(ngDevMode ? [{
|
|
771
|
-
debugName: "disabled",
|
|
772
|
-
transform: booleanAttribute
|
|
874
|
+
_cells = contentChildren(GRID_CELL, ...(ngDevMode ? [{
|
|
875
|
+
debugName: "_cells",
|
|
876
|
+
descendants: true
|
|
773
877
|
}] : [{
|
|
774
|
-
|
|
878
|
+
descendants: true
|
|
775
879
|
}]));
|
|
776
|
-
|
|
777
|
-
debugName: "
|
|
880
|
+
_cellPatterns = computed(() => this._cells().map(c => c._pattern), ...(ngDevMode ? [{
|
|
881
|
+
debugName: "_cellPatterns"
|
|
778
882
|
}] : []));
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
debugName: "tabindex"
|
|
883
|
+
_grid = inject(Grid);
|
|
884
|
+
_gridPattern = computed(() => this._grid._pattern, ...(ngDevMode ? [{
|
|
885
|
+
debugName: "_gridPattern"
|
|
783
886
|
}] : []));
|
|
784
|
-
|
|
785
|
-
debugName: "
|
|
887
|
+
rowIndex = input(...(ngDevMode ? [undefined, {
|
|
888
|
+
debugName: "rowIndex"
|
|
786
889
|
}] : []));
|
|
787
|
-
_pattern = new
|
|
890
|
+
_pattern = new GridRowPattern({
|
|
788
891
|
...this,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
focusTarget: computed(() => {
|
|
792
|
-
if (this.focusTarget() instanceof ElementRef) {
|
|
793
|
-
return this.focusTarget().nativeElement;
|
|
794
|
-
}
|
|
795
|
-
return this.focusTarget();
|
|
796
|
-
})
|
|
892
|
+
cells: this._cellPatterns,
|
|
893
|
+
grid: this._gridPattern
|
|
797
894
|
});
|
|
798
|
-
get isActivated() {
|
|
799
|
-
return this._pattern.isActivated.asReadonly();
|
|
800
|
-
}
|
|
801
|
-
constructor() {
|
|
802
|
-
afterRenderEffect(() => {
|
|
803
|
-
const activateEvent = this._pattern.lastActivateEvent();
|
|
804
|
-
if (activateEvent) {
|
|
805
|
-
this.onActivate.emit(activateEvent);
|
|
806
|
-
}
|
|
807
|
-
});
|
|
808
|
-
afterRenderEffect(() => {
|
|
809
|
-
const deactivateEvent = this._pattern.lastDeactivateEvent();
|
|
810
|
-
if (deactivateEvent) {
|
|
811
|
-
this.onDeactivate.emit(deactivateEvent);
|
|
812
|
-
}
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
activate() {
|
|
816
|
-
this._pattern.activate();
|
|
817
|
-
}
|
|
818
|
-
deactivate() {
|
|
819
|
-
this._pattern.deactivate();
|
|
820
|
-
}
|
|
821
895
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
822
896
|
minVersion: "12.0.0",
|
|
823
897
|
version: "21.0.0",
|
|
824
898
|
ngImport: i0,
|
|
825
|
-
type:
|
|
899
|
+
type: GridRow,
|
|
826
900
|
deps: [],
|
|
827
901
|
target: i0.ɵɵFactoryTarget.Directive
|
|
828
902
|
});
|
|
829
903
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
830
|
-
minVersion: "17.
|
|
904
|
+
minVersion: "17.2.0",
|
|
831
905
|
version: "21.0.0",
|
|
832
|
-
type:
|
|
906
|
+
type: GridRow,
|
|
833
907
|
isStandalone: true,
|
|
834
|
-
selector: "[
|
|
908
|
+
selector: "[ngGridRow]",
|
|
835
909
|
inputs: {
|
|
836
|
-
|
|
837
|
-
classPropertyName: "
|
|
838
|
-
publicName: "
|
|
839
|
-
isSignal: true,
|
|
840
|
-
isRequired: false,
|
|
841
|
-
transformFunction: null
|
|
842
|
-
},
|
|
843
|
-
widgetType: {
|
|
844
|
-
classPropertyName: "widgetType",
|
|
845
|
-
publicName: "widgetType",
|
|
846
|
-
isSignal: true,
|
|
847
|
-
isRequired: false,
|
|
848
|
-
transformFunction: null
|
|
849
|
-
},
|
|
850
|
-
disabled: {
|
|
851
|
-
classPropertyName: "disabled",
|
|
852
|
-
publicName: "disabled",
|
|
853
|
-
isSignal: true,
|
|
854
|
-
isRequired: false,
|
|
855
|
-
transformFunction: null
|
|
856
|
-
},
|
|
857
|
-
focusTarget: {
|
|
858
|
-
classPropertyName: "focusTarget",
|
|
859
|
-
publicName: "focusTarget",
|
|
860
|
-
isSignal: true,
|
|
861
|
-
isRequired: false,
|
|
862
|
-
transformFunction: null
|
|
863
|
-
},
|
|
864
|
-
tabindex: {
|
|
865
|
-
classPropertyName: "tabindex",
|
|
866
|
-
publicName: "tabindex",
|
|
910
|
+
rowIndex: {
|
|
911
|
+
classPropertyName: "rowIndex",
|
|
912
|
+
publicName: "rowIndex",
|
|
867
913
|
isSignal: true,
|
|
868
914
|
isRequired: false,
|
|
869
915
|
transformFunction: null
|
|
870
916
|
}
|
|
871
917
|
},
|
|
872
|
-
outputs: {
|
|
873
|
-
onActivate: "onActivate",
|
|
874
|
-
onDeactivate: "onDeactivate"
|
|
875
|
-
},
|
|
876
918
|
host: {
|
|
919
|
+
attributes: {
|
|
920
|
+
"role": "row"
|
|
921
|
+
},
|
|
877
922
|
properties: {
|
|
878
|
-
"attr.
|
|
879
|
-
"attr.data-active-control": "isActivated() ? \"widget\" : \"cell\"",
|
|
880
|
-
"tabindex": "_tabIndex()"
|
|
923
|
+
"attr.aria-rowindex": "_pattern.rowIndex()"
|
|
881
924
|
}
|
|
882
925
|
},
|
|
883
|
-
|
|
926
|
+
providers: [{
|
|
927
|
+
provide: GRID_ROW,
|
|
928
|
+
useExisting: GridRow
|
|
929
|
+
}],
|
|
930
|
+
queries: [{
|
|
931
|
+
propertyName: "_cells",
|
|
932
|
+
predicate: GRID_CELL,
|
|
933
|
+
descendants: true,
|
|
934
|
+
isSignal: true
|
|
935
|
+
}],
|
|
936
|
+
exportAs: ["ngGridRow"],
|
|
884
937
|
ngImport: i0
|
|
885
938
|
});
|
|
886
939
|
}
|
|
@@ -888,66 +941,37 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
888
941
|
minVersion: "12.0.0",
|
|
889
942
|
version: "21.0.0",
|
|
890
943
|
ngImport: i0,
|
|
891
|
-
type:
|
|
944
|
+
type: GridRow,
|
|
892
945
|
decorators: [{
|
|
893
946
|
type: Directive,
|
|
894
947
|
args: [{
|
|
895
|
-
selector: '[
|
|
896
|
-
exportAs: '
|
|
948
|
+
selector: '[ngGridRow]',
|
|
949
|
+
exportAs: 'ngGridRow',
|
|
897
950
|
host: {
|
|
898
|
-
'
|
|
899
|
-
'[attr.
|
|
900
|
-
|
|
901
|
-
|
|
951
|
+
'role': 'row',
|
|
952
|
+
'[attr.aria-rowindex]': '_pattern.rowIndex()'
|
|
953
|
+
},
|
|
954
|
+
providers: [{
|
|
955
|
+
provide: GRID_ROW,
|
|
956
|
+
useExisting: GridRow
|
|
957
|
+
}]
|
|
902
958
|
}]
|
|
903
959
|
}],
|
|
904
|
-
ctorParameters: () => [],
|
|
905
960
|
propDecorators: {
|
|
906
|
-
|
|
907
|
-
type: i0.
|
|
908
|
-
args: [{
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
}],
|
|
914
|
-
widgetType: [{
|
|
915
|
-
type: i0.Input,
|
|
916
|
-
args: [{
|
|
917
|
-
isSignal: true,
|
|
918
|
-
alias: "widgetType",
|
|
919
|
-
required: false
|
|
920
|
-
}]
|
|
921
|
-
}],
|
|
922
|
-
disabled: [{
|
|
923
|
-
type: i0.Input,
|
|
924
|
-
args: [{
|
|
925
|
-
isSignal: true,
|
|
926
|
-
alias: "disabled",
|
|
927
|
-
required: false
|
|
928
|
-
}]
|
|
929
|
-
}],
|
|
930
|
-
focusTarget: [{
|
|
931
|
-
type: i0.Input,
|
|
932
|
-
args: [{
|
|
933
|
-
isSignal: true,
|
|
934
|
-
alias: "focusTarget",
|
|
935
|
-
required: false
|
|
961
|
+
_cells: [{
|
|
962
|
+
type: i0.ContentChildren,
|
|
963
|
+
args: [i0.forwardRef(() => GRID_CELL), {
|
|
964
|
+
...{
|
|
965
|
+
descendants: true
|
|
966
|
+
},
|
|
967
|
+
isSignal: true
|
|
936
968
|
}]
|
|
937
969
|
}],
|
|
938
|
-
|
|
939
|
-
type: i0.Output,
|
|
940
|
-
args: ["onActivate"]
|
|
941
|
-
}],
|
|
942
|
-
onDeactivate: [{
|
|
943
|
-
type: i0.Output,
|
|
944
|
-
args: ["onDeactivate"]
|
|
945
|
-
}],
|
|
946
|
-
tabindex: [{
|
|
970
|
+
rowIndex: [{
|
|
947
971
|
type: i0.Input,
|
|
948
972
|
args: [{
|
|
949
973
|
isSignal: true,
|
|
950
|
-
alias: "
|
|
974
|
+
alias: "rowIndex",
|
|
951
975
|
required: false
|
|
952
976
|
}]
|
|
953
977
|
}]
|