@angular/aria 21.0.0-next.9 → 21.0.0-rc.1
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/_adev_assets/aria-accordion.json +373 -0
- package/_adev_assets/aria-combobox.json +383 -0
- package/_adev_assets/aria-grid.json +647 -0
- package/_adev_assets/aria-listbox.json +511 -0
- package/_adev_assets/aria-menu.json +852 -0
- package/_adev_assets/aria-tabs.json +987 -0
- package/_adev_assets/aria-toolbar.json +696 -0
- package/_adev_assets/aria-tree.json +1071 -0
- package/fesm2022/_widget-chunk.mjs +949 -0
- package/fesm2022/_widget-chunk.mjs.map +1 -0
- package/fesm2022/accordion.mjs +372 -174
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/aria.mjs +1 -2
- package/fesm2022/aria.mjs.map +1 -1
- package/fesm2022/combobox.mjs +308 -116
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/grid.mjs +566 -0
- package/fesm2022/grid.mjs.map +1 -0
- package/fesm2022/listbox.mjs +384 -184
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +591 -0
- package/fesm2022/menu.mjs.map +1 -0
- package/fesm2022/private.mjs +2338 -0
- package/fesm2022/private.mjs.map +1 -0
- package/fesm2022/tabs.mjs +484 -276
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +366 -200
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +515 -267
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +12 -12
- package/types/_grid-chunk.d.ts +608 -0
- package/types/accordion.d.ts +8 -8
- package/types/combobox.d.ts +20 -7
- package/types/grid.d.ts +120 -0
- package/types/listbox.d.ts +9 -7
- package/types/menu.d.ts +170 -0
- package/types/{ui-patterns.d.ts → private.d.ts} +555 -433
- package/types/tabs.d.ts +8 -8
- package/types/toolbar.d.ts +31 -28
- package/types/tree.d.ts +11 -9
- package/fesm2022/deferred-content.mjs +0 -60
- package/fesm2022/deferred-content.mjs.map +0 -1
- package/fesm2022/radio-group.mjs +0 -197
- package/fesm2022/radio-group.mjs.map +0 -1
- package/fesm2022/ui-patterns.mjs +0 -2504
- package/fesm2022/ui-patterns.mjs.map +0 -1
- package/types/deferred-content.d.ts +0 -38
- package/types/radio-group.d.ts +0 -82
package/fesm2022/toolbar.mjs
CHANGED
|
@@ -1,218 +1,384 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, signal, computed, input, booleanAttribute, afterRenderEffect, Directive } from '@angular/core';
|
|
3
|
-
import { ToolbarPattern, ToolbarWidgetPattern, ToolbarWidgetGroupPattern } from '@angular/aria/
|
|
2
|
+
import { inject, ElementRef, signal, computed, input, booleanAttribute, afterRenderEffect, Directive, contentChildren } from '@angular/core';
|
|
3
|
+
import { ToolbarPattern, ToolbarWidgetPattern, ToolbarWidgetGroupPattern } from '@angular/aria/private';
|
|
4
4
|
import { Directionality } from '@angular/cdk/bidi';
|
|
5
5
|
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* Sort directives by their document order.
|
|
9
|
-
*/
|
|
10
7
|
function sortDirectives(a, b) {
|
|
11
|
-
|
|
12
|
-
? 1
|
|
13
|
-
: -1;
|
|
8
|
+
return (a.element().compareDocumentPosition(b.element()) & Node.DOCUMENT_POSITION_PRECEDING) > 0 ? 1 : -1;
|
|
14
9
|
}
|
|
15
|
-
/**
|
|
16
|
-
* A toolbar widget container.
|
|
17
|
-
*
|
|
18
|
-
* Widgets such as radio groups or buttons are nested within a toolbar to allow for a single
|
|
19
|
-
* place of reference for focus and navigation. The Toolbar is meant to be used in conjunction
|
|
20
|
-
* with ToolbarWidget and RadioGroup as follows:
|
|
21
|
-
*
|
|
22
|
-
* ```html
|
|
23
|
-
* <div ngToolbar>
|
|
24
|
-
* <button ngToolbarWidget>Button</button>
|
|
25
|
-
* <div ngRadioGroup>
|
|
26
|
-
* <label ngRadioButton value="1">Option 1</label>
|
|
27
|
-
* <label ngRadioButton value="2">Option 2</label>
|
|
28
|
-
* <label ngRadioButton value="3">Option 3</label>
|
|
29
|
-
* </div>
|
|
30
|
-
* </div>
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
10
|
class Toolbar {
|
|
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
|
-
this.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const widgets = this._widgets();
|
|
80
|
-
if (!widgets.has(widget)) {
|
|
81
|
-
widgets.add(widget);
|
|
82
|
-
this._widgets.set(new Set(widgets));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
unregister(widget) {
|
|
86
|
-
const widgets = this._widgets();
|
|
87
|
-
if (widgets.delete(widget)) {
|
|
88
|
-
this._widgets.set(new Set(widgets));
|
|
11
|
+
_elementRef = inject(ElementRef);
|
|
12
|
+
_widgets = signal(new Set(), ...(ngDevMode ? [{
|
|
13
|
+
debugName: "_widgets"
|
|
14
|
+
}] : []));
|
|
15
|
+
textDirection = inject(Directionality).valueSignal;
|
|
16
|
+
items = computed(() => [...this._widgets()].sort(sortDirectives).map(widget => widget._pattern), ...(ngDevMode ? [{
|
|
17
|
+
debugName: "items"
|
|
18
|
+
}] : []));
|
|
19
|
+
orientation = input('horizontal', ...(ngDevMode ? [{
|
|
20
|
+
debugName: "orientation"
|
|
21
|
+
}] : []));
|
|
22
|
+
softDisabled = input(true, ...(ngDevMode ? [{
|
|
23
|
+
debugName: "softDisabled",
|
|
24
|
+
transform: booleanAttribute
|
|
25
|
+
}] : [{
|
|
26
|
+
transform: booleanAttribute
|
|
27
|
+
}]));
|
|
28
|
+
disabled = input(false, ...(ngDevMode ? [{
|
|
29
|
+
debugName: "disabled",
|
|
30
|
+
transform: booleanAttribute
|
|
31
|
+
}] : [{
|
|
32
|
+
transform: booleanAttribute
|
|
33
|
+
}]));
|
|
34
|
+
wrap = input(true, ...(ngDevMode ? [{
|
|
35
|
+
debugName: "wrap",
|
|
36
|
+
transform: booleanAttribute
|
|
37
|
+
}] : [{
|
|
38
|
+
transform: booleanAttribute
|
|
39
|
+
}]));
|
|
40
|
+
_pattern = new ToolbarPattern({
|
|
41
|
+
...this,
|
|
42
|
+
activeItem: signal(undefined),
|
|
43
|
+
textDirection: this.textDirection,
|
|
44
|
+
element: () => this._elementRef.nativeElement,
|
|
45
|
+
getItem: e => this._getItem(e)
|
|
46
|
+
});
|
|
47
|
+
_hasBeenFocused = signal(false, ...(ngDevMode ? [{
|
|
48
|
+
debugName: "_hasBeenFocused"
|
|
49
|
+
}] : []));
|
|
50
|
+
constructor() {
|
|
51
|
+
afterRenderEffect(() => {
|
|
52
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
53
|
+
const violations = this._pattern.validate();
|
|
54
|
+
for (const violation of violations) {
|
|
55
|
+
console.error(violation);
|
|
89
56
|
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
afterRenderEffect(() => {
|
|
60
|
+
if (!this._hasBeenFocused()) {
|
|
61
|
+
this._pattern.setDefaultState();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
onFocus() {
|
|
66
|
+
this._hasBeenFocused.set(true);
|
|
67
|
+
}
|
|
68
|
+
register(widget) {
|
|
69
|
+
const widgets = this._widgets();
|
|
70
|
+
if (!widgets.has(widget)) {
|
|
71
|
+
widgets.add(widget);
|
|
72
|
+
this._widgets.set(new Set(widgets));
|
|
90
73
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
74
|
+
}
|
|
75
|
+
unregister(widget) {
|
|
76
|
+
const widgets = this._widgets();
|
|
77
|
+
if (widgets.delete(widget)) {
|
|
78
|
+
this._widgets.set(new Set(widgets));
|
|
96
79
|
}
|
|
97
|
-
|
|
98
|
-
|
|
80
|
+
}
|
|
81
|
+
_getItem(element) {
|
|
82
|
+
const widgetTarget = element.closest('.ng-toolbar-widget');
|
|
83
|
+
return this.items().find(widget => widget.element() === widgetTarget);
|
|
84
|
+
}
|
|
85
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
86
|
+
minVersion: "12.0.0",
|
|
87
|
+
version: "20.2.0-next.2",
|
|
88
|
+
ngImport: i0,
|
|
89
|
+
type: Toolbar,
|
|
90
|
+
deps: [],
|
|
91
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
92
|
+
});
|
|
93
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
94
|
+
minVersion: "17.1.0",
|
|
95
|
+
version: "20.2.0-next.2",
|
|
96
|
+
type: Toolbar,
|
|
97
|
+
isStandalone: true,
|
|
98
|
+
selector: "[ngToolbar]",
|
|
99
|
+
inputs: {
|
|
100
|
+
orientation: {
|
|
101
|
+
classPropertyName: "orientation",
|
|
102
|
+
publicName: "orientation",
|
|
103
|
+
isSignal: true,
|
|
104
|
+
isRequired: false,
|
|
105
|
+
transformFunction: null
|
|
106
|
+
},
|
|
107
|
+
softDisabled: {
|
|
108
|
+
classPropertyName: "softDisabled",
|
|
109
|
+
publicName: "softDisabled",
|
|
110
|
+
isSignal: true,
|
|
111
|
+
isRequired: false,
|
|
112
|
+
transformFunction: null
|
|
113
|
+
},
|
|
114
|
+
disabled: {
|
|
115
|
+
classPropertyName: "disabled",
|
|
116
|
+
publicName: "disabled",
|
|
117
|
+
isSignal: true,
|
|
118
|
+
isRequired: false,
|
|
119
|
+
transformFunction: null
|
|
120
|
+
},
|
|
121
|
+
wrap: {
|
|
122
|
+
classPropertyName: "wrap",
|
|
123
|
+
publicName: "wrap",
|
|
124
|
+
isSignal: true,
|
|
125
|
+
isRequired: false,
|
|
126
|
+
transformFunction: null
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
host: {
|
|
130
|
+
attributes: {
|
|
131
|
+
"role": "toolbar"
|
|
132
|
+
},
|
|
133
|
+
listeners: {
|
|
134
|
+
"keydown": "_pattern.onKeydown($event)",
|
|
135
|
+
"click": "_pattern.onClick($event)",
|
|
136
|
+
"pointerdown": "_pattern.onPointerdown($event)",
|
|
137
|
+
"focusin": "onFocus()"
|
|
138
|
+
},
|
|
139
|
+
properties: {
|
|
140
|
+
"attr.tabindex": "_pattern.tabIndex()",
|
|
141
|
+
"attr.aria-disabled": "_pattern.disabled()",
|
|
142
|
+
"attr.aria-orientation": "_pattern.orientation()"
|
|
143
|
+
},
|
|
144
|
+
classAttribute: "ng-toolbar"
|
|
145
|
+
},
|
|
146
|
+
exportAs: ["ngToolbar"],
|
|
147
|
+
ngImport: i0
|
|
148
|
+
});
|
|
99
149
|
}
|
|
100
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
151
|
+
minVersion: "12.0.0",
|
|
152
|
+
version: "20.2.0-next.2",
|
|
153
|
+
ngImport: i0,
|
|
154
|
+
type: Toolbar,
|
|
155
|
+
decorators: [{
|
|
156
|
+
type: Directive,
|
|
157
|
+
args: [{
|
|
158
|
+
selector: '[ngToolbar]',
|
|
159
|
+
exportAs: 'ngToolbar',
|
|
160
|
+
host: {
|
|
161
|
+
'role': 'toolbar',
|
|
162
|
+
'class': 'ng-toolbar',
|
|
163
|
+
'[attr.tabindex]': '_pattern.tabIndex()',
|
|
164
|
+
'[attr.aria-disabled]': '_pattern.disabled()',
|
|
165
|
+
'[attr.aria-orientation]': '_pattern.orientation()',
|
|
166
|
+
'(keydown)': '_pattern.onKeydown($event)',
|
|
167
|
+
'(click)': '_pattern.onClick($event)',
|
|
168
|
+
'(pointerdown)': '_pattern.onPointerdown($event)',
|
|
169
|
+
'(focusin)': 'onFocus()'
|
|
170
|
+
}
|
|
171
|
+
}]
|
|
172
|
+
}],
|
|
173
|
+
ctorParameters: () => []
|
|
174
|
+
});
|
|
123
175
|
class ToolbarWidget {
|
|
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
|
-
|
|
176
|
+
_elementRef = inject(ElementRef);
|
|
177
|
+
_toolbar = inject(Toolbar);
|
|
178
|
+
_generatedId = inject(_IdGenerator).getId('ng-toolbar-widget-', true);
|
|
179
|
+
id = input(this._generatedId, ...(ngDevMode ? [{
|
|
180
|
+
debugName: "id"
|
|
181
|
+
}] : []));
|
|
182
|
+
toolbar = computed(() => this._toolbar._pattern, ...(ngDevMode ? [{
|
|
183
|
+
debugName: "toolbar"
|
|
184
|
+
}] : []));
|
|
185
|
+
element = computed(() => this._elementRef.nativeElement, ...(ngDevMode ? [{
|
|
186
|
+
debugName: "element"
|
|
187
|
+
}] : []));
|
|
188
|
+
disabled = input(false, ...(ngDevMode ? [{
|
|
189
|
+
debugName: "disabled",
|
|
190
|
+
transform: booleanAttribute
|
|
191
|
+
}] : [{
|
|
192
|
+
transform: booleanAttribute
|
|
193
|
+
}]));
|
|
194
|
+
hardDisabled = computed(() => this._pattern.disabled() && !this._toolbar.softDisabled(), ...(ngDevMode ? [{
|
|
195
|
+
debugName: "hardDisabled"
|
|
196
|
+
}] : []));
|
|
197
|
+
_group = inject(ToolbarWidgetGroup, {
|
|
198
|
+
optional: true
|
|
199
|
+
});
|
|
200
|
+
value = input.required(...(ngDevMode ? [{
|
|
201
|
+
debugName: "value"
|
|
202
|
+
}] : []));
|
|
203
|
+
active = computed(() => this._pattern.active(), ...(ngDevMode ? [{
|
|
204
|
+
debugName: "active"
|
|
205
|
+
}] : []));
|
|
206
|
+
selected = () => this._pattern.selected();
|
|
207
|
+
group = () => this._group?._pattern;
|
|
208
|
+
_pattern = new ToolbarWidgetPattern({
|
|
209
|
+
...this,
|
|
210
|
+
id: this.id,
|
|
211
|
+
value: this.value,
|
|
212
|
+
element: this.element
|
|
213
|
+
});
|
|
214
|
+
ngOnInit() {
|
|
215
|
+
this._toolbar.register(this);
|
|
216
|
+
}
|
|
217
|
+
ngOnDestroy() {
|
|
218
|
+
this._toolbar.unregister(this);
|
|
219
|
+
}
|
|
220
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
221
|
+
minVersion: "12.0.0",
|
|
222
|
+
version: "20.2.0-next.2",
|
|
223
|
+
ngImport: i0,
|
|
224
|
+
type: ToolbarWidget,
|
|
225
|
+
deps: [],
|
|
226
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
227
|
+
});
|
|
228
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
229
|
+
minVersion: "17.1.0",
|
|
230
|
+
version: "20.2.0-next.2",
|
|
231
|
+
type: ToolbarWidget,
|
|
232
|
+
isStandalone: true,
|
|
233
|
+
selector: "[ngToolbarWidget]",
|
|
234
|
+
inputs: {
|
|
235
|
+
id: {
|
|
236
|
+
classPropertyName: "id",
|
|
237
|
+
publicName: "id",
|
|
238
|
+
isSignal: true,
|
|
239
|
+
isRequired: false,
|
|
240
|
+
transformFunction: null
|
|
241
|
+
},
|
|
242
|
+
disabled: {
|
|
243
|
+
classPropertyName: "disabled",
|
|
244
|
+
publicName: "disabled",
|
|
245
|
+
isSignal: true,
|
|
246
|
+
isRequired: false,
|
|
247
|
+
transformFunction: null
|
|
248
|
+
},
|
|
249
|
+
value: {
|
|
250
|
+
classPropertyName: "value",
|
|
251
|
+
publicName: "value",
|
|
252
|
+
isSignal: true,
|
|
253
|
+
isRequired: true,
|
|
254
|
+
transformFunction: null
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
host: {
|
|
258
|
+
properties: {
|
|
259
|
+
"attr.data-active": "_pattern.active()",
|
|
260
|
+
"attr.tabindex": "_pattern.tabIndex()",
|
|
261
|
+
"attr.inert": "hardDisabled() ? true : null",
|
|
262
|
+
"attr.disabled": "hardDisabled() ? true : null",
|
|
263
|
+
"attr.aria-disabled": "_pattern.disabled()",
|
|
264
|
+
"id": "_pattern.id()"
|
|
265
|
+
},
|
|
266
|
+
classAttribute: "ng-toolbar-widget"
|
|
267
|
+
},
|
|
268
|
+
exportAs: ["ngToolbarWidget"],
|
|
269
|
+
ngImport: i0
|
|
270
|
+
});
|
|
155
271
|
}
|
|
156
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
273
|
+
minVersion: "12.0.0",
|
|
274
|
+
version: "20.2.0-next.2",
|
|
275
|
+
ngImport: i0,
|
|
276
|
+
type: ToolbarWidget,
|
|
277
|
+
decorators: [{
|
|
278
|
+
type: Directive,
|
|
279
|
+
args: [{
|
|
280
|
+
selector: '[ngToolbarWidget]',
|
|
281
|
+
exportAs: 'ngToolbarWidget',
|
|
282
|
+
host: {
|
|
283
|
+
'class': 'ng-toolbar-widget',
|
|
284
|
+
'[attr.data-active]': '_pattern.active()',
|
|
285
|
+
'[attr.tabindex]': '_pattern.tabIndex()',
|
|
286
|
+
'[attr.inert]': 'hardDisabled() ? true : null',
|
|
287
|
+
'[attr.disabled]': 'hardDisabled() ? true : null',
|
|
288
|
+
'[attr.aria-disabled]': '_pattern.disabled()',
|
|
289
|
+
'[id]': '_pattern.id()'
|
|
290
|
+
}
|
|
291
|
+
}]
|
|
292
|
+
}]
|
|
293
|
+
});
|
|
176
294
|
class ToolbarWidgetGroup {
|
|
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
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
295
|
+
_toolbar = inject(Toolbar, {
|
|
296
|
+
optional: true
|
|
297
|
+
});
|
|
298
|
+
_widgets = contentChildren(ToolbarWidget, ...(ngDevMode ? [{
|
|
299
|
+
debugName: "_widgets",
|
|
300
|
+
descendants: true
|
|
301
|
+
}] : [{
|
|
302
|
+
descendants: true
|
|
303
|
+
}]));
|
|
304
|
+
toolbar = computed(() => this._toolbar?._pattern, ...(ngDevMode ? [{
|
|
305
|
+
debugName: "toolbar"
|
|
306
|
+
}] : []));
|
|
307
|
+
disabled = input(false, ...(ngDevMode ? [{
|
|
308
|
+
debugName: "disabled",
|
|
309
|
+
transform: booleanAttribute
|
|
310
|
+
}] : [{
|
|
311
|
+
transform: booleanAttribute
|
|
312
|
+
}]));
|
|
313
|
+
items = () => this._widgets().map(w => w._pattern);
|
|
314
|
+
multi = input(false, ...(ngDevMode ? [{
|
|
315
|
+
debugName: "multi",
|
|
316
|
+
transform: booleanAttribute
|
|
317
|
+
}] : [{
|
|
318
|
+
transform: booleanAttribute
|
|
319
|
+
}]));
|
|
320
|
+
_pattern = new ToolbarWidgetGroupPattern(this);
|
|
321
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
322
|
+
minVersion: "12.0.0",
|
|
323
|
+
version: "20.2.0-next.2",
|
|
324
|
+
ngImport: i0,
|
|
325
|
+
type: ToolbarWidgetGroup,
|
|
326
|
+
deps: [],
|
|
327
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
328
|
+
});
|
|
329
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
330
|
+
minVersion: "17.2.0",
|
|
331
|
+
version: "20.2.0-next.2",
|
|
332
|
+
type: ToolbarWidgetGroup,
|
|
333
|
+
isStandalone: true,
|
|
334
|
+
selector: "[ngToolbarWidgetGroup]",
|
|
335
|
+
inputs: {
|
|
336
|
+
disabled: {
|
|
337
|
+
classPropertyName: "disabled",
|
|
338
|
+
publicName: "disabled",
|
|
339
|
+
isSignal: true,
|
|
340
|
+
isRequired: false,
|
|
341
|
+
transformFunction: null
|
|
342
|
+
},
|
|
343
|
+
multi: {
|
|
344
|
+
classPropertyName: "multi",
|
|
345
|
+
publicName: "multi",
|
|
346
|
+
isSignal: true,
|
|
347
|
+
isRequired: false,
|
|
348
|
+
transformFunction: null
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
host: {
|
|
352
|
+
properties: {
|
|
353
|
+
"class.ng-toolbar-widget-group": "!!toolbar()"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
queries: [{
|
|
357
|
+
propertyName: "_widgets",
|
|
358
|
+
predicate: ToolbarWidget,
|
|
359
|
+
descendants: true,
|
|
360
|
+
isSignal: true
|
|
361
|
+
}],
|
|
362
|
+
exportAs: ["ngToolbarWidgetGroup"],
|
|
363
|
+
ngImport: i0
|
|
364
|
+
});
|
|
207
365
|
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
366
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
367
|
+
minVersion: "12.0.0",
|
|
368
|
+
version: "20.2.0-next.2",
|
|
369
|
+
ngImport: i0,
|
|
370
|
+
type: ToolbarWidgetGroup,
|
|
371
|
+
decorators: [{
|
|
372
|
+
type: Directive,
|
|
373
|
+
args: [{
|
|
374
|
+
selector: '[ngToolbarWidgetGroup]',
|
|
375
|
+
exportAs: 'ngToolbarWidgetGroup',
|
|
376
|
+
host: {
|
|
377
|
+
'[class.ng-toolbar-widget-group]': '!!toolbar()'
|
|
378
|
+
}
|
|
379
|
+
}]
|
|
380
|
+
}]
|
|
381
|
+
});
|
|
216
382
|
|
|
217
383
|
export { Toolbar, ToolbarWidget, ToolbarWidgetGroup };
|
|
218
384
|
//# sourceMappingURL=toolbar.mjs.map
|