@progress/kendo-angular-navigation 2.1.0-dev.202210190753 → 2.1.0
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/actionsheet/actionsheet.component.d.ts +11 -3
- package/actionsheet/list.component.d.ts +1 -0
- package/actionsheet/models/index.d.ts +3 -1
- package/actionsheet/templates/{title-template.directive.d.ts → content-template.directive.d.ts} +5 -5
- package/actionsheet/templates/footer-template.directive.d.ts +17 -0
- package/actionsheet/templates/header-template.directive.d.ts +17 -0
- package/actionsheet.module.d.ts +5 -3
- package/bundles/kendo-angular-navigation.umd.js +1 -1
- package/common/util.d.ts +5 -1
- package/esm2015/actionsheet/actionsheet.component.js +78 -52
- package/esm2015/actionsheet/list.component.js +10 -18
- package/esm2015/actionsheet/models/index.js +3 -1
- package/esm2015/actionsheet/templates/content-template.directive.js +26 -0
- package/esm2015/actionsheet/templates/footer-template.directive.js +26 -0
- package/esm2015/actionsheet/templates/header-template.directive.js +26 -0
- package/esm2015/actionsheet.module.js +12 -6
- package/esm2015/common/util.js +12 -13
- package/esm2015/main.js +1 -3
- package/esm2015/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-navigation.js +160 -95
- package/main.d.ts +1 -3
- package/package.json +1 -1
- package/esm2015/actionsheet/templates/title-template.directive.js +0 -26
|
@@ -8,7 +8,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';
|
|
10
10
|
import * as i3 from '@progress/kendo-angular-common';
|
|
11
|
-
import {
|
|
11
|
+
import { closestInScope as closestInScope$1, isDocumentAvailable, Keys, ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
12
12
|
import * as i1$1 from '@angular/common';
|
|
13
13
|
import { CommonModule } from '@angular/common';
|
|
14
14
|
import { fromEvent, merge, ReplaySubject, Subject, Subscription } from 'rxjs';
|
|
@@ -21,7 +21,7 @@ const packageMetadata = {
|
|
|
21
21
|
name: '@progress/kendo-angular-navigation',
|
|
22
22
|
productName: 'Kendo UI for Angular',
|
|
23
23
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
24
|
-
publishDate:
|
|
24
|
+
publishDate: 1666694882,
|
|
25
25
|
version: '',
|
|
26
26
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
27
27
|
};
|
|
@@ -273,20 +273,19 @@ const getId = (prefix) => {
|
|
|
273
273
|
/**
|
|
274
274
|
* @hidden
|
|
275
275
|
*/
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
idx = index;
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
return idx;
|
|
276
|
+
const ACTIONSHEET_ITEM_INDEX_ATTRIBUTE = 'kendo-actionsheet-item-index';
|
|
277
|
+
/**
|
|
278
|
+
* @hidden
|
|
279
|
+
*/
|
|
280
|
+
const getActionSheetItemIndex = (target, targetAttr, scope) => {
|
|
281
|
+
const item = closestItem$1(target, targetAttr, scope);
|
|
282
|
+
if (item) {
|
|
283
|
+
return itemIndex$1(item, targetAttr);
|
|
284
|
+
}
|
|
289
285
|
};
|
|
286
|
+
const itemIndex$1 = (item, indexAttr) => +item.getAttribute(indexAttr);
|
|
287
|
+
const hasItemIndex$1 = (item, indexAttr) => isPresent(item.getAttribute(indexAttr));
|
|
288
|
+
const closestItem$1 = (target, targetAttr, scope) => closestInScope$1(target, el => hasItemIndex$1(el, targetAttr), scope);
|
|
290
289
|
|
|
291
290
|
/**
|
|
292
291
|
* Represents the [Kendo UI AppBarSpacer component for Angular]({% slug contentarrangement_appbar %}#toc-spacings).
|
|
@@ -1623,21 +1622,21 @@ class ActionSheetItemClickEvent {
|
|
|
1623
1622
|
}
|
|
1624
1623
|
|
|
1625
1624
|
/**
|
|
1626
|
-
* Represents a template that defines the
|
|
1625
|
+
* Represents a template that defines the header content of the ActionSheet. Utilizing the template overrides both the `title` and `subtitle` of the ActionSheet.
|
|
1627
1626
|
* To define the template, nest an `<ng-template>` tag
|
|
1628
|
-
* with the `
|
|
1627
|
+
* with the `kendoActionSheetHeaderTemplate` directive inside the `<kendo-actionsheet>` tag.
|
|
1629
1628
|
*/
|
|
1630
|
-
class
|
|
1629
|
+
class ActionSheetHeaderTemplateDirective {
|
|
1631
1630
|
constructor(templateRef) {
|
|
1632
1631
|
this.templateRef = templateRef;
|
|
1633
1632
|
}
|
|
1634
1633
|
}
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
1634
|
+
ActionSheetHeaderTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetHeaderTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1635
|
+
ActionSheetHeaderTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetHeaderTemplateDirective, selector: "[kendoActionSheetHeaderTemplate]", ngImport: i0 });
|
|
1636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetHeaderTemplateDirective, decorators: [{
|
|
1638
1637
|
type: Directive,
|
|
1639
1638
|
args: [{
|
|
1640
|
-
selector: '[
|
|
1639
|
+
selector: '[kendoActionSheetHeaderTemplate]'
|
|
1641
1640
|
}]
|
|
1642
1641
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
1643
1642
|
type: Optional
|
|
@@ -1664,6 +1663,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1664
1663
|
type: Optional
|
|
1665
1664
|
}] }]; } });
|
|
1666
1665
|
|
|
1666
|
+
/**
|
|
1667
|
+
* Represents a template that defines the items list content of the ActionSheet.
|
|
1668
|
+
* To define the template, nest an `<ng-template>` tag
|
|
1669
|
+
* with the `kendoActionSheetContentTemplate` directive inside the `<kendo-actionsheet>` tag.
|
|
1670
|
+
*/
|
|
1671
|
+
class ActionSheetContentTemplateDirective {
|
|
1672
|
+
constructor(templateRef) {
|
|
1673
|
+
this.templateRef = templateRef;
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
ActionSheetContentTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1677
|
+
ActionSheetContentTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetContentTemplateDirective, selector: "[kendoActionSheetContentTemplate]", ngImport: i0 });
|
|
1678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetContentTemplateDirective, decorators: [{
|
|
1679
|
+
type: Directive,
|
|
1680
|
+
args: [{
|
|
1681
|
+
selector: '[kendoActionSheetContentTemplate]'
|
|
1682
|
+
}]
|
|
1683
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
1684
|
+
type: Optional
|
|
1685
|
+
}] }]; } });
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* Represents a template that defines the footer of the ActionSheet.
|
|
1689
|
+
* To define the template, nest an `<ng-template>` tag
|
|
1690
|
+
* with the `kendoActionSheetFooterTemplate` directive inside the `<kendo-actionsheet>` tag.
|
|
1691
|
+
*/
|
|
1692
|
+
class ActionSheetFooterTemplateDirective {
|
|
1693
|
+
constructor(templateRef) {
|
|
1694
|
+
this.templateRef = templateRef;
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
ActionSheetFooterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetFooterTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1698
|
+
ActionSheetFooterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetFooterTemplateDirective, selector: "[kendoActionSheetFooterTemplate]", ngImport: i0 });
|
|
1699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetFooterTemplateDirective, decorators: [{
|
|
1700
|
+
type: Directive,
|
|
1701
|
+
args: [{
|
|
1702
|
+
selector: '[kendoActionSheetFooterTemplate]'
|
|
1703
|
+
}]
|
|
1704
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
1705
|
+
type: Optional
|
|
1706
|
+
}] }]; } });
|
|
1707
|
+
|
|
1667
1708
|
/**
|
|
1668
1709
|
* @hidden
|
|
1669
1710
|
*/
|
|
@@ -1788,7 +1829,7 @@ class ActionSheetListComponent {
|
|
|
1788
1829
|
});
|
|
1789
1830
|
}
|
|
1790
1831
|
clickHandler(e) {
|
|
1791
|
-
const itemIndex = getActionSheetItemIndex(e.target);
|
|
1832
|
+
const itemIndex = getActionSheetItemIndex(e.target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
|
|
1792
1833
|
const item = this.allItems[itemIndex];
|
|
1793
1834
|
if (!item) {
|
|
1794
1835
|
return;
|
|
@@ -1801,38 +1842,30 @@ class ActionSheetListComponent {
|
|
|
1801
1842
|
this.itemClick.emit({ item, originalEvent: e });
|
|
1802
1843
|
});
|
|
1803
1844
|
}
|
|
1845
|
+
setAttrIndex(item) {
|
|
1846
|
+
return this.allItems.indexOf(item);
|
|
1847
|
+
}
|
|
1804
1848
|
}
|
|
1805
1849
|
ActionSheetListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetListComponent, deps: [{ token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1806
|
-
ActionSheetListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: { groupItems: "groupItems", allItems: "allItems", itemTemplate: "itemTemplate" }, outputs: { itemClick: "itemClick" }, ngImport: i0, template:
|
|
1807
|
-
<li *ngFor="let item of groupItems" kendoActionSheetItem
|
|
1808
|
-
tabindex="0"
|
|
1809
|
-
role="option"
|
|
1810
|
-
[attr.aria-disabled]="item.disabled"
|
|
1811
|
-
[class.k-actionsheet-item]="true"
|
|
1812
|
-
[class.k-disabled]="item.disabled"
|
|
1813
|
-
[ngClass]="item.cssClass"
|
|
1814
|
-
[ngStyle]="item.cssStyle"
|
|
1815
|
-
[itemTemplate]="itemTemplate"
|
|
1816
|
-
[item]="item">
|
|
1817
|
-
</li>
|
|
1818
|
-
`, isInline: true, components: [{ type: ActionSheetItemComponent, selector: "[kendoActionSheetItem]", inputs: ["itemTemplate", "item"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
1850
|
+
ActionSheetListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetListComponent, selector: "[kendoActionSheetList]", inputs: { groupItems: "groupItems", allItems: "allItems", itemTemplate: "itemTemplate" }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: "\n <span *ngFor=\"let item of groupItems\" kendoActionSheetItem\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-disabled]=\"item.disabled\"\n [class.k-actionsheet-item]=\"true\"\n [attr.kendo-actionsheet-item-index]=\"setAttrIndex(item)\"\n [class.k-disabled]=\"item.disabled\"\n [ngClass]=\"item.cssClass\"\n [ngStyle]=\"item.cssStyle\"\n [itemTemplate]=\"itemTemplate\"\n [item]=\"item\">\n </span>\n ", isInline: true, components: [{ type: ActionSheetItemComponent, selector: "[kendoActionSheetItem]", inputs: ["itemTemplate", "item"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
1819
1851
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetListComponent, decorators: [{
|
|
1820
1852
|
type: Component,
|
|
1821
1853
|
args: [{
|
|
1822
1854
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1823
1855
|
selector: '[kendoActionSheetList]',
|
|
1824
1856
|
template: `
|
|
1825
|
-
<
|
|
1857
|
+
<span *ngFor="let item of groupItems" kendoActionSheetItem
|
|
1826
1858
|
tabindex="0"
|
|
1827
|
-
role="
|
|
1859
|
+
role="button"
|
|
1828
1860
|
[attr.aria-disabled]="item.disabled"
|
|
1829
1861
|
[class.k-actionsheet-item]="true"
|
|
1862
|
+
[attr.${ACTIONSHEET_ITEM_INDEX_ATTRIBUTE}]="setAttrIndex(item)"
|
|
1830
1863
|
[class.k-disabled]="item.disabled"
|
|
1831
1864
|
[ngClass]="item.cssClass"
|
|
1832
1865
|
[ngStyle]="item.cssStyle"
|
|
1833
1866
|
[itemTemplate]="itemTemplate"
|
|
1834
1867
|
[item]="item">
|
|
1835
|
-
</
|
|
1868
|
+
</span>
|
|
1836
1869
|
`
|
|
1837
1870
|
}]
|
|
1838
1871
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ElementRef }]; }, propDecorators: { groupItems: [{
|
|
@@ -1972,7 +2005,7 @@ class ActionSheetComponent {
|
|
|
1972
2005
|
}
|
|
1973
2006
|
}
|
|
1974
2007
|
triggerItemClick(target, event) {
|
|
1975
|
-
const itemIndex = getActionSheetItemIndex(target);
|
|
2008
|
+
const itemIndex = getActionSheetItemIndex(target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
|
|
1976
2009
|
const item = this.items[itemIndex];
|
|
1977
2010
|
if (!item || item.disabled) {
|
|
1978
2011
|
return;
|
|
@@ -1987,7 +2020,7 @@ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1987
2020
|
provide: L10N_PREFIX,
|
|
1988
2021
|
useValue: 'kendo.actionsheet.component'
|
|
1989
2022
|
}
|
|
1990
|
-
], queries: [{ propertyName: "
|
|
2023
|
+
], queries: [{ 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 }], exportAs: ["kendoActionSheet"], ngImport: i0, template: `
|
|
1991
2024
|
<div class="k-overlay" (click)="onOverlayClick()"></div>
|
|
1992
2025
|
<div class="k-animation-container">
|
|
1993
2026
|
<div class="k-child-animation-container" style="bottom: 0px; width: 100%;">
|
|
@@ -1997,11 +2030,11 @@ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1997
2030
|
aria-modal="true"
|
|
1998
2031
|
[attr.aria-labelledby]="titleId">
|
|
1999
2032
|
|
|
2000
|
-
<div *ngIf="title ||
|
|
2033
|
+
<div *ngIf="title || headerTemplate" class="k-actionsheet-titlebar">
|
|
2001
2034
|
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
2002
2035
|
<div class="k-actionsheet-title" [id]="titleId">
|
|
2003
|
-
<ng-template *ngIf="
|
|
2004
|
-
[ngTemplateOutlet]="
|
|
2036
|
+
<ng-template *ngIf="headerTemplate; else defaultTemplate"
|
|
2037
|
+
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2005
2038
|
</ng-template>
|
|
2006
2039
|
<ng-template #defaultTemplate>
|
|
2007
2040
|
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
@@ -2011,26 +2044,36 @@ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
2011
2044
|
</div>
|
|
2012
2045
|
</div>
|
|
2013
2046
|
|
|
2014
|
-
<div *ngIf="
|
|
2015
|
-
<
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2047
|
+
<div *ngIf="items || contentTemplate" class="k-actionsheet-content">
|
|
2048
|
+
<ng-template *ngIf="contentTemplate; else defaultContentTemplate"
|
|
2049
|
+
[ngTemplateOutlet]="contentTemplate?.templateRef">
|
|
2050
|
+
</ng-template>
|
|
2051
|
+
<ng-template #defaultContentTemplate>
|
|
2052
|
+
<div *ngIf="topGroupItems" kendoActionSheetList
|
|
2053
|
+
class="k-list-ul"
|
|
2054
|
+
role="group"
|
|
2055
|
+
[groupItems]="topGroupItems"
|
|
2056
|
+
[allItems]="items"
|
|
2057
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2058
|
+
(itemClick)="onItemClick($event)">
|
|
2059
|
+
</div>
|
|
2060
|
+
|
|
2061
|
+
<hr *ngIf="shouldRenderSeparator" class="k-hr"/>
|
|
2062
|
+
|
|
2063
|
+
<div *ngIf="bottomGroupItems" kendoActionSheetList
|
|
2064
|
+
class="k-list-ul"
|
|
2065
|
+
role="group"
|
|
2066
|
+
[groupItems]="bottomGroupItems"
|
|
2067
|
+
[allItems]="items"
|
|
2068
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2069
|
+
(itemClick)="onItemClick($event)">
|
|
2070
|
+
</div>
|
|
2071
|
+
</ng-template>
|
|
2072
|
+
</div>
|
|
2073
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2074
|
+
<ng-template
|
|
2075
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2076
|
+
</ng-template>
|
|
2034
2077
|
</div>
|
|
2035
2078
|
</div>
|
|
2036
2079
|
</div>
|
|
@@ -2051,11 +2094,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2051
2094
|
aria-modal="true"
|
|
2052
2095
|
[attr.aria-labelledby]="titleId">
|
|
2053
2096
|
|
|
2054
|
-
<div *ngIf="title ||
|
|
2097
|
+
<div *ngIf="title || headerTemplate" class="k-actionsheet-titlebar">
|
|
2055
2098
|
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
2056
2099
|
<div class="k-actionsheet-title" [id]="titleId">
|
|
2057
|
-
<ng-template *ngIf="
|
|
2058
|
-
[ngTemplateOutlet]="
|
|
2100
|
+
<ng-template *ngIf="headerTemplate; else defaultTemplate"
|
|
2101
|
+
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2059
2102
|
</ng-template>
|
|
2060
2103
|
<ng-template #defaultTemplate>
|
|
2061
2104
|
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
@@ -2065,26 +2108,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2065
2108
|
</div>
|
|
2066
2109
|
</div>
|
|
2067
2110
|
|
|
2068
|
-
<div *ngIf="
|
|
2069
|
-
<
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2111
|
+
<div *ngIf="items || contentTemplate" class="k-actionsheet-content">
|
|
2112
|
+
<ng-template *ngIf="contentTemplate; else defaultContentTemplate"
|
|
2113
|
+
[ngTemplateOutlet]="contentTemplate?.templateRef">
|
|
2114
|
+
</ng-template>
|
|
2115
|
+
<ng-template #defaultContentTemplate>
|
|
2116
|
+
<div *ngIf="topGroupItems" kendoActionSheetList
|
|
2117
|
+
class="k-list-ul"
|
|
2118
|
+
role="group"
|
|
2119
|
+
[groupItems]="topGroupItems"
|
|
2120
|
+
[allItems]="items"
|
|
2121
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2122
|
+
(itemClick)="onItemClick($event)">
|
|
2123
|
+
</div>
|
|
2124
|
+
|
|
2125
|
+
<hr *ngIf="shouldRenderSeparator" class="k-hr"/>
|
|
2126
|
+
|
|
2127
|
+
<div *ngIf="bottomGroupItems" kendoActionSheetList
|
|
2128
|
+
class="k-list-ul"
|
|
2129
|
+
role="group"
|
|
2130
|
+
[groupItems]="bottomGroupItems"
|
|
2131
|
+
[allItems]="items"
|
|
2132
|
+
[itemTemplate]="itemTemplate?.templateRef"
|
|
2133
|
+
(itemClick)="onItemClick($event)">
|
|
2134
|
+
</div>
|
|
2135
|
+
</ng-template>
|
|
2136
|
+
</div>
|
|
2137
|
+
<div *ngIf="footerTemplate" class="k-actionsheet-footer">
|
|
2138
|
+
<ng-template
|
|
2139
|
+
[ngTemplateOutlet]="footerTemplate?.templateRef">
|
|
2140
|
+
</ng-template>
|
|
2088
2141
|
</div>
|
|
2089
2142
|
</div>
|
|
2090
2143
|
</div>
|
|
@@ -2114,17 +2167,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2114
2167
|
type: Output
|
|
2115
2168
|
}], overlayClick: [{
|
|
2116
2169
|
type: Output
|
|
2117
|
-
}],
|
|
2170
|
+
}], headerTemplate: [{
|
|
2171
|
+
type: ContentChild,
|
|
2172
|
+
args: [ActionSheetHeaderTemplateDirective]
|
|
2173
|
+
}], contentTemplate: [{
|
|
2118
2174
|
type: ContentChild,
|
|
2119
|
-
args: [
|
|
2175
|
+
args: [ActionSheetContentTemplateDirective]
|
|
2120
2176
|
}], itemTemplate: [{
|
|
2121
2177
|
type: ContentChild,
|
|
2122
2178
|
args: [ActionSheetItemTemplateDirective]
|
|
2179
|
+
}], footerTemplate: [{
|
|
2180
|
+
type: ContentChild,
|
|
2181
|
+
args: [ActionSheetFooterTemplateDirective]
|
|
2123
2182
|
}] } });
|
|
2124
2183
|
|
|
2125
2184
|
const templateDirectives = [
|
|
2126
|
-
|
|
2127
|
-
ActionSheetItemTemplateDirective
|
|
2185
|
+
ActionSheetHeaderTemplateDirective,
|
|
2186
|
+
ActionSheetItemTemplateDirective,
|
|
2187
|
+
ActionSheetContentTemplateDirective,
|
|
2188
|
+
ActionSheetFooterTemplateDirective
|
|
2128
2189
|
];
|
|
2129
2190
|
const exportedModules = [
|
|
2130
2191
|
ActionSheetComponent,
|
|
@@ -2171,9 +2232,13 @@ class ActionSheetModule {
|
|
|
2171
2232
|
}
|
|
2172
2233
|
ActionSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2173
2234
|
ActionSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetModule, declarations: [ActionSheetItemComponent,
|
|
2174
|
-
ActionSheetListComponent, ActionSheetComponent,
|
|
2175
|
-
ActionSheetItemTemplateDirective
|
|
2176
|
-
|
|
2235
|
+
ActionSheetListComponent, ActionSheetComponent, ActionSheetHeaderTemplateDirective,
|
|
2236
|
+
ActionSheetItemTemplateDirective,
|
|
2237
|
+
ActionSheetContentTemplateDirective,
|
|
2238
|
+
ActionSheetFooterTemplateDirective], imports: [CommonModule], exports: [ActionSheetComponent, ActionSheetHeaderTemplateDirective,
|
|
2239
|
+
ActionSheetItemTemplateDirective,
|
|
2240
|
+
ActionSheetContentTemplateDirective,
|
|
2241
|
+
ActionSheetFooterTemplateDirective] });
|
|
2177
2242
|
ActionSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetModule, imports: [[CommonModule]] });
|
|
2178
2243
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetModule, decorators: [{
|
|
2179
2244
|
type: NgModule,
|
|
@@ -2244,5 +2309,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2244
2309
|
* Generated bundle index. Do not edit.
|
|
2245
2310
|
*/
|
|
2246
2311
|
|
|
2247
|
-
export { ActionSheetComponent, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetModule,
|
|
2312
|
+
export { ActionSheetComponent, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective, ActionSheetHeaderTemplateDirective, ActionSheetItemClickEvent, ActionSheetItemTemplateDirective, ActionSheetModule, AppBarComponent, AppBarModule, AppBarSectionComponent, AppBarSpacerComponent, BottomNavigationComponent, BottomNavigationItemTemplateDirective, BottomNavigationModule, BottomNavigationSelectEvent, BreadCrumbComponent, BreadCrumbItemComponent, BreadCrumbItemTemplateDirective, BreadCrumbListComponent, BreadCrumbModule, NavigationModule };
|
|
2248
2313
|
|
package/main.d.ts
CHANGED
|
@@ -27,7 +27,5 @@ export { BottomNavigationModule } from './bottomnavigation.module';
|
|
|
27
27
|
export { BreadCrumbItemComponent } from './breadcrumb/breadcrumb-item.component';
|
|
28
28
|
export { BreadCrumbListComponent } from './breadcrumb/list.component';
|
|
29
29
|
export { ActionSheetComponent } from './actionsheet/actionsheet.component';
|
|
30
|
-
export { ActionSheetItem, ActionSheetItemGroup, ActionSheetItemClickEvent } from './actionsheet/models';
|
|
31
|
-
export { ActionSheetTitleTemplateDirective } from './actionsheet/templates/title-template.directive';
|
|
32
|
-
export { ActionSheetItemTemplateDirective } from './actionsheet/templates/item-template.directive';
|
|
30
|
+
export { ActionSheetItem, ActionSheetItemGroup, ActionSheetItemClickEvent, ActionSheetHeaderTemplateDirective, ActionSheetItemTemplateDirective, ActionSheetContentTemplateDirective, ActionSheetFooterTemplateDirective } from './actionsheet/models';
|
|
33
31
|
export { ActionSheetModule } from './actionsheet.module';
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, Optional } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template that defines the title content of the ActionSheet. Utilizing the template overrides both the `title` and `subtitle` of the ActionSheet.
|
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
|
10
|
-
* with the `kendoActionSheetTitleTemplate` directive inside the `<kendo-actionsheet>` tag.
|
|
11
|
-
*/
|
|
12
|
-
export class ActionSheetTitleTemplateDirective {
|
|
13
|
-
constructor(templateRef) {
|
|
14
|
-
this.templateRef = templateRef;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
ActionSheetTitleTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetTitleTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
-
ActionSheetTitleTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetTitleTemplateDirective, selector: "[kendoActionSheetTitleTemplate]", ngImport: i0 });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetTitleTemplateDirective, decorators: [{
|
|
20
|
-
type: Directive,
|
|
21
|
-
args: [{
|
|
22
|
-
selector: '[kendoActionSheetTitleTemplate]'
|
|
23
|
-
}]
|
|
24
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
25
|
-
type: Optional
|
|
26
|
-
}] }]; } });
|