@progress/kendo-angular-toolbar 21.1.1-develop.1 → 21.2.0-develop.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/esm2022/package-metadata.mjs +2 -2
- package/esm2022/toolbar.component.mjs +146 -104
- package/esm2022/tools/toolbar-button.component.mjs +220 -192
- package/esm2022/tools/toolbar-buttongroup.component.mjs +195 -183
- package/esm2022/tools/toolbar-dropdownbutton.component.mjs +177 -165
- package/esm2022/tools/toolbar-splitbutton.component.mjs +191 -179
- package/fesm2022/progress-kendo-angular-toolbar.mjs +927 -821
- package/package.json +9 -9
- package/schematics/ngAdd/index.js +4 -0
|
@@ -9,7 +9,7 @@ import { ToolBarButtonComponent } from './toolbar-button.component';
|
|
|
9
9
|
import { makePeeker, getIndexOfFocused, seekFocusedIndex, getNextKey, getPrevKey, areEqual } from '../util';
|
|
10
10
|
import { ButtonGroupComponent, ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
11
11
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
12
|
-
import {
|
|
12
|
+
import { NgStyle, NgClass } from '@angular/common';
|
|
13
13
|
import { ToolBarComponent } from '../toolbar.component';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
@@ -199,107 +199,113 @@ export class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarButtonGroupComponent, deps: [{ token: i1.LocalizationService }, { token: i2.ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
202
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
202
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolBarButtonGroupComponent, isStandalone: true, selector: "kendo-toolbar-buttongroup", inputs: { disabled: "disabled", fillMode: "fillMode", selection: "selection", width: "width", look: "look" }, providers: [LocalizationService, { provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonGroupComponent) }], queries: [{ propertyName: "buttonComponents", predicate: i0.forwardRef(() => ToolBarButtonComponent) }], viewQueries: [{ propertyName: "toolbarButtonGroup", first: true, predicate: ["toolbarButtonGroup"], descendants: true }, { propertyName: "sectionButtonGroup", first: true, predicate: ["sectionButtonGroup"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarButtonGroup"], usesInheritance: true, ngImport: i0, template: `
|
|
203
203
|
<ng-template #toolbarTemplate>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
204
|
+
<kendo-buttongroup
|
|
205
|
+
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
206
|
+
#toolbarButtonGroup
|
|
207
|
+
[tabIndex]="-1"
|
|
208
|
+
[selection]="selection"
|
|
209
|
+
[disabled]="disabled"
|
|
210
|
+
[width]="width"
|
|
211
|
+
(navigate)="onNavigate($event)"
|
|
212
|
+
(focus)="onFocus()"
|
|
213
213
|
>
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
214
|
+
@for (button of buttonComponents; track button) {
|
|
215
|
+
<button
|
|
216
|
+
kendoButton
|
|
217
|
+
type="button"
|
|
218
|
+
[ngStyle]="button.style"
|
|
219
|
+
[ngClass]="button.className"
|
|
220
|
+
[attr.title]="button.title"
|
|
221
|
+
[disabled]="button.disabled"
|
|
222
|
+
[size]="size"
|
|
223
|
+
[togglable]="button.togglable"
|
|
224
|
+
[selected]="button.selected"
|
|
225
|
+
[attr.aria-pressed]="button.selected ? true : false"
|
|
226
|
+
[fillMode]="button.fillMode"
|
|
227
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
228
|
+
[icon]="button.toolbarOptions.icon"
|
|
229
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
230
|
+
[svgIcon]="button.toolbarOptions.svgIcon"
|
|
231
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
232
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
233
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
234
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
235
235
|
>
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
{{ button.toolbarOptions.text }}
|
|
237
|
+
</button>
|
|
238
|
+
}
|
|
239
|
+
</kendo-buttongroup>
|
|
239
240
|
</ng-template>
|
|
240
241
|
<ng-template #popupTemplate>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
242
|
+
@for (button of buttonComponents; track button) {
|
|
243
|
+
<div
|
|
244
|
+
#listItem
|
|
245
|
+
tabindex="-1"
|
|
246
|
+
role="menuitem"
|
|
247
|
+
class="k-item k-menu-item"
|
|
248
|
+
[class.k-disabled]="disabled || button.disabled"
|
|
249
|
+
[ngStyle]="button.style"
|
|
250
|
+
[ngClass]="button.className"
|
|
251
|
+
(click)="handleClick($event, button)">
|
|
252
|
+
<span
|
|
253
|
+
class="k-link k-menu-link"
|
|
254
|
+
[class.k-selected]="button.selected"
|
|
255
|
+
>
|
|
256
|
+
@if (button.overflowOptions.icon || button.overflowOptions.iconClass || button.overflowOptions.svgIcon) {
|
|
257
|
+
<kendo-icon-wrapper
|
|
258
|
+
[name]="button.overflowOptions.icon"
|
|
259
|
+
[customFontClass]="button.overflowOptions.iconClass"
|
|
260
|
+
[svgIcon]="button.overflowOptions.svgIcon"
|
|
261
|
+
></kendo-icon-wrapper>
|
|
262
|
+
}
|
|
263
|
+
@if (button.overflowOptions.text) {
|
|
264
|
+
<span class="k-menu-link-text">{{button.overflowOptions.text}}</span>
|
|
265
|
+
}
|
|
266
|
+
</span>
|
|
267
|
+
</div>
|
|
268
|
+
}
|
|
264
269
|
</ng-template>
|
|
265
270
|
<ng-template #sectionTemplate>
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
271
|
+
<kendo-buttongroup
|
|
272
|
+
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
273
|
+
#sectionButtonGroup
|
|
274
|
+
[tabIndex]="-1"
|
|
275
|
+
[selection]="selection"
|
|
276
|
+
[disabled]="disabled"
|
|
277
|
+
[width]="width"
|
|
278
|
+
(navigate)="onNavigate($event)"
|
|
279
|
+
(focus)="onFocus()"
|
|
275
280
|
>
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
281
|
+
@for (button of buttonComponents; track button) {
|
|
282
|
+
<button
|
|
283
|
+
kendoButton
|
|
284
|
+
type="button"
|
|
285
|
+
[ngStyle]="button.style"
|
|
286
|
+
[ngClass]="button.className"
|
|
287
|
+
[attr.title]="button.title"
|
|
288
|
+
[disabled]="button.disabled"
|
|
289
|
+
[size]="size"
|
|
290
|
+
[togglable]="button.togglable"
|
|
291
|
+
[selected]="button.selected"
|
|
292
|
+
[attr.aria-pressed]="button.selected ? true : false"
|
|
293
|
+
[fillMode]="button.fillMode"
|
|
294
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
295
|
+
[icon]="button.toolbarOptions.icon"
|
|
296
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
297
|
+
[svgIcon]="button.toolbarOptions.svgIcon"
|
|
298
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
299
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
300
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
301
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
297
302
|
>
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
303
|
+
{{ button.toolbarOptions.text }}
|
|
304
|
+
</button>
|
|
305
|
+
}
|
|
306
|
+
</kendo-buttongroup>
|
|
301
307
|
</ng-template>
|
|
302
|
-
|
|
308
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
303
309
|
}
|
|
304
310
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarButtonGroupComponent, decorators: [{
|
|
305
311
|
type: Component,
|
|
@@ -309,107 +315,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
309
315
|
selector: 'kendo-toolbar-buttongroup',
|
|
310
316
|
template: `
|
|
311
317
|
<ng-template #toolbarTemplate>
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
318
|
+
<kendo-buttongroup
|
|
319
|
+
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
320
|
+
#toolbarButtonGroup
|
|
321
|
+
[tabIndex]="-1"
|
|
322
|
+
[selection]="selection"
|
|
323
|
+
[disabled]="disabled"
|
|
324
|
+
[width]="width"
|
|
325
|
+
(navigate)="onNavigate($event)"
|
|
326
|
+
(focus)="onFocus()"
|
|
321
327
|
>
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
328
|
+
@for (button of buttonComponents; track button) {
|
|
329
|
+
<button
|
|
330
|
+
kendoButton
|
|
331
|
+
type="button"
|
|
332
|
+
[ngStyle]="button.style"
|
|
333
|
+
[ngClass]="button.className"
|
|
334
|
+
[attr.title]="button.title"
|
|
335
|
+
[disabled]="button.disabled"
|
|
336
|
+
[size]="size"
|
|
337
|
+
[togglable]="button.togglable"
|
|
338
|
+
[selected]="button.selected"
|
|
339
|
+
[attr.aria-pressed]="button.selected ? true : false"
|
|
340
|
+
[fillMode]="button.fillMode"
|
|
341
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
342
|
+
[icon]="button.toolbarOptions.icon"
|
|
343
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
344
|
+
[svgIcon]="button.toolbarOptions.svgIcon"
|
|
345
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
346
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
347
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
348
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
343
349
|
>
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
350
|
+
{{ button.toolbarOptions.text }}
|
|
351
|
+
</button>
|
|
352
|
+
}
|
|
353
|
+
</kendo-buttongroup>
|
|
347
354
|
</ng-template>
|
|
348
355
|
<ng-template #popupTemplate>
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
356
|
+
@for (button of buttonComponents; track button) {
|
|
357
|
+
<div
|
|
358
|
+
#listItem
|
|
359
|
+
tabindex="-1"
|
|
360
|
+
role="menuitem"
|
|
361
|
+
class="k-item k-menu-item"
|
|
362
|
+
[class.k-disabled]="disabled || button.disabled"
|
|
363
|
+
[ngStyle]="button.style"
|
|
364
|
+
[ngClass]="button.className"
|
|
365
|
+
(click)="handleClick($event, button)">
|
|
366
|
+
<span
|
|
367
|
+
class="k-link k-menu-link"
|
|
368
|
+
[class.k-selected]="button.selected"
|
|
369
|
+
>
|
|
370
|
+
@if (button.overflowOptions.icon || button.overflowOptions.iconClass || button.overflowOptions.svgIcon) {
|
|
371
|
+
<kendo-icon-wrapper
|
|
372
|
+
[name]="button.overflowOptions.icon"
|
|
373
|
+
[customFontClass]="button.overflowOptions.iconClass"
|
|
374
|
+
[svgIcon]="button.overflowOptions.svgIcon"
|
|
375
|
+
></kendo-icon-wrapper>
|
|
376
|
+
}
|
|
377
|
+
@if (button.overflowOptions.text) {
|
|
378
|
+
<span class="k-menu-link-text">{{button.overflowOptions.text}}</span>
|
|
379
|
+
}
|
|
380
|
+
</span>
|
|
381
|
+
</div>
|
|
382
|
+
}
|
|
372
383
|
</ng-template>
|
|
373
384
|
<ng-template #sectionTemplate>
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
385
|
+
<kendo-buttongroup
|
|
386
|
+
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
387
|
+
#sectionButtonGroup
|
|
388
|
+
[tabIndex]="-1"
|
|
389
|
+
[selection]="selection"
|
|
390
|
+
[disabled]="disabled"
|
|
391
|
+
[width]="width"
|
|
392
|
+
(navigate)="onNavigate($event)"
|
|
393
|
+
(focus)="onFocus()"
|
|
383
394
|
>
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
395
|
+
@for (button of buttonComponents; track button) {
|
|
396
|
+
<button
|
|
397
|
+
kendoButton
|
|
398
|
+
type="button"
|
|
399
|
+
[ngStyle]="button.style"
|
|
400
|
+
[ngClass]="button.className"
|
|
401
|
+
[attr.title]="button.title"
|
|
402
|
+
[disabled]="button.disabled"
|
|
403
|
+
[size]="size"
|
|
404
|
+
[togglable]="button.togglable"
|
|
405
|
+
[selected]="button.selected"
|
|
406
|
+
[attr.aria-pressed]="button.selected ? true : false"
|
|
407
|
+
[fillMode]="button.fillMode"
|
|
408
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
409
|
+
[icon]="button.toolbarOptions.icon"
|
|
410
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
411
|
+
[svgIcon]="button.toolbarOptions.svgIcon"
|
|
412
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
413
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
414
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
415
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
405
416
|
>
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
417
|
+
{{ button.toolbarOptions.text }}
|
|
418
|
+
</button>
|
|
419
|
+
}
|
|
420
|
+
</kendo-buttongroup>
|
|
409
421
|
</ng-template>
|
|
410
|
-
|
|
422
|
+
`,
|
|
411
423
|
standalone: true,
|
|
412
|
-
imports: [ButtonGroupComponent,
|
|
424
|
+
imports: [ButtonGroupComponent, ButtonComponent, NgStyle, NgClass, IconWrapperComponent]
|
|
413
425
|
}]
|
|
414
426
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i2.ToolBarComponent }], propDecorators: { disabled: [{
|
|
415
427
|
type: Input
|