@progress/kendo-angular-navigation 2.1.0-dev.202210170736 → 2.1.0-dev.202210241311
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 +82 -54
- package/esm2015/actionsheet/item.component.js +20 -26
- package/esm2015/actionsheet/list.component.js +12 -16
- 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 +186 -121
- 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: 1666617075,
|
|
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
|
*/
|
|
@@ -1701,17 +1742,14 @@ class ActionSheetItemComponent {
|
|
|
1701
1742
|
}
|
|
1702
1743
|
ActionSheetItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1703
1744
|
ActionSheetItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionSheetItemComponent, selector: "[kendoActionSheetItem]", inputs: { itemTemplate: "itemTemplate", item: "item" }, host: { properties: { "class.k-cursor-pointer": "this.pointerClass" } }, ngImport: i0, template: `
|
|
1704
|
-
<
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
}">
|
|
1713
|
-
</ng-template>
|
|
1714
|
-
<ng-template #defaultTemplate>
|
|
1745
|
+
<ng-template *ngIf="itemTemplate; else defaultTemplate"
|
|
1746
|
+
[ngTemplateOutlet]="itemTemplate"
|
|
1747
|
+
[ngTemplateOutletContext]="{
|
|
1748
|
+
$implicit: item
|
|
1749
|
+
}">
|
|
1750
|
+
</ng-template>
|
|
1751
|
+
<ng-template #defaultTemplate>
|
|
1752
|
+
<span class="k-actionsheet-action">
|
|
1715
1753
|
<span *ngIf="item.icon || item.iconClass" class="k-icon-wrap">
|
|
1716
1754
|
<span
|
|
1717
1755
|
[class]="manageIconClasses(item)"
|
|
@@ -1722,8 +1760,8 @@ ActionSheetItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
1722
1760
|
<span *ngIf="item.title" class="k-actionsheet-item-title">{{item.title}}</span>
|
|
1723
1761
|
<span *ngIf="item.description" class="k-actionsheet-item-description">{{item.description}}</span>
|
|
1724
1762
|
</span>
|
|
1725
|
-
</
|
|
1726
|
-
</
|
|
1763
|
+
</span>
|
|
1764
|
+
</ng-template>
|
|
1727
1765
|
`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
1728
1766
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetItemComponent, decorators: [{
|
|
1729
1767
|
type: Component,
|
|
@@ -1731,17 +1769,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1731
1769
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1732
1770
|
selector: '[kendoActionSheetItem]',
|
|
1733
1771
|
template: `
|
|
1734
|
-
<
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
}">
|
|
1743
|
-
</ng-template>
|
|
1744
|
-
<ng-template #defaultTemplate>
|
|
1772
|
+
<ng-template *ngIf="itemTemplate; else defaultTemplate"
|
|
1773
|
+
[ngTemplateOutlet]="itemTemplate"
|
|
1774
|
+
[ngTemplateOutletContext]="{
|
|
1775
|
+
$implicit: item
|
|
1776
|
+
}">
|
|
1777
|
+
</ng-template>
|
|
1778
|
+
<ng-template #defaultTemplate>
|
|
1779
|
+
<span class="k-actionsheet-action">
|
|
1745
1780
|
<span *ngIf="item.icon || item.iconClass" class="k-icon-wrap">
|
|
1746
1781
|
<span
|
|
1747
1782
|
[class]="manageIconClasses(item)"
|
|
@@ -1752,8 +1787,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1752
1787
|
<span *ngIf="item.title" class="k-actionsheet-item-title">{{item.title}}</span>
|
|
1753
1788
|
<span *ngIf="item.description" class="k-actionsheet-item-description">{{item.description}}</span>
|
|
1754
1789
|
</span>
|
|
1755
|
-
</
|
|
1756
|
-
</
|
|
1790
|
+
</span>
|
|
1791
|
+
</ng-template>
|
|
1757
1792
|
`
|
|
1758
1793
|
}]
|
|
1759
1794
|
}], propDecorators: { itemTemplate: [{
|
|
@@ -1794,7 +1829,7 @@ class ActionSheetListComponent {
|
|
|
1794
1829
|
});
|
|
1795
1830
|
}
|
|
1796
1831
|
clickHandler(e) {
|
|
1797
|
-
const itemIndex = getActionSheetItemIndex(e.target);
|
|
1832
|
+
const itemIndex = getActionSheetItemIndex(e.target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
|
|
1798
1833
|
const item = this.allItems[itemIndex];
|
|
1799
1834
|
if (!item) {
|
|
1800
1835
|
return;
|
|
@@ -1807,34 +1842,30 @@ class ActionSheetListComponent {
|
|
|
1807
1842
|
this.itemClick.emit({ item, originalEvent: e });
|
|
1808
1843
|
});
|
|
1809
1844
|
}
|
|
1845
|
+
setAttrIndex(item) {
|
|
1846
|
+
return this.allItems.indexOf(item);
|
|
1847
|
+
}
|
|
1810
1848
|
}
|
|
1811
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 });
|
|
1812
|
-
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:
|
|
1813
|
-
<li *ngFor="let item of groupItems" kendoActionSheetItem
|
|
1814
|
-
role="none"
|
|
1815
|
-
[class.k-actionsheet-item]="true"
|
|
1816
|
-
[class.k-disabled]="item.disabled"
|
|
1817
|
-
[ngClass]="item.cssClass"
|
|
1818
|
-
[ngStyle]="item.cssStyle"
|
|
1819
|
-
[itemTemplate]="itemTemplate"
|
|
1820
|
-
[item]="item">
|
|
1821
|
-
</li>
|
|
1822
|
-
`, 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"] }] });
|
|
1823
1851
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionSheetListComponent, decorators: [{
|
|
1824
1852
|
type: Component,
|
|
1825
1853
|
args: [{
|
|
1826
1854
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1827
1855
|
selector: '[kendoActionSheetList]',
|
|
1828
1856
|
template: `
|
|
1829
|
-
<
|
|
1830
|
-
|
|
1857
|
+
<span *ngFor="let item of groupItems" kendoActionSheetItem
|
|
1858
|
+
tabindex="0"
|
|
1859
|
+
role="button"
|
|
1860
|
+
[attr.aria-disabled]="item.disabled"
|
|
1831
1861
|
[class.k-actionsheet-item]="true"
|
|
1862
|
+
[attr.${ACTIONSHEET_ITEM_INDEX_ATTRIBUTE}]="setAttrIndex(item)"
|
|
1832
1863
|
[class.k-disabled]="item.disabled"
|
|
1833
1864
|
[ngClass]="item.cssClass"
|
|
1834
1865
|
[ngStyle]="item.cssStyle"
|
|
1835
1866
|
[itemTemplate]="itemTemplate"
|
|
1836
1867
|
[item]="item">
|
|
1837
|
-
</
|
|
1868
|
+
</span>
|
|
1838
1869
|
`
|
|
1839
1870
|
}]
|
|
1840
1871
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ElementRef }]; }, propDecorators: { groupItems: [{
|
|
@@ -1974,7 +2005,7 @@ class ActionSheetComponent {
|
|
|
1974
2005
|
}
|
|
1975
2006
|
}
|
|
1976
2007
|
triggerItemClick(target, event) {
|
|
1977
|
-
const itemIndex = getActionSheetItemIndex(target);
|
|
2008
|
+
const itemIndex = getActionSheetItemIndex(target, ACTIONSHEET_ITEM_INDEX_ATTRIBUTE, this.element.nativeElement);
|
|
1978
2009
|
const item = this.items[itemIndex];
|
|
1979
2010
|
if (!item || item.disabled) {
|
|
1980
2011
|
return;
|
|
@@ -1989,20 +2020,21 @@ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
1989
2020
|
provide: L10N_PREFIX,
|
|
1990
2021
|
useValue: 'kendo.actionsheet.component'
|
|
1991
2022
|
}
|
|
1992
|
-
], 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: `
|
|
1993
2024
|
<div class="k-overlay" (click)="onOverlayClick()"></div>
|
|
1994
2025
|
<div class="k-animation-container">
|
|
1995
|
-
<div class="k-child-animation-container">
|
|
2026
|
+
<div class="k-child-animation-container" style="bottom: 0px; width: 100%;">
|
|
1996
2027
|
<div class="k-actionsheet k-actionsheet-bottom"
|
|
2028
|
+
style="--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;"
|
|
1997
2029
|
role="dialog"
|
|
1998
2030
|
aria-modal="true"
|
|
1999
2031
|
[attr.aria-labelledby]="titleId">
|
|
2000
2032
|
|
|
2001
|
-
<div *ngIf="title ||
|
|
2033
|
+
<div *ngIf="title || headerTemplate" class="k-actionsheet-titlebar">
|
|
2002
2034
|
<div class="k-actionsheet-titlebar-group k-hbox">
|
|
2003
2035
|
<div class="k-actionsheet-title" [id]="titleId">
|
|
2004
|
-
<ng-template *ngIf="
|
|
2005
|
-
[ngTemplateOutlet]="
|
|
2036
|
+
<ng-template *ngIf="headerTemplate; else defaultTemplate"
|
|
2037
|
+
[ngTemplateOutlet]="headerTemplate?.templateRef">
|
|
2006
2038
|
</ng-template>
|
|
2007
2039
|
<ng-template #defaultTemplate>
|
|
2008
2040
|
<div *ngIf="title" class="k-text-center">{{title}}</div>
|
|
@@ -2012,26 +2044,36 @@ ActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
2012
2044
|
</div>
|
|
2013
2045
|
</div>
|
|
2014
2046
|
|
|
2015
|
-
<div *ngIf="
|
|
2016
|
-
<
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
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>
|
|
2035
2077
|
</div>
|
|
2036
2078
|
</div>
|
|
2037
2079
|
</div>
|
|
@@ -2045,17 +2087,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2045
2087
|
template: `
|
|
2046
2088
|
<div class="k-overlay" (click)="onOverlayClick()"></div>
|
|
2047
2089
|
<div class="k-animation-container">
|
|
2048
|
-
<div class="k-child-animation-container">
|
|
2090
|
+
<div class="k-child-animation-container" style="bottom: 0px; width: 100%;">
|
|
2049
2091
|
<div class="k-actionsheet k-actionsheet-bottom"
|
|
2092
|
+
style="--kendo-actionsheet-height: auto; --kendo-actionsheet-max-height: none;"
|
|
2050
2093
|
role="dialog"
|
|
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: [{
|
|
2118
2171
|
type: ContentChild,
|
|
2119
|
-
args: [
|
|
2172
|
+
args: [ActionSheetHeaderTemplateDirective]
|
|
2173
|
+
}], contentTemplate: [{
|
|
2174
|
+
type: ContentChild,
|
|
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
|
-
}] }]; } });
|