@progress/kendo-angular-navigation 19.0.0-develop.1 → 19.0.0-develop.2

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.
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
- import { Component, HostBinding, Input, Directive, Optional, EventEmitter, Output, ViewChild, ContentChild, ViewChildren, isDevMode, ElementRef, NgModule } from '@angular/core';
6
+ import { Component, HostBinding, Input, Directive, Optional, EventEmitter, Output, ViewChild, ContentChildren, forwardRef, ContentChild, Host, ViewChildren, isDevMode, ElementRef, NgModule } from '@angular/core';
7
7
  import * as i1 from '@progress/kendo-angular-l10n';
8
8
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
9
  import { validatePackage } from '@progress/kendo-licensing';
@@ -14,6 +14,7 @@ import * as i2 from '@angular/animations';
14
14
  import { style, animate } from '@angular/animations';
15
15
  import { take, filter, map, startWith, share } from 'rxjs/operators';
16
16
  import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
17
+ import { ButtonDirective } from '@progress/kendo-angular-buttons';
17
18
  import { chevronRightIcon, chevronLeftIcon } from '@progress/kendo-svg-icons';
18
19
 
19
20
  /**
@@ -24,8 +25,8 @@ const packageMetadata = {
24
25
  productName: 'Kendo UI for Angular',
25
26
  productCode: 'KENDOUIANGULAR',
26
27
  productCodes: ['KENDOUIANGULAR'],
27
- publishDate: 1745317279,
28
- version: '19.0.0-develop.1',
28
+ publishDate: 1745321488,
29
+ version: '19.0.0-develop.2',
29
30
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
30
31
  };
31
32
 
@@ -696,6 +697,10 @@ class ActionSheetComponent {
696
697
  localizationService;
697
698
  builder;
698
699
  cdr;
700
+ /**
701
+ * @hidden
702
+ */
703
+ currentView = 1;
699
704
  /**
700
705
  * @hidden
701
706
  */
@@ -706,6 +711,24 @@ class ActionSheetComponent {
706
711
  * @hidden
707
712
  */
708
713
  direction;
714
+ /**
715
+ * Specifies the ActionSheet action buttons.
716
+ */
717
+ actions;
718
+ /**
719
+ * Specifies the layout of the action buttons.
720
+ * By default, the action buttons are rendered horizontally and stretched.
721
+ */
722
+ actionsLayout = {
723
+ orientation: 'horizontal',
724
+ alignment: 'stretched'
725
+ };
726
+ /**
727
+ * Specifies if the ActionSheet is closed on overlay click.
728
+ *
729
+ * @default false
730
+ */
731
+ overlayClickClose = false;
709
732
  /**
710
733
  * Specifies the text that is rendered as title.
711
734
  */
@@ -723,6 +746,11 @@ class ActionSheetComponent {
723
746
  * Supports the type of values that are supported by [ngClass](link:site.data.urls.angular['ngclassapi']).
724
747
  */
725
748
  cssClass;
749
+ /**
750
+ * The inline styles that will be rendered on the inner ActionSheet element.
751
+ * Supports the type of values that are supported by [ngStyle](link:site.data.urls.angular['ngstyleapi']).
752
+ */
753
+ cssStyle;
726
754
  /**
727
755
  * Configures the ActionSheet opening and closing animations ([see example]({% slug animations_actionsheet %})).
728
756
  * By default the animations are turned off. The default animations' duration is `300ms`.
@@ -748,6 +776,10 @@ class ActionSheetComponent {
748
776
  * Used to provide a two-way binding for the `expanded` property.
749
777
  */
750
778
  expandedChange = new EventEmitter();
779
+ /**
780
+ * Fires when any of the ActionSheet action buttons is clicked.
781
+ */
782
+ action = new EventEmitter();
751
783
  /**
752
784
  * Fires when the ActionSheet is expanded and its animation is complete.
753
785
  */
@@ -768,6 +800,10 @@ class ActionSheetComponent {
768
800
  * @hidden
769
801
  */
770
802
  childContainer;
803
+ /**
804
+ * @hidden
805
+ */
806
+ actionSheetViews;
771
807
  /**
772
808
  * @hidden
773
809
  */
@@ -824,6 +860,24 @@ class ActionSheetComponent {
824
860
  this.player.destroy();
825
861
  }
826
862
  }
863
+ /**
864
+ * @hidden
865
+ * Navigates to the next view.
866
+ */
867
+ nextView() {
868
+ if (this.currentView < this.actionSheetViews.length) {
869
+ this.currentView += 1;
870
+ }
871
+ }
872
+ /**
873
+ * @hidden
874
+ * Navigates to the previous view.
875
+ */
876
+ prevView() {
877
+ if (this.currentView > 1) {
878
+ this.currentView -= 1;
879
+ }
880
+ }
827
881
  /**
828
882
  * Toggles the visibility of the ActionSheet.
829
883
  *
@@ -850,6 +904,18 @@ class ActionSheetComponent {
850
904
  this[current ? 'expand' : 'collapse'].emit();
851
905
  }
852
906
  }
907
+ /**
908
+ * @hidden
909
+ */
910
+ get orientationClass() {
911
+ return this.actionsLayout.orientation ? `k-actions-${this.actionsLayout.orientation}` : '';
912
+ }
913
+ /**
914
+ * @hidden
915
+ */
916
+ get alignmentClass() {
917
+ return this.actionsLayout.alignment ? `k-actions-${this.actionsLayout.alignment}` : '';
918
+ }
853
919
  /**
854
920
  * @hidden
855
921
  */
@@ -873,6 +939,9 @@ class ActionSheetComponent {
873
939
  */
874
940
  onOverlayClick() {
875
941
  this.overlayClick.emit();
942
+ if (this.overlayClickClose) {
943
+ this.toggle(false);
944
+ }
876
945
  }
877
946
  /**
878
947
  * @hidden
@@ -977,80 +1046,106 @@ class ActionSheetComponent {
977
1046
  this.player.play();
978
1047
  }
979
1048
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i2.AnimationBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
980
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionSheetComponent, isStandalone: true, selector: "kendo-actionsheet", inputs: { title: "title", subtitle: "subtitle", items: "items", cssClass: "cssClass", animation: "animation", expanded: "expanded", titleId: "titleId" }, outputs: { expandedChange: "expandedChange", expand: "expand", collapse: "collapse", itemClick: "itemClick", overlayClick: "overlayClick" }, host: { properties: { "class.k-actionsheet-container": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
1049
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionSheetComponent, isStandalone: true, selector: "kendo-actionsheet", inputs: { actions: "actions", actionsLayout: "actionsLayout", overlayClickClose: "overlayClickClose", title: "title", subtitle: "subtitle", items: "items", cssClass: "cssClass", cssStyle: "cssStyle", animation: "animation", expanded: "expanded", titleId: "titleId" }, outputs: { expandedChange: "expandedChange", action: "action", expand: "expand", collapse: "collapse", itemClick: "itemClick", overlayClick: "overlayClick" }, host: { properties: { "class.k-actionsheet-container": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
981
1050
  LocalizationService,
982
1051
  {
983
1052
  provide: L10N_PREFIX,
984
1053
  useValue: 'kendo.actionsheet.component'
985
1054
  }
986
- ], queries: [{ propertyName: "actionSheetTemplate", first: true, predicate: ActionSheetTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ActionSheetHeaderTemplateDirective, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ActionSheetContentTemplateDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ActionSheetItemTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ActionSheetFooterTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "childContainer", first: true, predicate: ["childContainer"], descendants: true }], exportAs: ["kendoActionSheet"], usesOnChanges: true, ngImport: i0, template: `
1055
+ ], queries: [{ propertyName: "actionSheetTemplate", first: true, predicate: ActionSheetTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ActionSheetHeaderTemplateDirective, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ActionSheetContentTemplateDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ActionSheetItemTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ActionSheetFooterTemplateDirective, descendants: true }, { propertyName: "actionSheetViews", predicate: i0.forwardRef(function () { return ActionSheetViewComponent; }) }], viewQueries: [{ propertyName: "childContainer", first: true, predicate: ["childContainer"], descendants: true }], exportAs: ["kendoActionSheet"], usesOnChanges: true, ngImport: i0, template: `
987
1056
  <ng-container *ngIf="expanded">
988
1057
  <div class="k-overlay" (click)="onOverlayClick()"></div>
989
1058
  <div class="k-animation-container k-animation-container-shown">
990
1059
  <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
991
- <div class="k-actionsheet k-actionsheet-bottom"
1060
+ <div
1061
+ class="k-actionsheet k-actionsheet-bottom"
992
1062
  [ngClass]="cssClass"
1063
+ [ngStyle]="cssStyle"
993
1064
  role="dialog"
994
1065
  aria-modal="true"
995
- [attr.aria-labelledby]="titleId">
996
-
997
- <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
998
- [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
999
- </ng-template>
1000
-
1001
- <ng-template #defaultTemplate>
1002
- <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
1003
- <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
1004
- [ngTemplateOutlet]="headerTemplate?.templateRef">
1005
- </ng-template>
1006
-
1007
- <ng-template #defaultHeaderTemplate>
1008
- <div class="k-actionsheet-titlebar-group k-hbox">
1009
- <div class="k-actionsheet-title" [id]="titleId">
1010
- <div *ngIf="title" class="k-text-center">{{title}}</div>
1011
- <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
1066
+ [attr.aria-labelledby]="titleId"
1067
+ [style.--kendo-actionsheet-view-current]="actionSheetViews?.length > 0 ? currentView : null"
1068
+ >
1069
+ <ng-content *ngIf="actionSheetViews?.length > 0" select="kendo-actionsheet-view"></ng-content>
1070
+
1071
+ <div *ngIf="actionSheetViews?.length === 0" class="k-actionsheet-view">
1072
+ <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
1073
+ [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
1074
+ </ng-template>
1075
+
1076
+ <ng-template #defaultTemplate>
1077
+ <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
1078
+ <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
1079
+ [ngTemplateOutlet]="headerTemplate?.templateRef">
1080
+ </ng-template>
1081
+
1082
+ <ng-template #defaultHeaderTemplate>
1083
+ <div class="k-actionsheet-titlebar-group k-hbox">
1084
+ <div class="k-actionsheet-title" [id]="titleId">
1085
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
1086
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
1087
+ </div>
1088
+ </div>
1089
+ </ng-template>
1090
+ </div>
1091
+
1092
+ <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
1093
+ <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
1094
+ [ngTemplateOutlet]="contentTemplate?.templateRef">
1095
+ </ng-template>
1096
+ <ng-template #defaultContentTemplate>
1097
+ <div *ngIf="topGroupItems" kendoActionSheetList
1098
+ class="k-list-ul"
1099
+ role="group"
1100
+ [groupItems]="topGroupItems"
1101
+ [allItems]="items"
1102
+ [itemTemplate]="itemTemplate?.templateRef"
1103
+ (itemClick)="onItemClick($event)">
1012
1104
  </div>
1013
- </div>
1014
- </ng-template>
1015
- </div>
1016
-
1017
- <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
1018
- <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
1019
- [ngTemplateOutlet]="contentTemplate?.templateRef">
1020
- </ng-template>
1021
- <ng-template #defaultContentTemplate>
1022
- <div *ngIf="topGroupItems" kendoActionSheetList
1023
- class="k-list-ul"
1024
- role="group"
1025
- [groupItems]="topGroupItems"
1026
- [allItems]="items"
1027
- [itemTemplate]="itemTemplate?.templateRef"
1028
- (itemClick)="onItemClick($event)">
1029
- </div>
1030
-
1031
- <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
1032
-
1033
- <div *ngIf="bottomGroupItems" kendoActionSheetList
1034
- class="k-list-ul"
1035
- role="group"
1036
- [groupItems]="bottomGroupItems"
1037
- [allItems]="items"
1038
- [itemTemplate]="itemTemplate?.templateRef"
1039
- (itemClick)="onItemClick($event)">
1040
- </div>
1041
- </ng-template>
1042
- </div>
1043
- <div *ngIf="footerTemplate" class="k-actionsheet-footer">
1044
- <ng-template
1045
- [ngTemplateOutlet]="footerTemplate?.templateRef">
1046
- </ng-template>
1047
- </div>
1048
- </ng-template>
1105
+
1106
+ <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
1107
+
1108
+ <div *ngIf="bottomGroupItems" kendoActionSheetList
1109
+ class="k-list-ul"
1110
+ role="group"
1111
+ [groupItems]="bottomGroupItems"
1112
+ [allItems]="items"
1113
+ [itemTemplate]="itemTemplate?.templateRef"
1114
+ (itemClick)="onItemClick($event)">
1115
+ </div>
1116
+ </ng-template>
1117
+ </div>
1118
+ <div *ngIf="footerTemplate || actions" [ngClass]="[orientationClass, alignmentClass, 'k-actions', 'k-actionsheet-footer']">
1119
+ <ng-template
1120
+ *ngIf="footerTemplate"
1121
+ [ngTemplateOutlet]="footerTemplate?.templateRef">
1122
+ </ng-template>
1123
+
1124
+ <ng-container *ngIf="!footerTemplate && actions">
1125
+ <button
1126
+ *ngFor="let actionButton of actions"
1127
+ kendoButton
1128
+ type="button"
1129
+ [icon]="actionButton.icon"
1130
+ [title]="actionButton.title"
1131
+ [svgIcon]="actionButton.svgIcon"
1132
+ [themeColor]="actionButton.themeColor"
1133
+ [fillMode]="actionButton.fillMode"
1134
+ [size]="actionButton.size"
1135
+ [attr.aria-label]="actionButton.text"
1136
+ (click)="action.emit(actionButton)"
1137
+ >
1138
+ {{ actionButton.text }}
1139
+ </button>
1140
+ </ng-container>
1141
+ </div>
1142
+ </ng-template>
1143
+ </div>
1049
1144
  </div>
1050
1145
  </div>
1051
1146
  </div>
1052
1147
  </ng-container>
1053
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: ["groupItems", "allItems", "itemTemplate"], outputs: ["itemClick"] }] });
1148
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: ["groupItems", "allItems", "itemTemplate"], outputs: ["itemClick"] }, { kind: "component", type: ButtonDirective, 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"] }] });
1054
1149
  }
1055
1150
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetComponent, decorators: [{
1056
1151
  type: Component,
@@ -1062,64 +1157,90 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1062
1157
  <div class="k-overlay" (click)="onOverlayClick()"></div>
1063
1158
  <div class="k-animation-container k-animation-container-shown">
1064
1159
  <div #childContainer class="k-child-animation-container" [style]="'bottom: 0px; width: 100%;'">
1065
- <div class="k-actionsheet k-actionsheet-bottom"
1160
+ <div
1161
+ class="k-actionsheet k-actionsheet-bottom"
1066
1162
  [ngClass]="cssClass"
1163
+ [ngStyle]="cssStyle"
1067
1164
  role="dialog"
1068
1165
  aria-modal="true"
1069
- [attr.aria-labelledby]="titleId">
1070
-
1071
- <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
1072
- [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
1073
- </ng-template>
1074
-
1075
- <ng-template #defaultTemplate>
1076
- <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
1077
- <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
1078
- [ngTemplateOutlet]="headerTemplate?.templateRef">
1079
- </ng-template>
1080
-
1081
- <ng-template #defaultHeaderTemplate>
1082
- <div class="k-actionsheet-titlebar-group k-hbox">
1083
- <div class="k-actionsheet-title" [id]="titleId">
1084
- <div *ngIf="title" class="k-text-center">{{title}}</div>
1085
- <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
1166
+ [attr.aria-labelledby]="titleId"
1167
+ [style.--kendo-actionsheet-view-current]="actionSheetViews?.length > 0 ? currentView : null"
1168
+ >
1169
+ <ng-content *ngIf="actionSheetViews?.length > 0" select="kendo-actionsheet-view"></ng-content>
1170
+
1171
+ <div *ngIf="actionSheetViews?.length === 0" class="k-actionsheet-view">
1172
+ <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
1173
+ [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
1174
+ </ng-template>
1175
+
1176
+ <ng-template #defaultTemplate>
1177
+ <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
1178
+ <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate"
1179
+ [ngTemplateOutlet]="headerTemplate?.templateRef">
1180
+ </ng-template>
1181
+
1182
+ <ng-template #defaultHeaderTemplate>
1183
+ <div class="k-actionsheet-titlebar-group k-hbox">
1184
+ <div class="k-actionsheet-title" [id]="titleId">
1185
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
1186
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
1187
+ </div>
1188
+ </div>
1189
+ </ng-template>
1190
+ </div>
1191
+
1192
+ <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
1193
+ <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
1194
+ [ngTemplateOutlet]="contentTemplate?.templateRef">
1195
+ </ng-template>
1196
+ <ng-template #defaultContentTemplate>
1197
+ <div *ngIf="topGroupItems" kendoActionSheetList
1198
+ class="k-list-ul"
1199
+ role="group"
1200
+ [groupItems]="topGroupItems"
1201
+ [allItems]="items"
1202
+ [itemTemplate]="itemTemplate?.templateRef"
1203
+ (itemClick)="onItemClick($event)">
1086
1204
  </div>
1087
- </div>
1088
- </ng-template>
1089
- </div>
1090
-
1091
- <div *ngIf="items || contentTemplate" class="k-actionsheet-content">
1092
- <ng-template *ngIf="contentTemplate; else defaultContentTemplate"
1093
- [ngTemplateOutlet]="contentTemplate?.templateRef">
1094
- </ng-template>
1095
- <ng-template #defaultContentTemplate>
1096
- <div *ngIf="topGroupItems" kendoActionSheetList
1097
- class="k-list-ul"
1098
- role="group"
1099
- [groupItems]="topGroupItems"
1100
- [allItems]="items"
1101
- [itemTemplate]="itemTemplate?.templateRef"
1102
- (itemClick)="onItemClick($event)">
1103
- </div>
1104
-
1105
- <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
1106
-
1107
- <div *ngIf="bottomGroupItems" kendoActionSheetList
1108
- class="k-list-ul"
1109
- role="group"
1110
- [groupItems]="bottomGroupItems"
1111
- [allItems]="items"
1112
- [itemTemplate]="itemTemplate?.templateRef"
1113
- (itemClick)="onItemClick($event)">
1114
- </div>
1115
- </ng-template>
1116
- </div>
1117
- <div *ngIf="footerTemplate" class="k-actionsheet-footer">
1118
- <ng-template
1119
- [ngTemplateOutlet]="footerTemplate?.templateRef">
1120
- </ng-template>
1121
- </div>
1122
- </ng-template>
1205
+
1206
+ <hr *ngIf="shouldRenderSeparator" class="k-hr"/>
1207
+
1208
+ <div *ngIf="bottomGroupItems" kendoActionSheetList
1209
+ class="k-list-ul"
1210
+ role="group"
1211
+ [groupItems]="bottomGroupItems"
1212
+ [allItems]="items"
1213
+ [itemTemplate]="itemTemplate?.templateRef"
1214
+ (itemClick)="onItemClick($event)">
1215
+ </div>
1216
+ </ng-template>
1217
+ </div>
1218
+ <div *ngIf="footerTemplate || actions" [ngClass]="[orientationClass, alignmentClass, 'k-actions', 'k-actionsheet-footer']">
1219
+ <ng-template
1220
+ *ngIf="footerTemplate"
1221
+ [ngTemplateOutlet]="footerTemplate?.templateRef">
1222
+ </ng-template>
1223
+
1224
+ <ng-container *ngIf="!footerTemplate && actions">
1225
+ <button
1226
+ *ngFor="let actionButton of actions"
1227
+ kendoButton
1228
+ type="button"
1229
+ [icon]="actionButton.icon"
1230
+ [title]="actionButton.title"
1231
+ [svgIcon]="actionButton.svgIcon"
1232
+ [themeColor]="actionButton.themeColor"
1233
+ [fillMode]="actionButton.fillMode"
1234
+ [size]="actionButton.size"
1235
+ [attr.aria-label]="actionButton.text"
1236
+ (click)="action.emit(actionButton)"
1237
+ >
1238
+ {{ actionButton.text }}
1239
+ </button>
1240
+ </ng-container>
1241
+ </div>
1242
+ </ng-template>
1243
+ </div>
1123
1244
  </div>
1124
1245
  </div>
1125
1246
  </div>
@@ -1133,7 +1254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1133
1254
  }
1134
1255
  ],
1135
1256
  standalone: true,
1136
- imports: [NgIf, NgClass, NgTemplateOutlet, ActionSheetListComponent]
1257
+ imports: [NgIf, NgFor, NgStyle, NgClass, NgTemplateOutlet, ActionSheetListComponent, ButtonDirective]
1137
1258
  }]
1138
1259
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.LocalizationService }, { type: i2.AnimationBuilder }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
1139
1260
  type: HostBinding,
@@ -1141,6 +1262,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1141
1262
  }], direction: [{
1142
1263
  type: HostBinding,
1143
1264
  args: ['attr.dir']
1265
+ }], actions: [{
1266
+ type: Input
1267
+ }], actionsLayout: [{
1268
+ type: Input
1269
+ }], overlayClickClose: [{
1270
+ type: Input
1144
1271
  }], title: [{
1145
1272
  type: Input
1146
1273
  }], subtitle: [{
@@ -1149,6 +1276,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1149
1276
  type: Input
1150
1277
  }], cssClass: [{
1151
1278
  type: Input
1279
+ }], cssStyle: [{
1280
+ type: Input
1152
1281
  }], animation: [{
1153
1282
  type: Input
1154
1283
  }], expanded: [{
@@ -1157,6 +1286,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1157
1286
  type: Input
1158
1287
  }], expandedChange: [{
1159
1288
  type: Output
1289
+ }], action: [{
1290
+ type: Output
1160
1291
  }], expand: [{
1161
1292
  type: Output
1162
1293
  }], collapse: [{
@@ -1168,6 +1299,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1168
1299
  }], childContainer: [{
1169
1300
  type: ViewChild,
1170
1301
  args: ['childContainer']
1302
+ }], actionSheetViews: [{
1303
+ type: ContentChildren,
1304
+ args: [forwardRef(() => ActionSheetViewComponent)]
1171
1305
  }], actionSheetTemplate: [{
1172
1306
  type: ContentChild,
1173
1307
  args: [ActionSheetTemplateDirective]
@@ -1185,6 +1319,141 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1185
1319
  args: [ActionSheetFooterTemplateDirective]
1186
1320
  }] } });
1187
1321
 
1322
+ /**
1323
+ * @hidden
1324
+ *
1325
+ * Represents the [Kendo UI ActionSheetView component for Angular].
1326
+ * Used to display multiple views.
1327
+ */
1328
+ class ActionSheetViewComponent {
1329
+ actionSheet;
1330
+ title;
1331
+ subtitle;
1332
+ titleId = getId('k-actionsheet-title');
1333
+ hostClass = true;
1334
+ animated = true;
1335
+ transitionDuration = '500ms';
1336
+ transitionProperty = 'transform';
1337
+ headerTemplate;
1338
+ contentTemplate;
1339
+ footerTemplate;
1340
+ actionSheetTemplate;
1341
+ constructor(actionSheet) {
1342
+ this.actionSheet = actionSheet;
1343
+ }
1344
+ get orientationClass() {
1345
+ return this.actionSheet?.orientationClass;
1346
+ }
1347
+ get alignmentClass() {
1348
+ return this.actionSheet?.alignmentClass;
1349
+ }
1350
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetViewComponent, deps: [{ token: ActionSheetComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1351
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionSheetViewComponent, isStandalone: true, selector: "kendo-actionsheet-view", inputs: { title: "title", subtitle: "subtitle", titleId: "titleId" }, host: { properties: { "class.k-actionsheet-view": "this.hostClass", "class.k-actionsheet-view-animated": "this.animated", "style.transition-duration": "this.transitionDuration", "style.transition-property": "this.transitionProperty" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ActionSheetHeaderTemplateDirective, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ActionSheetContentTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ActionSheetFooterTemplateDirective, descendants: true }, { propertyName: "actionSheetTemplate", first: true, predicate: ActionSheetTemplateDirective, descendants: true }], ngImport: i0, template: `
1352
+ <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
1353
+ [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
1354
+ </ng-template>
1355
+
1356
+ <ng-template #defaultTemplate>
1357
+ <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
1358
+ <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate" [ngTemplateOutlet]="headerTemplate.templateRef">
1359
+ </ng-template>
1360
+
1361
+ <ng-template #defaultHeaderTemplate>
1362
+ <div class="k-actionsheet-titlebar-group k-hbox">
1363
+ <div class="k-actionsheet-title" [id]="titleId">
1364
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
1365
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
1366
+ </div>
1367
+ </div>
1368
+ </ng-template>
1369
+ </div>
1370
+
1371
+ <div *ngIf="contentTemplate" class="k-actionsheet-content">
1372
+ <ng-template [ngTemplateOutlet]="contentTemplate.templateRef">
1373
+ </ng-template>
1374
+ </div>
1375
+
1376
+ <div *ngIf="footerTemplate" [ngClass]="[orientationClass, alignmentClass, 'k-actions', 'k-actionsheet-footer']">
1377
+ <ng-template [ngTemplateOutlet]="footerTemplate.templateRef">
1378
+ </ng-template>
1379
+ </div>
1380
+ </ng-template>
1381
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
1382
+ }
1383
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetViewComponent, decorators: [{
1384
+ type: Component,
1385
+ args: [{
1386
+ selector: 'kendo-actionsheet-view',
1387
+ template: `
1388
+ <ng-template *ngIf="actionSheetTemplate; else defaultTemplate"
1389
+ [ngTemplateOutlet]="actionSheetTemplate?.templateRef">
1390
+ </ng-template>
1391
+
1392
+ <ng-template #defaultTemplate>
1393
+ <div *ngIf="title || subtitle || headerTemplate" class="k-actionsheet-titlebar">
1394
+ <ng-template *ngIf="headerTemplate; else defaultHeaderTemplate" [ngTemplateOutlet]="headerTemplate.templateRef">
1395
+ </ng-template>
1396
+
1397
+ <ng-template #defaultHeaderTemplate>
1398
+ <div class="k-actionsheet-titlebar-group k-hbox">
1399
+ <div class="k-actionsheet-title" [id]="titleId">
1400
+ <div *ngIf="title" class="k-text-center">{{title}}</div>
1401
+ <div *ngIf="subtitle" class="k-actionsheet-subtitle k-text-center">{{subtitle}}</div>
1402
+ </div>
1403
+ </div>
1404
+ </ng-template>
1405
+ </div>
1406
+
1407
+ <div *ngIf="contentTemplate" class="k-actionsheet-content">
1408
+ <ng-template [ngTemplateOutlet]="contentTemplate.templateRef">
1409
+ </ng-template>
1410
+ </div>
1411
+
1412
+ <div *ngIf="footerTemplate" [ngClass]="[orientationClass, alignmentClass, 'k-actions', 'k-actionsheet-footer']">
1413
+ <ng-template [ngTemplateOutlet]="footerTemplate.templateRef">
1414
+ </ng-template>
1415
+ </div>
1416
+ </ng-template>
1417
+ `,
1418
+ standalone: true,
1419
+ imports: [NgIf, NgClass, NgTemplateOutlet]
1420
+ }]
1421
+ }], ctorParameters: function () { return [{ type: ActionSheetComponent, decorators: [{
1422
+ type: Optional
1423
+ }, {
1424
+ type: Host
1425
+ }] }]; }, propDecorators: { title: [{
1426
+ type: Input
1427
+ }], subtitle: [{
1428
+ type: Input
1429
+ }], titleId: [{
1430
+ type: Input
1431
+ }], hostClass: [{
1432
+ type: HostBinding,
1433
+ args: ['class.k-actionsheet-view']
1434
+ }], animated: [{
1435
+ type: HostBinding,
1436
+ args: ['class.k-actionsheet-view-animated']
1437
+ }], transitionDuration: [{
1438
+ type: HostBinding,
1439
+ args: ['style.transition-duration']
1440
+ }], transitionProperty: [{
1441
+ type: HostBinding,
1442
+ args: ['style.transition-property']
1443
+ }], headerTemplate: [{
1444
+ type: ContentChild,
1445
+ args: [ActionSheetHeaderTemplateDirective]
1446
+ }], contentTemplate: [{
1447
+ type: ContentChild,
1448
+ args: [ActionSheetContentTemplateDirective]
1449
+ }], footerTemplate: [{
1450
+ type: ContentChild,
1451
+ args: [ActionSheetFooterTemplateDirective]
1452
+ }], actionSheetTemplate: [{
1453
+ type: ContentChild,
1454
+ args: [ActionSheetTemplateDirective]
1455
+ }] } });
1456
+
1188
1457
  /**
1189
1458
  * @hidden
1190
1459
  */
@@ -2505,6 +2774,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2505
2774
  */
2506
2775
  const KENDO_ACTIONSHEET = [
2507
2776
  ActionSheetComponent,
2777
+ ActionSheetViewComponent,
2508
2778
  ActionSheetHeaderTemplateDirective,
2509
2779
  ActionSheetItemTemplateDirective,
2510
2780
  ActionSheetContentTemplateDirective,
@@ -2623,7 +2893,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2623
2893
  */
2624
2894
  class NavigationModule {
2625
2895
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2626
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, imports: [ActionSheetComponent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective, AppBarComponent, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BreadCrumbComponent, BreadCrumbItemTemplateDirective], exports: [ActionSheetComponent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective, AppBarComponent, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BreadCrumbComponent, BreadCrumbItemTemplateDirective] });
2896
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, imports: [ActionSheetComponent, ActionSheetViewComponent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective, AppBarComponent, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BreadCrumbComponent, BreadCrumbItemTemplateDirective], exports: [ActionSheetComponent, ActionSheetViewComponent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective, AppBarComponent, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BreadCrumbComponent, BreadCrumbItemTemplateDirective] });
2627
2897
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, providers: [IconsService, ResizeBatchService], imports: [ActionSheetComponent, BottomNavigationComponent, BreadCrumbComponent] });
2628
2898
  }
2629
2899
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, decorators: [{
@@ -2762,7 +3032,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2762
3032
  */
2763
3033
  class ActionSheetModule {
2764
3034
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2765
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetModule, imports: [ActionSheetComponent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective], exports: [ActionSheetComponent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective] });
3035
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetModule, imports: [ActionSheetComponent, ActionSheetViewComponent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective], exports: [ActionSheetComponent, ActionSheetViewComponent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetTemplateDirective] });
2766
3036
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetModule, providers: [IconsService], imports: [ActionSheetComponent] });
2767
3037
  }
2768
3038
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionSheetModule, decorators: [{
@@ -2780,5 +3050,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2780
3050
  * Generated bundle index. Do not edit.
2781
3051
  */
2782
3052
 
2783
- export { ActionSheetComponent, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetModule, ActionSheetTemplateDirective, AppBarComponent, AppBarModule, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BottomNavigationModule, BottomNavigationSelectEvent, BreadCrumbComponent, BreadCrumbItemComponent, BreadCrumbItemTemplateDirective, BreadCrumbListComponent, BreadCrumbModule, KENDO_ACTIONSHEET, KENDO_APPBAR, KENDO_BOTTOMNAVIGATION, KENDO_BREADCRUMB, KENDO_NAVIGATION, NavigationModule };
3053
+ export { ActionSheetComponent, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetModule, ActionSheetTemplateDirective, ActionSheetViewComponent, AppBarComponent, AppBarModule, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BottomNavigationModule, BottomNavigationSelectEvent, BreadCrumbComponent, BreadCrumbItemComponent, BreadCrumbItemTemplateDirective, BreadCrumbListComponent, BreadCrumbModule, KENDO_ACTIONSHEET, KENDO_APPBAR, KENDO_BOTTOMNAVIGATION, KENDO_BREADCRUMB, KENDO_NAVIGATION, NavigationModule };
2784
3054