@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
|
@@ -14,7 +14,7 @@ import { take, filter, takeUntil } from 'rxjs/operators';
|
|
|
14
14
|
import { Subject, Subscription, merge, fromEvent } from 'rxjs';
|
|
15
15
|
import { caretAltLeftIcon, caretAltRightIcon, moreHorizontalIcon, moreVerticalIcon, caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
16
16
|
import { ButtonComponent, ButtonGroupComponent, DropDownButtonComponent, SplitButtonComponent } from '@progress/kendo-angular-buttons';
|
|
17
|
-
import { NgTemplateOutlet,
|
|
17
|
+
import { NgTemplateOutlet, NgClass, NgStyle } from '@angular/common';
|
|
18
18
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
19
19
|
import { BadgeComponent, BadgeContainerComponent } from '@progress/kendo-angular-indicators';
|
|
20
20
|
|
|
@@ -26,8 +26,8 @@ const packageMetadata = {
|
|
|
26
26
|
productName: 'Kendo UI for Angular',
|
|
27
27
|
productCode: 'KENDOUIANGULAR',
|
|
28
28
|
productCodes: ['KENDOUIANGULAR'],
|
|
29
|
-
publishDate:
|
|
30
|
-
version: '21.
|
|
29
|
+
publishDate: 1763998158,
|
|
30
|
+
version: '21.2.0-develop.1',
|
|
31
31
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -2110,7 +2110,7 @@ class ToolBarComponent {
|
|
|
2110
2110
|
return value;
|
|
2111
2111
|
}
|
|
2112
2112
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PopupService }, { token: RefreshService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: ToolbarToolsService }, { token: ScrollService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2113
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2113
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolBarComponent, isStandalone: true, selector: "kendo-toolbar", inputs: { overflow: "overflow", resizable: "resizable", popupSettings: "popupSettings", fillMode: "fillMode", tabindex: "tabindex", size: "size", tabIndex: "tabIndex", showIcon: "showIcon", showText: "showText" }, outputs: { open: "open", close: "close" }, host: { listeners: { "focus": "onFocus($event)", "focusout": "onFocusOut($event)" }, properties: { "class.k-toolbar": "this.hostClass", "class.k-toolbar-scrollable": "this.scrollableClass", "class.k-toolbar-section": "this.sectionClass", "attr.role": "this.role", "attr.dir": "this.getDir", "class.k-toolbar-resizable": "this.resizableClass" } }, providers: [
|
|
2114
2114
|
RefreshService,
|
|
2115
2115
|
NavigationService,
|
|
2116
2116
|
LocalizationService,
|
|
@@ -2132,21 +2132,24 @@ class ToolBarComponent {
|
|
|
2132
2132
|
nextToolButton="Scroll right"
|
|
2133
2133
|
>
|
|
2134
2134
|
</ng-container>
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2135
|
+
@if (showScrollButtons && (hasScrollButtons.position === 'split' || hasScrollButtons.position === 'start')) {
|
|
2136
|
+
@if (hasScrollButtons.position === 'split') {
|
|
2137
|
+
<span #prevScrollButton
|
|
2138
|
+
kendoToolbarScrollableButton
|
|
2139
|
+
[prev]="true"
|
|
2140
|
+
[overflow]="normalizedOverflow"
|
|
2141
|
+
[title]="getScrollButtonTitle('prev')"
|
|
2142
|
+
class="k-toolbar-prev k-icon-button k-button k-button-solid k-button-solid-base k-rounded-md"
|
|
2143
|
+
[ngClass]="{
|
|
2144
|
+
'k-button-sm': size === 'small',
|
|
2145
|
+
'k-button-md': size === 'medium' || !size,
|
|
2146
|
+
'k-button-lg': size === 'large'
|
|
2147
|
+
}"
|
|
2148
|
+
(onClick)="scrollTools($event)">
|
|
2149
|
+
</span>
|
|
2150
|
+
}
|
|
2151
|
+
@if (hasScrollButtons.position === 'start') {
|
|
2152
|
+
<div class="k-button-group k-button-group-solid" #startButtonGroup>
|
|
2150
2153
|
<span #prevScrollButton
|
|
2151
2154
|
kendoToolbarScrollableButton
|
|
2152
2155
|
[prev]="true"
|
|
@@ -2174,10 +2177,13 @@ class ToolBarComponent {
|
|
|
2174
2177
|
(onClick)="scrollTools($event)">
|
|
2175
2178
|
</span>
|
|
2176
2179
|
</div>
|
|
2180
|
+
}
|
|
2177
2181
|
<div class="k-toolbar-separator k-toolbar-button-separator k-separator" #scrollSeparator></div>
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
<
|
|
2182
|
+
}
|
|
2183
|
+
@if (isScrollMode) {
|
|
2184
|
+
<div class="k-toolbar-items k-toolbar-items-scroll" tabindex="-1" #scrollContainer>
|
|
2185
|
+
@for (tool of allTools; track tool; let index = $index) {
|
|
2186
|
+
<ng-container
|
|
2181
2187
|
kendoToolbarRenderer
|
|
2182
2188
|
[tool]="tool"
|
|
2183
2189
|
location="toolbar"
|
|
@@ -2190,9 +2196,11 @@ class ToolBarComponent {
|
|
|
2190
2196
|
</div>
|
|
2191
2197
|
</ng-template>
|
|
2192
2198
|
</ng-container>
|
|
2199
|
+
}
|
|
2193
2200
|
</div>
|
|
2194
|
-
|
|
2195
|
-
|
|
2201
|
+
} @else {
|
|
2202
|
+
@for (tool of allTools; track tool; let index = $index) {
|
|
2203
|
+
<ng-container
|
|
2196
2204
|
kendoToolbarRenderer
|
|
2197
2205
|
[tool]="tool"
|
|
2198
2206
|
location="toolbar"
|
|
@@ -2205,9 +2213,13 @@ class ToolBarComponent {
|
|
|
2205
2213
|
</div>
|
|
2206
2214
|
</ng-template>
|
|
2207
2215
|
</ng-container>
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
@if (showOverflowSeparator) {
|
|
2219
|
+
<div class="k-toolbar-separator k-toolbar-button-separator k-separator"></div>
|
|
2220
|
+
}
|
|
2221
|
+
@if (showMenu) {
|
|
2222
|
+
<button
|
|
2211
2223
|
kendoButton
|
|
2212
2224
|
fillMode="flat"
|
|
2213
2225
|
#overflowButton
|
|
@@ -2220,7 +2232,6 @@ class ToolBarComponent {
|
|
|
2220
2232
|
[attr.aria-expanded]="popupOpen"
|
|
2221
2233
|
[id]="overflowBtnId"
|
|
2222
2234
|
[attr.aria-haspopup]="normalizedOverflow.mode === 'section' ? null : 'menu'"
|
|
2223
|
-
*ngIf="showMenu"
|
|
2224
2235
|
[style.visibility]="'hidden'"
|
|
2225
2236
|
[style.position]="'relative'"
|
|
2226
2237
|
class="k-toolbar-overflow-button"
|
|
@@ -2228,9 +2239,11 @@ class ToolBarComponent {
|
|
|
2228
2239
|
(click)="showPopup()"
|
|
2229
2240
|
>
|
|
2230
2241
|
</button>
|
|
2231
|
-
|
|
2242
|
+
}
|
|
2243
|
+
@if (showScrollButtons && (hasScrollButtons.position === 'split' || hasScrollButtons.position === 'end')) {
|
|
2232
2244
|
<div class="k-toolbar-separator k-toolbar-button-separator k-separator" #scrollSeparator></div>
|
|
2233
|
-
|
|
2245
|
+
@if (hasScrollButtons.position === 'split') {
|
|
2246
|
+
<span #nextScrollButton
|
|
2234
2247
|
kendoToolbarScrollableButton
|
|
2235
2248
|
[prev]="false"
|
|
2236
2249
|
[overflow]="normalizedOverflow"
|
|
@@ -2243,7 +2256,9 @@ class ToolBarComponent {
|
|
|
2243
2256
|
}"
|
|
2244
2257
|
(onClick)="scrollTools($event)">
|
|
2245
2258
|
</span>
|
|
2246
|
-
|
|
2259
|
+
}
|
|
2260
|
+
@if (hasScrollButtons.position === 'end') {
|
|
2261
|
+
<div class="k-button-group k-button-group-solid" #endButtonGroup>
|
|
2247
2262
|
<span #prevScrollButton
|
|
2248
2263
|
kendoToolbarScrollableButton
|
|
2249
2264
|
[prev]="true"
|
|
@@ -2271,7 +2286,8 @@ class ToolBarComponent {
|
|
|
2271
2286
|
(onClick)="scrollTools($event)">
|
|
2272
2287
|
</span>
|
|
2273
2288
|
</div>
|
|
2274
|
-
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2275
2291
|
<ng-template #popupTemplate>
|
|
2276
2292
|
<div
|
|
2277
2293
|
class="k-menu-group k-menu-group-md"
|
|
@@ -2279,21 +2295,22 @@ class ToolBarComponent {
|
|
|
2279
2295
|
[id]="popupId"
|
|
2280
2296
|
[attr.dir]="direction === 'rtl' ? 'rtl' : null"
|
|
2281
2297
|
[attr.aria-labelledby]="overflowBtnId">
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2298
|
+
@for (tool of overflowTools; track tool; let index = $index) {
|
|
2299
|
+
@if (tool.popupTemplate) {
|
|
2300
|
+
<ng-template
|
|
2301
|
+
kendoToolbarRenderer
|
|
2302
|
+
[tool]="tool"
|
|
2303
|
+
location="overflow"
|
|
2304
|
+
[resizable]="resizable"
|
|
2305
|
+
(rendererClick)="onRendererClick($event)"
|
|
2306
|
+
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.popupTemplate : popupWrapper"></ng-template>
|
|
2307
|
+
}
|
|
2291
2308
|
<ng-template #popupWrapper>
|
|
2292
2309
|
<div role="menuitem" tabindex="-1" class="k-item k-menu-item">
|
|
2293
2310
|
<ng-container [ngTemplateOutlet]="tool.popupTemplate"></ng-container>
|
|
2294
2311
|
</div>
|
|
2295
2312
|
</ng-template>
|
|
2296
|
-
|
|
2313
|
+
}
|
|
2297
2314
|
</div>
|
|
2298
2315
|
</ng-template>
|
|
2299
2316
|
<ng-template #popupSectionTemplate>
|
|
@@ -2303,22 +2320,26 @@ class ToolBarComponent {
|
|
|
2303
2320
|
[id]="popupId"
|
|
2304
2321
|
[attr.dir]="direction === 'rtl' ? 'rtl' : null"
|
|
2305
2322
|
[attr.aria-labelledby]="overflowBtnId">
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
<ng-
|
|
2315
|
-
|
|
2316
|
-
|
|
2323
|
+
@for (tool of overflowTools; track tool; let index = $index) {
|
|
2324
|
+
<ng-container
|
|
2325
|
+
kendoToolbarRenderer
|
|
2326
|
+
[tool]="tool"
|
|
2327
|
+
location="section"
|
|
2328
|
+
[resizable]="resizable"
|
|
2329
|
+
(rendererClick)="onRendererClick($event)"
|
|
2330
|
+
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.sectionTemplate : wrapper">
|
|
2331
|
+
<ng-template #wrapper>
|
|
2332
|
+
<ng-container [ngTemplateOutlet]="tool.sectionTemplate"></ng-container>
|
|
2333
|
+
</ng-template>
|
|
2334
|
+
</ng-container>
|
|
2335
|
+
}
|
|
2317
2336
|
</span>
|
|
2318
2337
|
</ng-template>
|
|
2319
2338
|
<ng-container #container></ng-container>
|
|
2320
|
-
|
|
2321
|
-
|
|
2339
|
+
@if (overflowEnabled) {
|
|
2340
|
+
<kendo-resize-sensor #resizeSensor></kendo-resize-sensor>
|
|
2341
|
+
}
|
|
2342
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { kind: "directive", type: ToolBarRendererComponent, selector: "[kendoToolbarRenderer]", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"] }, { 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: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: ToolbarScrollableButtonComponent, selector: "[kendoToolbarScrollableButton]", inputs: ["prev", "overflow"], outputs: ["onClick"] }] });
|
|
2322
2343
|
}
|
|
2323
2344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarComponent, decorators: [{
|
|
2324
2345
|
type: Component,
|
|
@@ -2348,21 +2369,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2348
2369
|
nextToolButton="Scroll right"
|
|
2349
2370
|
>
|
|
2350
2371
|
</ng-container>
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2372
|
+
@if (showScrollButtons && (hasScrollButtons.position === 'split' || hasScrollButtons.position === 'start')) {
|
|
2373
|
+
@if (hasScrollButtons.position === 'split') {
|
|
2374
|
+
<span #prevScrollButton
|
|
2375
|
+
kendoToolbarScrollableButton
|
|
2376
|
+
[prev]="true"
|
|
2377
|
+
[overflow]="normalizedOverflow"
|
|
2378
|
+
[title]="getScrollButtonTitle('prev')"
|
|
2379
|
+
class="k-toolbar-prev k-icon-button k-button k-button-solid k-button-solid-base k-rounded-md"
|
|
2380
|
+
[ngClass]="{
|
|
2381
|
+
'k-button-sm': size === 'small',
|
|
2382
|
+
'k-button-md': size === 'medium' || !size,
|
|
2383
|
+
'k-button-lg': size === 'large'
|
|
2384
|
+
}"
|
|
2385
|
+
(onClick)="scrollTools($event)">
|
|
2386
|
+
</span>
|
|
2387
|
+
}
|
|
2388
|
+
@if (hasScrollButtons.position === 'start') {
|
|
2389
|
+
<div class="k-button-group k-button-group-solid" #startButtonGroup>
|
|
2366
2390
|
<span #prevScrollButton
|
|
2367
2391
|
kendoToolbarScrollableButton
|
|
2368
2392
|
[prev]="true"
|
|
@@ -2390,10 +2414,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2390
2414
|
(onClick)="scrollTools($event)">
|
|
2391
2415
|
</span>
|
|
2392
2416
|
</div>
|
|
2417
|
+
}
|
|
2393
2418
|
<div class="k-toolbar-separator k-toolbar-button-separator k-separator" #scrollSeparator></div>
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
<
|
|
2419
|
+
}
|
|
2420
|
+
@if (isScrollMode) {
|
|
2421
|
+
<div class="k-toolbar-items k-toolbar-items-scroll" tabindex="-1" #scrollContainer>
|
|
2422
|
+
@for (tool of allTools; track tool; let index = $index) {
|
|
2423
|
+
<ng-container
|
|
2397
2424
|
kendoToolbarRenderer
|
|
2398
2425
|
[tool]="tool"
|
|
2399
2426
|
location="toolbar"
|
|
@@ -2406,9 +2433,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2406
2433
|
</div>
|
|
2407
2434
|
</ng-template>
|
|
2408
2435
|
</ng-container>
|
|
2436
|
+
}
|
|
2409
2437
|
</div>
|
|
2410
|
-
|
|
2411
|
-
|
|
2438
|
+
} @else {
|
|
2439
|
+
@for (tool of allTools; track tool; let index = $index) {
|
|
2440
|
+
<ng-container
|
|
2412
2441
|
kendoToolbarRenderer
|
|
2413
2442
|
[tool]="tool"
|
|
2414
2443
|
location="toolbar"
|
|
@@ -2421,9 +2450,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2421
2450
|
</div>
|
|
2422
2451
|
</ng-template>
|
|
2423
2452
|
</ng-container>
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
@if (showOverflowSeparator) {
|
|
2456
|
+
<div class="k-toolbar-separator k-toolbar-button-separator k-separator"></div>
|
|
2457
|
+
}
|
|
2458
|
+
@if (showMenu) {
|
|
2459
|
+
<button
|
|
2427
2460
|
kendoButton
|
|
2428
2461
|
fillMode="flat"
|
|
2429
2462
|
#overflowButton
|
|
@@ -2436,7 +2469,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2436
2469
|
[attr.aria-expanded]="popupOpen"
|
|
2437
2470
|
[id]="overflowBtnId"
|
|
2438
2471
|
[attr.aria-haspopup]="normalizedOverflow.mode === 'section' ? null : 'menu'"
|
|
2439
|
-
*ngIf="showMenu"
|
|
2440
2472
|
[style.visibility]="'hidden'"
|
|
2441
2473
|
[style.position]="'relative'"
|
|
2442
2474
|
class="k-toolbar-overflow-button"
|
|
@@ -2444,9 +2476,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2444
2476
|
(click)="showPopup()"
|
|
2445
2477
|
>
|
|
2446
2478
|
</button>
|
|
2447
|
-
|
|
2479
|
+
}
|
|
2480
|
+
@if (showScrollButtons && (hasScrollButtons.position === 'split' || hasScrollButtons.position === 'end')) {
|
|
2448
2481
|
<div class="k-toolbar-separator k-toolbar-button-separator k-separator" #scrollSeparator></div>
|
|
2449
|
-
|
|
2482
|
+
@if (hasScrollButtons.position === 'split') {
|
|
2483
|
+
<span #nextScrollButton
|
|
2450
2484
|
kendoToolbarScrollableButton
|
|
2451
2485
|
[prev]="false"
|
|
2452
2486
|
[overflow]="normalizedOverflow"
|
|
@@ -2459,7 +2493,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2459
2493
|
}"
|
|
2460
2494
|
(onClick)="scrollTools($event)">
|
|
2461
2495
|
</span>
|
|
2462
|
-
|
|
2496
|
+
}
|
|
2497
|
+
@if (hasScrollButtons.position === 'end') {
|
|
2498
|
+
<div class="k-button-group k-button-group-solid" #endButtonGroup>
|
|
2463
2499
|
<span #prevScrollButton
|
|
2464
2500
|
kendoToolbarScrollableButton
|
|
2465
2501
|
[prev]="true"
|
|
@@ -2487,7 +2523,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2487
2523
|
(onClick)="scrollTools($event)">
|
|
2488
2524
|
</span>
|
|
2489
2525
|
</div>
|
|
2490
|
-
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2491
2528
|
<ng-template #popupTemplate>
|
|
2492
2529
|
<div
|
|
2493
2530
|
class="k-menu-group k-menu-group-md"
|
|
@@ -2495,21 +2532,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2495
2532
|
[id]="popupId"
|
|
2496
2533
|
[attr.dir]="direction === 'rtl' ? 'rtl' : null"
|
|
2497
2534
|
[attr.aria-labelledby]="overflowBtnId">
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2535
|
+
@for (tool of overflowTools; track tool; let index = $index) {
|
|
2536
|
+
@if (tool.popupTemplate) {
|
|
2537
|
+
<ng-template
|
|
2538
|
+
kendoToolbarRenderer
|
|
2539
|
+
[tool]="tool"
|
|
2540
|
+
location="overflow"
|
|
2541
|
+
[resizable]="resizable"
|
|
2542
|
+
(rendererClick)="onRendererClick($event)"
|
|
2543
|
+
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.popupTemplate : popupWrapper"></ng-template>
|
|
2544
|
+
}
|
|
2507
2545
|
<ng-template #popupWrapper>
|
|
2508
2546
|
<div role="menuitem" tabindex="-1" class="k-item k-menu-item">
|
|
2509
2547
|
<ng-container [ngTemplateOutlet]="tool.popupTemplate"></ng-container>
|
|
2510
2548
|
</div>
|
|
2511
2549
|
</ng-template>
|
|
2512
|
-
|
|
2550
|
+
}
|
|
2513
2551
|
</div>
|
|
2514
2552
|
</ng-template>
|
|
2515
2553
|
<ng-template #popupSectionTemplate>
|
|
@@ -2519,24 +2557,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2519
2557
|
[id]="popupId"
|
|
2520
2558
|
[attr.dir]="direction === 'rtl' ? 'rtl' : null"
|
|
2521
2559
|
[attr.aria-labelledby]="overflowBtnId">
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
<ng-
|
|
2531
|
-
|
|
2532
|
-
|
|
2560
|
+
@for (tool of overflowTools; track tool; let index = $index) {
|
|
2561
|
+
<ng-container
|
|
2562
|
+
kendoToolbarRenderer
|
|
2563
|
+
[tool]="tool"
|
|
2564
|
+
location="section"
|
|
2565
|
+
[resizable]="resizable"
|
|
2566
|
+
(rendererClick)="onRendererClick($event)"
|
|
2567
|
+
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.sectionTemplate : wrapper">
|
|
2568
|
+
<ng-template #wrapper>
|
|
2569
|
+
<ng-container [ngTemplateOutlet]="tool.sectionTemplate"></ng-container>
|
|
2570
|
+
</ng-template>
|
|
2571
|
+
</ng-container>
|
|
2572
|
+
}
|
|
2533
2573
|
</span>
|
|
2534
2574
|
</ng-template>
|
|
2535
2575
|
<ng-container #container></ng-container>
|
|
2536
|
-
|
|
2576
|
+
@if (overflowEnabled) {
|
|
2577
|
+
<kendo-resize-sensor #resizeSensor></kendo-resize-sensor>
|
|
2578
|
+
}
|
|
2537
2579
|
`,
|
|
2538
2580
|
standalone: true,
|
|
2539
|
-
imports: [NgTemplateOutlet, LocalizedToolbarMessagesDirective,
|
|
2581
|
+
imports: [NgTemplateOutlet, LocalizedToolbarMessagesDirective, ToolBarRendererComponent, ButtonComponent, NgClass, ResizeSensorComponent, ToolbarScrollableButtonComponent]
|
|
2540
2582
|
}]
|
|
2541
2583
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i2.PopupService }, { type: RefreshService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: ToolbarToolsService }, { type: ScrollService }], propDecorators: { overflow: [{
|
|
2542
2584
|
type: Input
|
|
@@ -2922,39 +2964,9 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
2922
2964
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
2923
2965
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolBarButtonComponent, isStandalone: true, selector: "kendo-toolbar-button", inputs: { showText: "showText", showIcon: "showIcon", text: "text", style: "style", className: "className", title: "title", disabled: "disabled", toggleable: "toggleable", look: "look", togglable: "togglable", selected: "selected", fillMode: "fillMode", rounded: "rounded", themeColor: "themeColor", icon: "icon", iconClass: "iconClass", svgIcon: "svgIcon", imageUrl: "imageUrl" }, outputs: { click: "click", pointerdown: "pointerdown", selectedChange: "selectedChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarButtonComponent) }], viewQueries: [{ propertyName: "toolbarButtonElement", first: true, predicate: ["toolbarButton"], descendants: true, read: ElementRef }, { propertyName: "sectionButtonElement", first: true, predicate: ["sectionButton"], descendants: true, read: ElementRef }, { propertyName: "overflowButtonElement", first: true, predicate: ["overflowButton"], descendants: true, read: ElementRef }], exportAs: ["kendoToolBarButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
2924
2966
|
<ng-template #toolbarTemplate>
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
[class.k-toolbar-button]="!toggleable"
|
|
2929
|
-
[class.k-toolbar-toggle-button]="toggleable"
|
|
2930
|
-
[tabindex]="tabIndex"
|
|
2931
|
-
type="button"
|
|
2932
|
-
kendoButton
|
|
2933
|
-
[size]="size"
|
|
2934
|
-
[ngStyle]="style"
|
|
2935
|
-
[ngClass]="className"
|
|
2936
|
-
[attr.title]="title"
|
|
2937
|
-
[disabled]="disabled"
|
|
2938
|
-
[toggleable]="toggleable"
|
|
2939
|
-
[fillMode]="fillMode"
|
|
2940
|
-
[themeColor]="fillMode ? themeColor : null"
|
|
2941
|
-
[rounded]="rounded"
|
|
2942
|
-
[selected]="selected"
|
|
2943
|
-
[icon]="toolbarOptions.icon"
|
|
2944
|
-
[iconClass]="toolbarOptions.iconClass"
|
|
2945
|
-
[svgIcon]="toolbarOptions.svgIcon"
|
|
2946
|
-
[imageUrl]="toolbarOptions.imageUrl"
|
|
2947
|
-
(click)="click.emit($event)"
|
|
2948
|
-
(pointerdown)="pointerdown.emit($event)"
|
|
2949
|
-
(selectedChange)="selectedChangeHandler($event)"
|
|
2950
|
-
(blur)="onBlur()"
|
|
2951
|
-
>
|
|
2952
|
-
{{ toolbarOptions.text }}
|
|
2953
|
-
</button>
|
|
2954
|
-
<kendo-badge *ngIf="showBadge" [cutoutBorder]="true" rounded="full"></kendo-badge>
|
|
2955
|
-
</kendo-badge-container>
|
|
2956
|
-
|
|
2957
|
-
<button *ngIf="!hasBadgeContainer"
|
|
2967
|
+
@if (hasBadgeContainer) {
|
|
2968
|
+
<kendo-badge-container>
|
|
2969
|
+
<button
|
|
2958
2970
|
#toolbarButton
|
|
2959
2971
|
[class.k-toolbar-button]="!toggleable"
|
|
2960
2972
|
[class.k-toolbar-toggle-button]="toggleable"
|
|
@@ -2979,73 +2991,82 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
2979
2991
|
(pointerdown)="pointerdown.emit($event)"
|
|
2980
2992
|
(selectedChange)="selectedChangeHandler($event)"
|
|
2981
2993
|
(blur)="onBlur()"
|
|
2982
|
-
|
|
2994
|
+
>
|
|
2983
2995
|
{{ toolbarOptions.text }}
|
|
2996
|
+
</button>
|
|
2997
|
+
@if (showBadge) {
|
|
2998
|
+
<kendo-badge [cutoutBorder]="true" rounded="full"></kendo-badge>
|
|
2999
|
+
}
|
|
3000
|
+
</kendo-badge-container>
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
@if (!hasBadgeContainer) {
|
|
3004
|
+
<button
|
|
3005
|
+
#toolbarButton
|
|
3006
|
+
[class.k-toolbar-button]="!toggleable"
|
|
3007
|
+
[class.k-toolbar-toggle-button]="toggleable"
|
|
3008
|
+
[tabindex]="tabIndex"
|
|
3009
|
+
type="button"
|
|
3010
|
+
kendoButton
|
|
3011
|
+
[size]="size"
|
|
3012
|
+
[ngStyle]="style"
|
|
3013
|
+
[ngClass]="className"
|
|
3014
|
+
[attr.title]="title"
|
|
3015
|
+
[disabled]="disabled"
|
|
3016
|
+
[toggleable]="toggleable"
|
|
3017
|
+
[fillMode]="fillMode"
|
|
3018
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
3019
|
+
[rounded]="rounded"
|
|
3020
|
+
[selected]="selected"
|
|
3021
|
+
[icon]="toolbarOptions.icon"
|
|
3022
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
3023
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
3024
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
3025
|
+
(click)="click.emit($event)"
|
|
3026
|
+
(pointerdown)="pointerdown.emit($event)"
|
|
3027
|
+
(selectedChange)="selectedChangeHandler($event)"
|
|
3028
|
+
(blur)="onBlur()"
|
|
3029
|
+
>
|
|
3030
|
+
{{ toolbarOptions.text }}
|
|
2984
3031
|
</button>
|
|
3032
|
+
}
|
|
2985
3033
|
</ng-template>
|
|
2986
3034
|
<ng-template #popupTemplate>
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
}
|
|
3011
|
-
<span *ngIf="overflowOptions.text" class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
3035
|
+
<div
|
|
3036
|
+
#overflowButton
|
|
3037
|
+
tabindex="-1"
|
|
3038
|
+
role="menuitem"
|
|
3039
|
+
class="k-item k-menu-item"
|
|
3040
|
+
[class.k-disabled]="disabled"
|
|
3041
|
+
[ngClass]="className"
|
|
3042
|
+
[ngStyle]="style"
|
|
3043
|
+
(click)="handleClick($event)">
|
|
3044
|
+
<span
|
|
3045
|
+
class="k-link k-menu-link"
|
|
3046
|
+
[class.k-selected]="selected"
|
|
3047
|
+
>
|
|
3048
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
3049
|
+
<kendo-icon-wrapper
|
|
3050
|
+
[name]="overflowOptions.icon"
|
|
3051
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
3052
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
3053
|
+
></kendo-icon-wrapper>
|
|
3054
|
+
}
|
|
3055
|
+
@if (overflowOptions.imageUrl) {
|
|
3056
|
+
<span class="k-icon k-button-icon">
|
|
3057
|
+
<img [src]="overflowOptions.imageUrl" role="presentation" class="k-image" />
|
|
3012
3058
|
</span>
|
|
3013
|
-
|
|
3059
|
+
}
|
|
3060
|
+
@if (overflowOptions.text) {
|
|
3061
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
3062
|
+
}
|
|
3063
|
+
</span>
|
|
3064
|
+
</div>
|
|
3014
3065
|
</ng-template>
|
|
3015
3066
|
<ng-template #sectionTemplate>
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
[class.k-toolbar-button]="!toggleable"
|
|
3020
|
-
[class.k-toolbar-toggle-button]="toggleable"
|
|
3021
|
-
[tabindex]="tabIndex"
|
|
3022
|
-
type="button"
|
|
3023
|
-
kendoButton
|
|
3024
|
-
[size]="size"
|
|
3025
|
-
[ngStyle]="style"
|
|
3026
|
-
[ngClass]="className"
|
|
3027
|
-
[attr.title]="title"
|
|
3028
|
-
[disabled]="disabled"
|
|
3029
|
-
[toggleable]="toggleable"
|
|
3030
|
-
[fillMode]="fillMode"
|
|
3031
|
-
[themeColor]="fillMode ? themeColor : null"
|
|
3032
|
-
[rounded]="rounded"
|
|
3033
|
-
[selected]="selected"
|
|
3034
|
-
[icon]="toolbarOptions.icon"
|
|
3035
|
-
[iconClass]="toolbarOptions.iconClass"
|
|
3036
|
-
[svgIcon]="toolbarOptions.svgIcon"
|
|
3037
|
-
[imageUrl]="toolbarOptions.imageUrl"
|
|
3038
|
-
(click)="click.emit($event)"
|
|
3039
|
-
(pointerdown)="pointerdown.emit($event)"
|
|
3040
|
-
(selectedChange)="selectedChangeHandler($event)"
|
|
3041
|
-
(blur)="onBlur()"
|
|
3042
|
-
>
|
|
3043
|
-
{{ toolbarOptions.text }}
|
|
3044
|
-
</button>
|
|
3045
|
-
<kendo-badge *ngIf="showBadge" [cutoutBorder]="true" rounded="full"></kendo-badge>
|
|
3046
|
-
</kendo-badge-container>
|
|
3047
|
-
<button
|
|
3048
|
-
*ngIf="!hasBadgeContainer"
|
|
3067
|
+
@if (hasBadgeContainer) {
|
|
3068
|
+
<kendo-badge-container>
|
|
3069
|
+
<button
|
|
3049
3070
|
#sectionButton
|
|
3050
3071
|
[class.k-toolbar-button]="!toggleable"
|
|
3051
3072
|
[class.k-toolbar-toggle-button]="toggleable"
|
|
@@ -3070,11 +3091,46 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
3070
3091
|
(pointerdown)="pointerdown.emit($event)"
|
|
3071
3092
|
(selectedChange)="selectedChangeHandler($event)"
|
|
3072
3093
|
(blur)="onBlur()"
|
|
3073
|
-
|
|
3094
|
+
>
|
|
3074
3095
|
{{ toolbarOptions.text }}
|
|
3096
|
+
</button>
|
|
3097
|
+
@if (showBadge) {
|
|
3098
|
+
<kendo-badge [cutoutBorder]="true" rounded="full"></kendo-badge>
|
|
3099
|
+
}
|
|
3100
|
+
</kendo-badge-container>
|
|
3101
|
+
}
|
|
3102
|
+
@if (!hasBadgeContainer) {
|
|
3103
|
+
<button
|
|
3104
|
+
#sectionButton
|
|
3105
|
+
[class.k-toolbar-button]="!toggleable"
|
|
3106
|
+
[class.k-toolbar-toggle-button]="toggleable"
|
|
3107
|
+
[tabindex]="tabIndex"
|
|
3108
|
+
type="button"
|
|
3109
|
+
kendoButton
|
|
3110
|
+
[size]="size"
|
|
3111
|
+
[ngStyle]="style"
|
|
3112
|
+
[ngClass]="className"
|
|
3113
|
+
[attr.title]="title"
|
|
3114
|
+
[disabled]="disabled"
|
|
3115
|
+
[toggleable]="toggleable"
|
|
3116
|
+
[fillMode]="fillMode"
|
|
3117
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
3118
|
+
[rounded]="rounded"
|
|
3119
|
+
[selected]="selected"
|
|
3120
|
+
[icon]="toolbarOptions.icon"
|
|
3121
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
3122
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
3123
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
3124
|
+
(click)="click.emit($event)"
|
|
3125
|
+
(pointerdown)="pointerdown.emit($event)"
|
|
3126
|
+
(selectedChange)="selectedChangeHandler($event)"
|
|
3127
|
+
(blur)="onBlur()"
|
|
3128
|
+
>
|
|
3129
|
+
{{ toolbarOptions.text }}
|
|
3075
3130
|
</button>
|
|
3131
|
+
}
|
|
3076
3132
|
</ng-template>
|
|
3077
|
-
|
|
3133
|
+
`, isInline: true, dependencies: [{ 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"] }, { kind: "component", type: BadgeComponent, selector: "kendo-badge", inputs: ["align", "size", "fill", "themeColor", "rounded", "position", "cutoutBorder"] }, { kind: "component", type: BadgeContainerComponent, selector: "kendo-badge-container" }] });
|
|
3078
3134
|
}
|
|
3079
3135
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarButtonComponent, decorators: [{
|
|
3080
3136
|
type: Component,
|
|
@@ -3084,39 +3140,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3084
3140
|
selector: 'kendo-toolbar-button',
|
|
3085
3141
|
template: `
|
|
3086
3142
|
<ng-template #toolbarTemplate>
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
[class.k-toolbar-button]="!toggleable"
|
|
3091
|
-
[class.k-toolbar-toggle-button]="toggleable"
|
|
3092
|
-
[tabindex]="tabIndex"
|
|
3093
|
-
type="button"
|
|
3094
|
-
kendoButton
|
|
3095
|
-
[size]="size"
|
|
3096
|
-
[ngStyle]="style"
|
|
3097
|
-
[ngClass]="className"
|
|
3098
|
-
[attr.title]="title"
|
|
3099
|
-
[disabled]="disabled"
|
|
3100
|
-
[toggleable]="toggleable"
|
|
3101
|
-
[fillMode]="fillMode"
|
|
3102
|
-
[themeColor]="fillMode ? themeColor : null"
|
|
3103
|
-
[rounded]="rounded"
|
|
3104
|
-
[selected]="selected"
|
|
3105
|
-
[icon]="toolbarOptions.icon"
|
|
3106
|
-
[iconClass]="toolbarOptions.iconClass"
|
|
3107
|
-
[svgIcon]="toolbarOptions.svgIcon"
|
|
3108
|
-
[imageUrl]="toolbarOptions.imageUrl"
|
|
3109
|
-
(click)="click.emit($event)"
|
|
3110
|
-
(pointerdown)="pointerdown.emit($event)"
|
|
3111
|
-
(selectedChange)="selectedChangeHandler($event)"
|
|
3112
|
-
(blur)="onBlur()"
|
|
3113
|
-
>
|
|
3114
|
-
{{ toolbarOptions.text }}
|
|
3115
|
-
</button>
|
|
3116
|
-
<kendo-badge *ngIf="showBadge" [cutoutBorder]="true" rounded="full"></kendo-badge>
|
|
3117
|
-
</kendo-badge-container>
|
|
3118
|
-
|
|
3119
|
-
<button *ngIf="!hasBadgeContainer"
|
|
3143
|
+
@if (hasBadgeContainer) {
|
|
3144
|
+
<kendo-badge-container>
|
|
3145
|
+
<button
|
|
3120
3146
|
#toolbarButton
|
|
3121
3147
|
[class.k-toolbar-button]="!toggleable"
|
|
3122
3148
|
[class.k-toolbar-toggle-button]="toggleable"
|
|
@@ -3141,73 +3167,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3141
3167
|
(pointerdown)="pointerdown.emit($event)"
|
|
3142
3168
|
(selectedChange)="selectedChangeHandler($event)"
|
|
3143
3169
|
(blur)="onBlur()"
|
|
3144
|
-
|
|
3170
|
+
>
|
|
3145
3171
|
{{ toolbarOptions.text }}
|
|
3172
|
+
</button>
|
|
3173
|
+
@if (showBadge) {
|
|
3174
|
+
<kendo-badge [cutoutBorder]="true" rounded="full"></kendo-badge>
|
|
3175
|
+
}
|
|
3176
|
+
</kendo-badge-container>
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
@if (!hasBadgeContainer) {
|
|
3180
|
+
<button
|
|
3181
|
+
#toolbarButton
|
|
3182
|
+
[class.k-toolbar-button]="!toggleable"
|
|
3183
|
+
[class.k-toolbar-toggle-button]="toggleable"
|
|
3184
|
+
[tabindex]="tabIndex"
|
|
3185
|
+
type="button"
|
|
3186
|
+
kendoButton
|
|
3187
|
+
[size]="size"
|
|
3188
|
+
[ngStyle]="style"
|
|
3189
|
+
[ngClass]="className"
|
|
3190
|
+
[attr.title]="title"
|
|
3191
|
+
[disabled]="disabled"
|
|
3192
|
+
[toggleable]="toggleable"
|
|
3193
|
+
[fillMode]="fillMode"
|
|
3194
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
3195
|
+
[rounded]="rounded"
|
|
3196
|
+
[selected]="selected"
|
|
3197
|
+
[icon]="toolbarOptions.icon"
|
|
3198
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
3199
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
3200
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
3201
|
+
(click)="click.emit($event)"
|
|
3202
|
+
(pointerdown)="pointerdown.emit($event)"
|
|
3203
|
+
(selectedChange)="selectedChangeHandler($event)"
|
|
3204
|
+
(blur)="onBlur()"
|
|
3205
|
+
>
|
|
3206
|
+
{{ toolbarOptions.text }}
|
|
3146
3207
|
</button>
|
|
3208
|
+
}
|
|
3147
3209
|
</ng-template>
|
|
3148
3210
|
<ng-template #popupTemplate>
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
}
|
|
3173
|
-
<span *ngIf="overflowOptions.text" class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
3211
|
+
<div
|
|
3212
|
+
#overflowButton
|
|
3213
|
+
tabindex="-1"
|
|
3214
|
+
role="menuitem"
|
|
3215
|
+
class="k-item k-menu-item"
|
|
3216
|
+
[class.k-disabled]="disabled"
|
|
3217
|
+
[ngClass]="className"
|
|
3218
|
+
[ngStyle]="style"
|
|
3219
|
+
(click)="handleClick($event)">
|
|
3220
|
+
<span
|
|
3221
|
+
class="k-link k-menu-link"
|
|
3222
|
+
[class.k-selected]="selected"
|
|
3223
|
+
>
|
|
3224
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
3225
|
+
<kendo-icon-wrapper
|
|
3226
|
+
[name]="overflowOptions.icon"
|
|
3227
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
3228
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
3229
|
+
></kendo-icon-wrapper>
|
|
3230
|
+
}
|
|
3231
|
+
@if (overflowOptions.imageUrl) {
|
|
3232
|
+
<span class="k-icon k-button-icon">
|
|
3233
|
+
<img [src]="overflowOptions.imageUrl" role="presentation" class="k-image" />
|
|
3174
3234
|
</span>
|
|
3175
|
-
|
|
3235
|
+
}
|
|
3236
|
+
@if (overflowOptions.text) {
|
|
3237
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
3238
|
+
}
|
|
3239
|
+
</span>
|
|
3240
|
+
</div>
|
|
3176
3241
|
</ng-template>
|
|
3177
3242
|
<ng-template #sectionTemplate>
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
[class.k-toolbar-button]="!toggleable"
|
|
3182
|
-
[class.k-toolbar-toggle-button]="toggleable"
|
|
3183
|
-
[tabindex]="tabIndex"
|
|
3184
|
-
type="button"
|
|
3185
|
-
kendoButton
|
|
3186
|
-
[size]="size"
|
|
3187
|
-
[ngStyle]="style"
|
|
3188
|
-
[ngClass]="className"
|
|
3189
|
-
[attr.title]="title"
|
|
3190
|
-
[disabled]="disabled"
|
|
3191
|
-
[toggleable]="toggleable"
|
|
3192
|
-
[fillMode]="fillMode"
|
|
3193
|
-
[themeColor]="fillMode ? themeColor : null"
|
|
3194
|
-
[rounded]="rounded"
|
|
3195
|
-
[selected]="selected"
|
|
3196
|
-
[icon]="toolbarOptions.icon"
|
|
3197
|
-
[iconClass]="toolbarOptions.iconClass"
|
|
3198
|
-
[svgIcon]="toolbarOptions.svgIcon"
|
|
3199
|
-
[imageUrl]="toolbarOptions.imageUrl"
|
|
3200
|
-
(click)="click.emit($event)"
|
|
3201
|
-
(pointerdown)="pointerdown.emit($event)"
|
|
3202
|
-
(selectedChange)="selectedChangeHandler($event)"
|
|
3203
|
-
(blur)="onBlur()"
|
|
3204
|
-
>
|
|
3205
|
-
{{ toolbarOptions.text }}
|
|
3206
|
-
</button>
|
|
3207
|
-
<kendo-badge *ngIf="showBadge" [cutoutBorder]="true" rounded="full"></kendo-badge>
|
|
3208
|
-
</kendo-badge-container>
|
|
3209
|
-
<button
|
|
3210
|
-
*ngIf="!hasBadgeContainer"
|
|
3243
|
+
@if (hasBadgeContainer) {
|
|
3244
|
+
<kendo-badge-container>
|
|
3245
|
+
<button
|
|
3211
3246
|
#sectionButton
|
|
3212
3247
|
[class.k-toolbar-button]="!toggleable"
|
|
3213
3248
|
[class.k-toolbar-toggle-button]="toggleable"
|
|
@@ -3232,13 +3267,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3232
3267
|
(pointerdown)="pointerdown.emit($event)"
|
|
3233
3268
|
(selectedChange)="selectedChangeHandler($event)"
|
|
3234
3269
|
(blur)="onBlur()"
|
|
3235
|
-
|
|
3270
|
+
>
|
|
3236
3271
|
{{ toolbarOptions.text }}
|
|
3272
|
+
</button>
|
|
3273
|
+
@if (showBadge) {
|
|
3274
|
+
<kendo-badge [cutoutBorder]="true" rounded="full"></kendo-badge>
|
|
3275
|
+
}
|
|
3276
|
+
</kendo-badge-container>
|
|
3277
|
+
}
|
|
3278
|
+
@if (!hasBadgeContainer) {
|
|
3279
|
+
<button
|
|
3280
|
+
#sectionButton
|
|
3281
|
+
[class.k-toolbar-button]="!toggleable"
|
|
3282
|
+
[class.k-toolbar-toggle-button]="toggleable"
|
|
3283
|
+
[tabindex]="tabIndex"
|
|
3284
|
+
type="button"
|
|
3285
|
+
kendoButton
|
|
3286
|
+
[size]="size"
|
|
3287
|
+
[ngStyle]="style"
|
|
3288
|
+
[ngClass]="className"
|
|
3289
|
+
[attr.title]="title"
|
|
3290
|
+
[disabled]="disabled"
|
|
3291
|
+
[toggleable]="toggleable"
|
|
3292
|
+
[fillMode]="fillMode"
|
|
3293
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
3294
|
+
[rounded]="rounded"
|
|
3295
|
+
[selected]="selected"
|
|
3296
|
+
[icon]="toolbarOptions.icon"
|
|
3297
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
3298
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
3299
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
3300
|
+
(click)="click.emit($event)"
|
|
3301
|
+
(pointerdown)="pointerdown.emit($event)"
|
|
3302
|
+
(selectedChange)="selectedChangeHandler($event)"
|
|
3303
|
+
(blur)="onBlur()"
|
|
3304
|
+
>
|
|
3305
|
+
{{ toolbarOptions.text }}
|
|
3237
3306
|
</button>
|
|
3307
|
+
}
|
|
3238
3308
|
</ng-template>
|
|
3239
|
-
|
|
3309
|
+
`,
|
|
3240
3310
|
standalone: true,
|
|
3241
|
-
imports: [ButtonComponent, NgStyle, NgClass,
|
|
3311
|
+
imports: [ButtonComponent, NgStyle, NgClass, IconWrapperComponent, BadgeComponent, BadgeContainerComponent],
|
|
3242
3312
|
}]
|
|
3243
3313
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: ToolBarComponent }], propDecorators: { showText: [{
|
|
3244
3314
|
type: Input
|
|
@@ -3478,107 +3548,113 @@ class ToolBarButtonGroupComponent extends ToolBarToolComponent {
|
|
|
3478
3548
|
}
|
|
3479
3549
|
}
|
|
3480
3550
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarButtonGroupComponent, deps: [{ token: i1.LocalizationService }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
3481
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3551
|
+
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: `
|
|
3482
3552
|
<ng-template #toolbarTemplate>
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3553
|
+
<kendo-buttongroup
|
|
3554
|
+
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
3555
|
+
#toolbarButtonGroup
|
|
3556
|
+
[tabIndex]="-1"
|
|
3557
|
+
[selection]="selection"
|
|
3558
|
+
[disabled]="disabled"
|
|
3559
|
+
[width]="width"
|
|
3560
|
+
(navigate)="onNavigate($event)"
|
|
3561
|
+
(focus)="onFocus()"
|
|
3492
3562
|
>
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3563
|
+
@for (button of buttonComponents; track button) {
|
|
3564
|
+
<button
|
|
3565
|
+
kendoButton
|
|
3566
|
+
type="button"
|
|
3567
|
+
[ngStyle]="button.style"
|
|
3568
|
+
[ngClass]="button.className"
|
|
3569
|
+
[attr.title]="button.title"
|
|
3570
|
+
[disabled]="button.disabled"
|
|
3571
|
+
[size]="size"
|
|
3572
|
+
[togglable]="button.togglable"
|
|
3573
|
+
[selected]="button.selected"
|
|
3574
|
+
[attr.aria-pressed]="button.selected ? true : false"
|
|
3575
|
+
[fillMode]="button.fillMode"
|
|
3576
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
3577
|
+
[icon]="button.toolbarOptions.icon"
|
|
3578
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
3579
|
+
[svgIcon]="button.toolbarOptions.svgIcon"
|
|
3580
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
3581
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
3582
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
3583
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
3514
3584
|
>
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3585
|
+
{{ button.toolbarOptions.text }}
|
|
3586
|
+
</button>
|
|
3587
|
+
}
|
|
3588
|
+
</kendo-buttongroup>
|
|
3518
3589
|
</ng-template>
|
|
3519
3590
|
<ng-template #popupTemplate>
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3591
|
+
@for (button of buttonComponents; track button) {
|
|
3592
|
+
<div
|
|
3593
|
+
#listItem
|
|
3594
|
+
tabindex="-1"
|
|
3595
|
+
role="menuitem"
|
|
3596
|
+
class="k-item k-menu-item"
|
|
3597
|
+
[class.k-disabled]="disabled || button.disabled"
|
|
3598
|
+
[ngStyle]="button.style"
|
|
3599
|
+
[ngClass]="button.className"
|
|
3600
|
+
(click)="handleClick($event, button)">
|
|
3601
|
+
<span
|
|
3602
|
+
class="k-link k-menu-link"
|
|
3603
|
+
[class.k-selected]="button.selected"
|
|
3604
|
+
>
|
|
3605
|
+
@if (button.overflowOptions.icon || button.overflowOptions.iconClass || button.overflowOptions.svgIcon) {
|
|
3606
|
+
<kendo-icon-wrapper
|
|
3607
|
+
[name]="button.overflowOptions.icon"
|
|
3608
|
+
[customFontClass]="button.overflowOptions.iconClass"
|
|
3609
|
+
[svgIcon]="button.overflowOptions.svgIcon"
|
|
3610
|
+
></kendo-icon-wrapper>
|
|
3611
|
+
}
|
|
3612
|
+
@if (button.overflowOptions.text) {
|
|
3613
|
+
<span class="k-menu-link-text">{{button.overflowOptions.text}}</span>
|
|
3614
|
+
}
|
|
3615
|
+
</span>
|
|
3616
|
+
</div>
|
|
3617
|
+
}
|
|
3543
3618
|
</ng-template>
|
|
3544
3619
|
<ng-template #sectionTemplate>
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3620
|
+
<kendo-buttongroup
|
|
3621
|
+
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
3622
|
+
#sectionButtonGroup
|
|
3623
|
+
[tabIndex]="-1"
|
|
3624
|
+
[selection]="selection"
|
|
3625
|
+
[disabled]="disabled"
|
|
3626
|
+
[width]="width"
|
|
3627
|
+
(navigate)="onNavigate($event)"
|
|
3628
|
+
(focus)="onFocus()"
|
|
3554
3629
|
>
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3630
|
+
@for (button of buttonComponents; track button) {
|
|
3631
|
+
<button
|
|
3632
|
+
kendoButton
|
|
3633
|
+
type="button"
|
|
3634
|
+
[ngStyle]="button.style"
|
|
3635
|
+
[ngClass]="button.className"
|
|
3636
|
+
[attr.title]="button.title"
|
|
3637
|
+
[disabled]="button.disabled"
|
|
3638
|
+
[size]="size"
|
|
3639
|
+
[togglable]="button.togglable"
|
|
3640
|
+
[selected]="button.selected"
|
|
3641
|
+
[attr.aria-pressed]="button.selected ? true : false"
|
|
3642
|
+
[fillMode]="button.fillMode"
|
|
3643
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
3644
|
+
[icon]="button.toolbarOptions.icon"
|
|
3645
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
3646
|
+
[svgIcon]="button.toolbarOptions.svgIcon"
|
|
3647
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
3648
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
3649
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
3650
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
3576
3651
|
>
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3652
|
+
{{ button.toolbarOptions.text }}
|
|
3653
|
+
</button>
|
|
3654
|
+
}
|
|
3655
|
+
</kendo-buttongroup>
|
|
3580
3656
|
</ng-template>
|
|
3581
|
-
|
|
3657
|
+
`, 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"] }] });
|
|
3582
3658
|
}
|
|
3583
3659
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarButtonGroupComponent, decorators: [{
|
|
3584
3660
|
type: Component,
|
|
@@ -3588,107 +3664,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3588
3664
|
selector: 'kendo-toolbar-buttongroup',
|
|
3589
3665
|
template: `
|
|
3590
3666
|
<ng-template #toolbarTemplate>
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3667
|
+
<kendo-buttongroup
|
|
3668
|
+
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
3669
|
+
#toolbarButtonGroup
|
|
3670
|
+
[tabIndex]="-1"
|
|
3671
|
+
[selection]="selection"
|
|
3672
|
+
[disabled]="disabled"
|
|
3673
|
+
[width]="width"
|
|
3674
|
+
(navigate)="onNavigate($event)"
|
|
3675
|
+
(focus)="onFocus()"
|
|
3600
3676
|
>
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3677
|
+
@for (button of buttonComponents; track button) {
|
|
3678
|
+
<button
|
|
3679
|
+
kendoButton
|
|
3680
|
+
type="button"
|
|
3681
|
+
[ngStyle]="button.style"
|
|
3682
|
+
[ngClass]="button.className"
|
|
3683
|
+
[attr.title]="button.title"
|
|
3684
|
+
[disabled]="button.disabled"
|
|
3685
|
+
[size]="size"
|
|
3686
|
+
[togglable]="button.togglable"
|
|
3687
|
+
[selected]="button.selected"
|
|
3688
|
+
[attr.aria-pressed]="button.selected ? true : false"
|
|
3689
|
+
[fillMode]="button.fillMode"
|
|
3690
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
3691
|
+
[icon]="button.toolbarOptions.icon"
|
|
3692
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
3693
|
+
[svgIcon]="button.toolbarOptions.svgIcon"
|
|
3694
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
3695
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
3696
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
3697
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
3622
3698
|
>
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3699
|
+
{{ button.toolbarOptions.text }}
|
|
3700
|
+
</button>
|
|
3701
|
+
}
|
|
3702
|
+
</kendo-buttongroup>
|
|
3626
3703
|
</ng-template>
|
|
3627
3704
|
<ng-template #popupTemplate>
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3705
|
+
@for (button of buttonComponents; track button) {
|
|
3706
|
+
<div
|
|
3707
|
+
#listItem
|
|
3708
|
+
tabindex="-1"
|
|
3709
|
+
role="menuitem"
|
|
3710
|
+
class="k-item k-menu-item"
|
|
3711
|
+
[class.k-disabled]="disabled || button.disabled"
|
|
3712
|
+
[ngStyle]="button.style"
|
|
3713
|
+
[ngClass]="button.className"
|
|
3714
|
+
(click)="handleClick($event, button)">
|
|
3715
|
+
<span
|
|
3716
|
+
class="k-link k-menu-link"
|
|
3717
|
+
[class.k-selected]="button.selected"
|
|
3718
|
+
>
|
|
3719
|
+
@if (button.overflowOptions.icon || button.overflowOptions.iconClass || button.overflowOptions.svgIcon) {
|
|
3720
|
+
<kendo-icon-wrapper
|
|
3721
|
+
[name]="button.overflowOptions.icon"
|
|
3722
|
+
[customFontClass]="button.overflowOptions.iconClass"
|
|
3723
|
+
[svgIcon]="button.overflowOptions.svgIcon"
|
|
3724
|
+
></kendo-icon-wrapper>
|
|
3725
|
+
}
|
|
3726
|
+
@if (button.overflowOptions.text) {
|
|
3727
|
+
<span class="k-menu-link-text">{{button.overflowOptions.text}}</span>
|
|
3728
|
+
}
|
|
3729
|
+
</span>
|
|
3730
|
+
</div>
|
|
3731
|
+
}
|
|
3651
3732
|
</ng-template>
|
|
3652
3733
|
<ng-template #sectionTemplate>
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3734
|
+
<kendo-buttongroup
|
|
3735
|
+
class="k-toolbar-button-group k-button-group-{{fillMode}}"
|
|
3736
|
+
#sectionButtonGroup
|
|
3737
|
+
[tabIndex]="-1"
|
|
3738
|
+
[selection]="selection"
|
|
3739
|
+
[disabled]="disabled"
|
|
3740
|
+
[width]="width"
|
|
3741
|
+
(navigate)="onNavigate($event)"
|
|
3742
|
+
(focus)="onFocus()"
|
|
3662
3743
|
>
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3744
|
+
@for (button of buttonComponents; track button) {
|
|
3745
|
+
<button
|
|
3746
|
+
kendoButton
|
|
3747
|
+
type="button"
|
|
3748
|
+
[ngStyle]="button.style"
|
|
3749
|
+
[ngClass]="button.className"
|
|
3750
|
+
[attr.title]="button.title"
|
|
3751
|
+
[disabled]="button.disabled"
|
|
3752
|
+
[size]="size"
|
|
3753
|
+
[togglable]="button.togglable"
|
|
3754
|
+
[selected]="button.selected"
|
|
3755
|
+
[attr.aria-pressed]="button.selected ? true : false"
|
|
3756
|
+
[fillMode]="button.fillMode"
|
|
3757
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
3758
|
+
[icon]="button.toolbarOptions.icon"
|
|
3759
|
+
[iconClass]="button.toolbarOptions.iconClass"
|
|
3760
|
+
[svgIcon]="button.toolbarOptions.svgIcon"
|
|
3761
|
+
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
3762
|
+
(click)="button.click.emit($event); onButtonClick($event)"
|
|
3763
|
+
(pointerdown)="button.pointerdown.emit($event)"
|
|
3764
|
+
(selectedChange)="selectedChangeHandler($event, button)"
|
|
3684
3765
|
>
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3766
|
+
{{ button.toolbarOptions.text }}
|
|
3767
|
+
</button>
|
|
3768
|
+
}
|
|
3769
|
+
</kendo-buttongroup>
|
|
3688
3770
|
</ng-template>
|
|
3689
|
-
|
|
3771
|
+
`,
|
|
3690
3772
|
standalone: true,
|
|
3691
|
-
imports: [ButtonGroupComponent,
|
|
3773
|
+
imports: [ButtonGroupComponent, ButtonComponent, NgStyle, NgClass, IconWrapperComponent]
|
|
3692
3774
|
}]
|
|
3693
3775
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: ToolBarComponent }], propDecorators: { disabled: [{
|
|
3694
3776
|
type: Input
|
|
@@ -4033,98 +4115,104 @@ class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
4033
4115
|
this.overflowOptions.text = this.showText === 'toolbar' || this.showText === 'never' ? undefined : this.text;
|
|
4034
4116
|
}
|
|
4035
4117
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
4036
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
4118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolBarDropDownButtonComponent, isStandalone: true, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "sectionDropDownButton", first: true, predicate: ["sectionDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
4037
4119
|
<ng-template #toolbarTemplate>
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4120
|
+
<kendo-dropdownbutton #toolbarDropDownButton
|
|
4121
|
+
[icon]="toolbarOptions.icon"
|
|
4122
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
4123
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
4124
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
4125
|
+
[arrowIcon]="arrowIcon"
|
|
4126
|
+
[buttonClass]="buttonClass"
|
|
4127
|
+
[disabled]="disabled"
|
|
4128
|
+
[size]="size"
|
|
4129
|
+
[tabIndex]="-1"
|
|
4130
|
+
[data]="data"
|
|
4131
|
+
[buttonAttributes]="{'title': title}"
|
|
4132
|
+
[textField]="textField"
|
|
4133
|
+
[popupSettings]="popupSettings"
|
|
4134
|
+
[fillMode]="fillMode"
|
|
4135
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
4136
|
+
(open)="open.emit($event)"
|
|
4137
|
+
(close)="close.emit($event)"
|
|
4138
|
+
(itemClick)="itemClick.emit($event)"
|
|
4057
4139
|
>
|
|
4058
|
-
|
|
4059
|
-
|
|
4140
|
+
{{ toolbarOptions.text }}
|
|
4141
|
+
</kendo-dropdownbutton>
|
|
4060
4142
|
</ng-template>
|
|
4061
|
-
|
|
4143
|
+
|
|
4062
4144
|
<ng-template #popupTemplate>
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4145
|
+
<div
|
|
4146
|
+
tabindex="-1"
|
|
4147
|
+
role="menuitem"
|
|
4148
|
+
class="k-item k-menu-item k-disabled"
|
|
4149
|
+
[ngClass]="buttonClass">
|
|
4150
|
+
<span
|
|
4151
|
+
[ngClass]="{'k-link': true, 'k-menu-link': true}"
|
|
4152
|
+
>
|
|
4153
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
4154
|
+
<kendo-icon-wrapper
|
|
4155
|
+
[name]="overflowOptions.icon"
|
|
4156
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
4157
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
4158
|
+
></kendo-icon-wrapper>
|
|
4159
|
+
}
|
|
4160
|
+
@if (overflowOptions.text) {
|
|
4161
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
4162
|
+
}
|
|
4163
|
+
</span>
|
|
4164
|
+
</div>
|
|
4165
|
+
@for (item of data; track item; let i = $index) {
|
|
4166
|
+
<div #listItem
|
|
4167
|
+
tabindex="-1"
|
|
4168
|
+
role="menuitem"
|
|
4169
|
+
class="k-item k-menu-item"
|
|
4170
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
4171
|
+
(click)="handleClick($event, item, i)">
|
|
4172
|
+
<span
|
|
4173
|
+
class="k-link k-menu-link"
|
|
4174
|
+
[ngClass]="item.cssClass"
|
|
4070
4175
|
>
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4176
|
+
@if (item.icon || item.iconClass || item.svgIcon) {
|
|
4177
|
+
<kendo-icon-wrapper
|
|
4178
|
+
[name]="item.icon"
|
|
4179
|
+
[customFontClass]="item.iconClass"
|
|
4180
|
+
[svgIcon]="item.svgIcon"
|
|
4181
|
+
></kendo-icon-wrapper>
|
|
4182
|
+
}
|
|
4183
|
+
@if (getText(item)) {
|
|
4184
|
+
<span class="k-menu-link-text">{{ getText(item) }}</span>
|
|
4185
|
+
}
|
|
4186
|
+
</span>
|
|
4079
4187
|
</div>
|
|
4080
|
-
|
|
4081
|
-
<div #listItem
|
|
4082
|
-
tabindex="-1"
|
|
4083
|
-
role="menuitem"
|
|
4084
|
-
class="k-item k-menu-item"
|
|
4085
|
-
[class.k-disabled]="disabled || item.disabled"
|
|
4086
|
-
(click)="handleClick($event, item, i)">
|
|
4087
|
-
<span
|
|
4088
|
-
class="k-link k-menu-link"
|
|
4089
|
-
[ngClass]="item.cssClass"
|
|
4090
|
-
>
|
|
4091
|
-
<kendo-icon-wrapper
|
|
4092
|
-
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
4093
|
-
[name]="item.icon"
|
|
4094
|
-
[customFontClass]="item.iconClass"
|
|
4095
|
-
[svgIcon]="item.svgIcon"
|
|
4096
|
-
></kendo-icon-wrapper>
|
|
4097
|
-
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
4098
|
-
</span>
|
|
4099
|
-
</div>
|
|
4100
|
-
</ng-container>
|
|
4188
|
+
}
|
|
4101
4189
|
</ng-template>
|
|
4102
|
-
|
|
4190
|
+
|
|
4103
4191
|
<ng-template #sectionTemplate>
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4192
|
+
<kendo-dropdownbutton #sectionDropDownButton
|
|
4193
|
+
[icon]="toolbarOptions.icon"
|
|
4194
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
4195
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
4196
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
4197
|
+
[arrowIcon]="arrowIcon"
|
|
4198
|
+
[buttonClass]="buttonClass"
|
|
4199
|
+
[disabled]="disabled"
|
|
4200
|
+
[size]="size"
|
|
4201
|
+
[tabIndex]="-1"
|
|
4202
|
+
[data]="data"
|
|
4203
|
+
[buttonAttributes]="{'title': title}"
|
|
4204
|
+
[textField]="textField"
|
|
4205
|
+
[popupSettings]="popupSettings"
|
|
4206
|
+
[fillMode]="fillMode"
|
|
4207
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
4208
|
+
(open)="open.emit($event)"
|
|
4209
|
+
(close)="close.emit($event)"
|
|
4210
|
+
(itemClick)="itemClick.emit($event)"
|
|
4123
4211
|
>
|
|
4124
|
-
|
|
4125
|
-
|
|
4212
|
+
{{ toolbarOptions.text }}
|
|
4213
|
+
</kendo-dropdownbutton>
|
|
4126
4214
|
</ng-template>
|
|
4127
|
-
|
|
4215
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { 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"] }] });
|
|
4128
4216
|
}
|
|
4129
4217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
4130
4218
|
type: Component,
|
|
@@ -4134,98 +4222,104 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
4134
4222
|
selector: 'kendo-toolbar-dropdownbutton',
|
|
4135
4223
|
template: `
|
|
4136
4224
|
<ng-template #toolbarTemplate>
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4225
|
+
<kendo-dropdownbutton #toolbarDropDownButton
|
|
4226
|
+
[icon]="toolbarOptions.icon"
|
|
4227
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
4228
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
4229
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
4230
|
+
[arrowIcon]="arrowIcon"
|
|
4231
|
+
[buttonClass]="buttonClass"
|
|
4232
|
+
[disabled]="disabled"
|
|
4233
|
+
[size]="size"
|
|
4234
|
+
[tabIndex]="-1"
|
|
4235
|
+
[data]="data"
|
|
4236
|
+
[buttonAttributes]="{'title': title}"
|
|
4237
|
+
[textField]="textField"
|
|
4238
|
+
[popupSettings]="popupSettings"
|
|
4239
|
+
[fillMode]="fillMode"
|
|
4240
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
4241
|
+
(open)="open.emit($event)"
|
|
4242
|
+
(close)="close.emit($event)"
|
|
4243
|
+
(itemClick)="itemClick.emit($event)"
|
|
4156
4244
|
>
|
|
4157
|
-
|
|
4158
|
-
|
|
4245
|
+
{{ toolbarOptions.text }}
|
|
4246
|
+
</kendo-dropdownbutton>
|
|
4159
4247
|
</ng-template>
|
|
4160
|
-
|
|
4248
|
+
|
|
4161
4249
|
<ng-template #popupTemplate>
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4250
|
+
<div
|
|
4251
|
+
tabindex="-1"
|
|
4252
|
+
role="menuitem"
|
|
4253
|
+
class="k-item k-menu-item k-disabled"
|
|
4254
|
+
[ngClass]="buttonClass">
|
|
4255
|
+
<span
|
|
4256
|
+
[ngClass]="{'k-link': true, 'k-menu-link': true}"
|
|
4257
|
+
>
|
|
4258
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
4259
|
+
<kendo-icon-wrapper
|
|
4260
|
+
[name]="overflowOptions.icon"
|
|
4261
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
4262
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
4263
|
+
></kendo-icon-wrapper>
|
|
4264
|
+
}
|
|
4265
|
+
@if (overflowOptions.text) {
|
|
4266
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
4267
|
+
}
|
|
4268
|
+
</span>
|
|
4269
|
+
</div>
|
|
4270
|
+
@for (item of data; track item; let i = $index) {
|
|
4271
|
+
<div #listItem
|
|
4272
|
+
tabindex="-1"
|
|
4273
|
+
role="menuitem"
|
|
4274
|
+
class="k-item k-menu-item"
|
|
4275
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
4276
|
+
(click)="handleClick($event, item, i)">
|
|
4277
|
+
<span
|
|
4278
|
+
class="k-link k-menu-link"
|
|
4279
|
+
[ngClass]="item.cssClass"
|
|
4169
4280
|
>
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4281
|
+
@if (item.icon || item.iconClass || item.svgIcon) {
|
|
4282
|
+
<kendo-icon-wrapper
|
|
4283
|
+
[name]="item.icon"
|
|
4284
|
+
[customFontClass]="item.iconClass"
|
|
4285
|
+
[svgIcon]="item.svgIcon"
|
|
4286
|
+
></kendo-icon-wrapper>
|
|
4287
|
+
}
|
|
4288
|
+
@if (getText(item)) {
|
|
4289
|
+
<span class="k-menu-link-text">{{ getText(item) }}</span>
|
|
4290
|
+
}
|
|
4291
|
+
</span>
|
|
4178
4292
|
</div>
|
|
4179
|
-
|
|
4180
|
-
<div #listItem
|
|
4181
|
-
tabindex="-1"
|
|
4182
|
-
role="menuitem"
|
|
4183
|
-
class="k-item k-menu-item"
|
|
4184
|
-
[class.k-disabled]="disabled || item.disabled"
|
|
4185
|
-
(click)="handleClick($event, item, i)">
|
|
4186
|
-
<span
|
|
4187
|
-
class="k-link k-menu-link"
|
|
4188
|
-
[ngClass]="item.cssClass"
|
|
4189
|
-
>
|
|
4190
|
-
<kendo-icon-wrapper
|
|
4191
|
-
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
4192
|
-
[name]="item.icon"
|
|
4193
|
-
[customFontClass]="item.iconClass"
|
|
4194
|
-
[svgIcon]="item.svgIcon"
|
|
4195
|
-
></kendo-icon-wrapper>
|
|
4196
|
-
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
4197
|
-
</span>
|
|
4198
|
-
</div>
|
|
4199
|
-
</ng-container>
|
|
4293
|
+
}
|
|
4200
4294
|
</ng-template>
|
|
4201
|
-
|
|
4295
|
+
|
|
4202
4296
|
<ng-template #sectionTemplate>
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4297
|
+
<kendo-dropdownbutton #sectionDropDownButton
|
|
4298
|
+
[icon]="toolbarOptions.icon"
|
|
4299
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
4300
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
4301
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
4302
|
+
[arrowIcon]="arrowIcon"
|
|
4303
|
+
[buttonClass]="buttonClass"
|
|
4304
|
+
[disabled]="disabled"
|
|
4305
|
+
[size]="size"
|
|
4306
|
+
[tabIndex]="-1"
|
|
4307
|
+
[data]="data"
|
|
4308
|
+
[buttonAttributes]="{'title': title}"
|
|
4309
|
+
[textField]="textField"
|
|
4310
|
+
[popupSettings]="popupSettings"
|
|
4311
|
+
[fillMode]="fillMode"
|
|
4312
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
4313
|
+
(open)="open.emit($event)"
|
|
4314
|
+
(close)="close.emit($event)"
|
|
4315
|
+
(itemClick)="itemClick.emit($event)"
|
|
4222
4316
|
>
|
|
4223
|
-
|
|
4224
|
-
|
|
4317
|
+
{{ toolbarOptions.text }}
|
|
4318
|
+
</kendo-dropdownbutton>
|
|
4225
4319
|
</ng-template>
|
|
4226
|
-
|
|
4320
|
+
`,
|
|
4227
4321
|
standalone: true,
|
|
4228
|
-
imports: [DropDownButtonComponent, NgClass,
|
|
4322
|
+
imports: [DropDownButtonComponent, NgClass, IconWrapperComponent]
|
|
4229
4323
|
}]
|
|
4230
4324
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: ToolBarComponent }], propDecorators: { arrowIcon: [{
|
|
4231
4325
|
type: Input
|
|
@@ -4598,105 +4692,111 @@ class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
4598
4692
|
this.overflowOptions.text = this.showText === 'toolbar' || this.showText === 'never' ? undefined : this.text;
|
|
4599
4693
|
}
|
|
4600
4694
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarSplitButtonComponent, deps: [{ token: ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
4601
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
4695
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolBarSplitButtonComponent, isStandalone: true, selector: "kendo-toolbar-splitbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", popupSettings: "popupSettings", fillMode: "fillMode", themeColor: "themeColor", look: "look", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", arrowButtonSvgIcon: "arrowButtonSvgIcon", textField: "textField", data: "data" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }], viewQueries: [{ propertyName: "toolbarSplitButton", first: true, predicate: ["toolbarSplitButton"], descendants: true }, { propertyName: "sectionSplitButton", first: true, predicate: ["sectionSplitButton"], descendants: true }, { propertyName: "overflowMainButton", first: true, predicate: ["overflowMainButton"], descendants: true, read: ElementRef }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarSplitButton"], usesInheritance: true, ngImport: i0, template: `
|
|
4602
4696
|
<ng-template #toolbarTemplate>
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4697
|
+
<kendo-splitbutton
|
|
4698
|
+
#toolbarSplitButton
|
|
4699
|
+
class="k-toolbar-split-button"
|
|
4700
|
+
[data]="data"
|
|
4701
|
+
[text]="toolbarOptions.text"
|
|
4702
|
+
[icon]="toolbarOptions.icon"
|
|
4703
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
4704
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
4705
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
4706
|
+
[buttonClass]="buttonClass"
|
|
4707
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
4708
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
4709
|
+
[arrowButtonSvgIcon]="arrowButtonSvgIcon"
|
|
4710
|
+
[disabled]="disabled"
|
|
4711
|
+
[size]="size"
|
|
4712
|
+
[tabIndex]="-1"
|
|
4713
|
+
[textField]="textField"
|
|
4714
|
+
[popupSettings]="popupSettings"
|
|
4715
|
+
[fillMode]="fillMode"
|
|
4716
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
4717
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
4718
|
+
(open)="open.emit($event)"
|
|
4719
|
+
(close)="close.emit($event)"
|
|
4720
|
+
(itemClick)="itemClick.emit($event)"
|
|
4721
|
+
></kendo-splitbutton>
|
|
4628
4722
|
</ng-template>
|
|
4629
4723
|
<ng-template #popupTemplate>
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4724
|
+
<div #overflowMainButton
|
|
4725
|
+
tabindex="-1"
|
|
4726
|
+
role="menuitem"
|
|
4727
|
+
class="k-item k-menu-item"
|
|
4728
|
+
[class.k-disabled]="disabled"
|
|
4729
|
+
[ngClass]="buttonClass"
|
|
4730
|
+
(click)="onMainButtonClick($event)">
|
|
4731
|
+
<span
|
|
4732
|
+
[ngClass]="{'k-link': true, 'k-menu-link': true}"
|
|
4733
|
+
>
|
|
4734
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
4735
|
+
<kendo-icon-wrapper
|
|
4736
|
+
[name]="overflowOptions.icon"
|
|
4737
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
4738
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
4739
|
+
>
|
|
4740
|
+
</kendo-icon-wrapper>
|
|
4741
|
+
}
|
|
4742
|
+
@if (overflowOptions.text) {
|
|
4743
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
4744
|
+
}
|
|
4745
|
+
</span>
|
|
4746
|
+
</div>
|
|
4747
|
+
@for (item of data; track item; let i = $index) {
|
|
4651
4748
|
<div #listItem
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4749
|
+
tabindex="-1"
|
|
4750
|
+
role="menuitem"
|
|
4751
|
+
class="k-item k-menu-item"
|
|
4752
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
4753
|
+
(click)="handleClick($event, item, i)">
|
|
4754
|
+
<span
|
|
4755
|
+
class="k-link k-menu-link"
|
|
4659
4756
|
>
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4757
|
+
@if (item.icon || item.iconClass || item.svgIcon) {
|
|
4758
|
+
<kendo-icon-wrapper
|
|
4759
|
+
[name]="item.icon"
|
|
4760
|
+
[customFontClass]="item.iconClass"
|
|
4761
|
+
[svgIcon]="item.svgIcon"
|
|
4665
4762
|
>
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4763
|
+
</kendo-icon-wrapper>
|
|
4764
|
+
}
|
|
4765
|
+
@if (getText(item)) {
|
|
4766
|
+
<span class="k-menu-link-text">{{ getText(item) }}</span>
|
|
4767
|
+
}
|
|
4768
|
+
</span>
|
|
4669
4769
|
</div>
|
|
4670
|
-
|
|
4770
|
+
}
|
|
4671
4771
|
</ng-template>
|
|
4672
4772
|
<ng-template #sectionTemplate>
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4773
|
+
<kendo-splitbutton
|
|
4774
|
+
#sectionSplitButton
|
|
4775
|
+
class="k-toolbar-split-button"
|
|
4776
|
+
[data]="data"
|
|
4777
|
+
[text]="toolbarOptions.text"
|
|
4778
|
+
[icon]="toolbarOptions.icon"
|
|
4779
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
4780
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
4781
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
4782
|
+
[buttonClass]="buttonClass"
|
|
4783
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
4784
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
4785
|
+
[arrowButtonSvgIcon]="arrowButtonSvgIcon"
|
|
4786
|
+
[disabled]="disabled"
|
|
4787
|
+
[size]="size"
|
|
4788
|
+
[tabIndex]="-1"
|
|
4789
|
+
[textField]="textField"
|
|
4790
|
+
[popupSettings]="popupSettings"
|
|
4791
|
+
[fillMode]="fillMode"
|
|
4792
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
4793
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
4794
|
+
(open)="open.emit($event)"
|
|
4795
|
+
(close)="close.emit($event)"
|
|
4796
|
+
(itemClick)="itemClick.emit($event)"
|
|
4797
|
+
></kendo-splitbutton>
|
|
4698
4798
|
</ng-template>
|
|
4699
|
-
|
|
4799
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon", "buttonAttributes"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { 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"] }] });
|
|
4700
4800
|
}
|
|
4701
4801
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
|
|
4702
4802
|
type: Component,
|
|
@@ -4706,105 +4806,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
4706
4806
|
selector: 'kendo-toolbar-splitbutton',
|
|
4707
4807
|
template: `
|
|
4708
4808
|
<ng-template #toolbarTemplate>
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4809
|
+
<kendo-splitbutton
|
|
4810
|
+
#toolbarSplitButton
|
|
4811
|
+
class="k-toolbar-split-button"
|
|
4812
|
+
[data]="data"
|
|
4813
|
+
[text]="toolbarOptions.text"
|
|
4814
|
+
[icon]="toolbarOptions.icon"
|
|
4815
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
4816
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
4817
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
4818
|
+
[buttonClass]="buttonClass"
|
|
4819
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
4820
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
4821
|
+
[arrowButtonSvgIcon]="arrowButtonSvgIcon"
|
|
4822
|
+
[disabled]="disabled"
|
|
4823
|
+
[size]="size"
|
|
4824
|
+
[tabIndex]="-1"
|
|
4825
|
+
[textField]="textField"
|
|
4826
|
+
[popupSettings]="popupSettings"
|
|
4827
|
+
[fillMode]="fillMode"
|
|
4828
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
4829
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
4830
|
+
(open)="open.emit($event)"
|
|
4831
|
+
(close)="close.emit($event)"
|
|
4832
|
+
(itemClick)="itemClick.emit($event)"
|
|
4833
|
+
></kendo-splitbutton>
|
|
4734
4834
|
</ng-template>
|
|
4735
4835
|
<ng-template #popupTemplate>
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4836
|
+
<div #overflowMainButton
|
|
4837
|
+
tabindex="-1"
|
|
4838
|
+
role="menuitem"
|
|
4839
|
+
class="k-item k-menu-item"
|
|
4840
|
+
[class.k-disabled]="disabled"
|
|
4841
|
+
[ngClass]="buttonClass"
|
|
4842
|
+
(click)="onMainButtonClick($event)">
|
|
4843
|
+
<span
|
|
4844
|
+
[ngClass]="{'k-link': true, 'k-menu-link': true}"
|
|
4845
|
+
>
|
|
4846
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
4847
|
+
<kendo-icon-wrapper
|
|
4848
|
+
[name]="overflowOptions.icon"
|
|
4849
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
4850
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
4851
|
+
>
|
|
4852
|
+
</kendo-icon-wrapper>
|
|
4853
|
+
}
|
|
4854
|
+
@if (overflowOptions.text) {
|
|
4855
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
4856
|
+
}
|
|
4857
|
+
</span>
|
|
4858
|
+
</div>
|
|
4859
|
+
@for (item of data; track item; let i = $index) {
|
|
4757
4860
|
<div #listItem
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4861
|
+
tabindex="-1"
|
|
4862
|
+
role="menuitem"
|
|
4863
|
+
class="k-item k-menu-item"
|
|
4864
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
4865
|
+
(click)="handleClick($event, item, i)">
|
|
4866
|
+
<span
|
|
4867
|
+
class="k-link k-menu-link"
|
|
4765
4868
|
>
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4869
|
+
@if (item.icon || item.iconClass || item.svgIcon) {
|
|
4870
|
+
<kendo-icon-wrapper
|
|
4871
|
+
[name]="item.icon"
|
|
4872
|
+
[customFontClass]="item.iconClass"
|
|
4873
|
+
[svgIcon]="item.svgIcon"
|
|
4771
4874
|
>
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4875
|
+
</kendo-icon-wrapper>
|
|
4876
|
+
}
|
|
4877
|
+
@if (getText(item)) {
|
|
4878
|
+
<span class="k-menu-link-text">{{ getText(item) }}</span>
|
|
4879
|
+
}
|
|
4880
|
+
</span>
|
|
4775
4881
|
</div>
|
|
4776
|
-
|
|
4882
|
+
}
|
|
4777
4883
|
</ng-template>
|
|
4778
4884
|
<ng-template #sectionTemplate>
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4885
|
+
<kendo-splitbutton
|
|
4886
|
+
#sectionSplitButton
|
|
4887
|
+
class="k-toolbar-split-button"
|
|
4888
|
+
[data]="data"
|
|
4889
|
+
[text]="toolbarOptions.text"
|
|
4890
|
+
[icon]="toolbarOptions.icon"
|
|
4891
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
4892
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
4893
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
4894
|
+
[buttonClass]="buttonClass"
|
|
4895
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
4896
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
4897
|
+
[arrowButtonSvgIcon]="arrowButtonSvgIcon"
|
|
4898
|
+
[disabled]="disabled"
|
|
4899
|
+
[size]="size"
|
|
4900
|
+
[tabIndex]="-1"
|
|
4901
|
+
[textField]="textField"
|
|
4902
|
+
[popupSettings]="popupSettings"
|
|
4903
|
+
[fillMode]="fillMode"
|
|
4904
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
4905
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
4906
|
+
(open)="open.emit($event)"
|
|
4907
|
+
(close)="close.emit($event)"
|
|
4908
|
+
(itemClick)="itemClick.emit($event)"
|
|
4909
|
+
></kendo-splitbutton>
|
|
4804
4910
|
</ng-template>
|
|
4805
|
-
|
|
4911
|
+
`,
|
|
4806
4912
|
standalone: true,
|
|
4807
|
-
imports: [SplitButtonComponent, NgClass,
|
|
4913
|
+
imports: [SplitButtonComponent, NgClass, IconWrapperComponent]
|
|
4808
4914
|
}]
|
|
4809
4915
|
}], ctorParameters: () => [{ type: ToolBarComponent }], propDecorators: { showText: [{
|
|
4810
4916
|
type: Input
|