desy-angular 5.1.3 → 6.0.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/bundles/desy-angular.umd.js +1548 -746
- package/bundles/desy-angular.umd.js.map +1 -1
- package/bundles/desy-angular.umd.min.js +1 -15
- package/bundles/desy-angular.umd.min.js.map +1 -1
- package/desy-angular.d.ts +38 -27
- package/desy-angular.metadata.json +1 -1
- package/esm2015/desy-angular.js +39 -28
- package/esm2015/lib/desy-buttons/components/button/button.component.js +4 -4
- package/esm2015/lib/desy-buttons/components/button-loader/button-loader.component.js +2 -2
- package/esm2015/lib/desy-buttons/components/dropdown/dropdown.component.js +8 -5
- package/esm2015/lib/desy-buttons/components/listbox/listbox.component.js +3 -25
- package/esm2015/lib/desy-buttons/components/pill/pill.component.js +1 -1
- package/esm2015/lib/desy-buttons/components/toggle/toggle.component.js +6 -3
- package/esm2015/lib/desy-commons/components/description/description.component.js +3 -2
- package/esm2015/lib/desy-commons/components/divider/divider.component.js +15 -0
- package/esm2015/lib/desy-commons/components/icon/icon.component.js +3 -2
- package/esm2015/lib/desy-commons/desy-commons.module.js +6 -3
- package/esm2015/lib/desy-commons/interfaces/description-data.js +1 -1
- package/esm2015/lib/desy-commons/interfaces/divider-data.js +2 -0
- package/esm2015/lib/desy-commons/interfaces/icon-data.js +1 -1
- package/esm2015/lib/desy-commons/interfaces/index.js +2 -1
- package/esm2015/lib/desy-forms/components/character-count/character-count.component.js +2 -17
- package/esm2015/lib/desy-forms/components/checkboxes/checkbox-item/checkbox-item.component.js +5 -7
- package/esm2015/lib/desy-forms/components/checkboxes/checkboxes.component.js +3 -12
- package/esm2015/lib/desy-forms/components/date-input/date-input-day/date-input-day.component.js +1 -9
- package/esm2015/lib/desy-forms/components/date-input/date-input-month/date-input-month.component.js +1 -9
- package/esm2015/lib/desy-forms/components/date-input/date-input-year/date-input-year.component.js +1 -9
- package/esm2015/lib/desy-forms/components/date-input/date-input.component.js +11 -17
- package/esm2015/lib/desy-forms/components/file-upload/file-upload.component.js +9 -17
- package/esm2015/lib/desy-forms/components/input/input.component.js +26 -17
- package/esm2015/lib/desy-forms/components/input-group/input-group-input/input-group-input.component.js +2 -9
- package/esm2015/lib/desy-forms/components/input-group/input-group-select/input-group-select.component.js +2 -9
- package/esm2015/lib/desy-forms/components/input-group/input-group.component.js +9 -20
- package/esm2015/lib/desy-forms/components/radios/radio-item/radio-item.component.js +3 -6
- package/esm2015/lib/desy-forms/components/radios/radios.component.js +2 -11
- package/esm2015/lib/desy-forms/components/search-bar/search-bar.component.js +7 -19
- package/esm2015/lib/desy-forms/components/select/select.component.js +9 -19
- package/esm2015/lib/desy-forms/components/textarea/textarea.component.js +10 -17
- package/esm2015/lib/desy-forms/components/tree/tree-item/tree-item.component.js +2 -2
- package/esm2015/lib/desy-forms/components/tree/tree.component.js +3 -3
- package/esm2015/lib/desy-forms/directives/condition.directive.js +2 -5
- package/esm2015/lib/desy-forms/interfaces/item-input-group-data.js +1 -1
- package/esm2015/lib/desy-modals/components/dialog/dialog.component.js +3 -9
- package/esm2015/lib/desy-modals/components/modal/modal-button-loader-primary/modal-button-loader-primary.component.js +20 -0
- package/esm2015/lib/desy-modals/components/modal/modal-button-loader-secondary/modal-button-loader-secondary.component.js +19 -0
- package/esm2015/lib/desy-modals/components/modal/modal-button-primary/modal-button-primary.component.js +3 -3
- package/esm2015/lib/desy-modals/components/modal/modal-button-secondary/modal-button-secondary.component.js +3 -3
- package/esm2015/lib/desy-modals/components/modal/modal.component.js +15 -14
- package/esm2015/lib/desy-modals/desy-modals.module.js +7 -1
- package/esm2015/lib/desy-modals/interfaces/modal-button-data.js +1 -1
- package/esm2015/lib/desy-modals/services/dialog.service.js +8 -9
- package/esm2015/lib/desy-nav/components/breadcrumbs/breadcrumbs.component.js +2 -8
- package/esm2015/lib/desy-nav/components/error-summary/error-summary.component.js +4 -10
- package/esm2015/lib/desy-nav/components/footer/footer.component.js +9 -2
- package/esm2015/lib/desy-nav/components/header/header-dropdown/header-dropdown.component.js +1 -4
- package/esm2015/lib/desy-nav/components/header/header-navigation/header-navigation.component.js +2 -5
- package/esm2015/lib/desy-nav/components/header/header-offcanvas/header-offcanvas-button/header-offcanvas-button.component.js +2 -5
- package/esm2015/lib/desy-nav/components/header/header-offcanvas/header-offcanvas.component.js +2 -5
- package/esm2015/lib/desy-nav/components/header/header-subnav/header-subnav.component.js +2 -5
- package/esm2015/lib/desy-nav/components/header/header.component.js +5 -2
- package/esm2015/lib/desy-nav/components/menu-horizontal/menu-horizontal.component.js +2 -15
- package/esm2015/lib/desy-nav/components/menu-navigation/components/menu-navigation-item/menu-navigation-item.component.js +35 -0
- package/esm2015/lib/desy-nav/components/menu-navigation/components/menu-navigation-subitem/menu-navigation-subitem.component.js +31 -0
- package/esm2015/lib/desy-nav/components/menu-navigation/menu-navigation.component.js +568 -0
- package/esm2015/lib/desy-nav/components/menu-vertical/menu-vertical.component.js +2 -8
- package/esm2015/lib/desy-nav/components/menubar/menubar.component.js +33 -17
- package/esm2015/lib/desy-nav/components/nav/nav.component.js +2 -18
- package/esm2015/lib/desy-nav/components/notification/notification.component.js +2 -10
- package/esm2015/lib/desy-nav/components/skip-link/skip-link.component.js +2 -11
- package/esm2015/lib/desy-nav/desy-nav.module.js +12 -2
- package/esm2015/lib/desy-nav/interfaces/header-navigation-item-data.js +1 -1
- package/esm2015/lib/desy-nav/interfaces/index.js +4 -1
- package/esm2015/lib/desy-nav/interfaces/menu-navigation-item-sub-item-sub-item.js +2 -0
- package/esm2015/lib/desy-nav/interfaces/menu-navigation-item-sub-item.js +2 -0
- package/esm2015/lib/desy-nav/interfaces/menu-navigation.js +2 -0
- package/esm2015/lib/desy-pagination/components/pagination/pagination.component.js +47 -13
- package/esm2015/lib/desy-pagination/components/pagination-item-perpage/pagination-item-perpage.component.js +15 -0
- package/esm2015/lib/desy-pagination/components/pagination-listbox-label/pagination-listbox-label.component.js +14 -0
- package/esm2015/lib/desy-pagination/desy-pagination.module.js +9 -3
- package/esm2015/lib/desy-pagination/interfaces/index.js +1 -1
- package/esm2015/lib/desy-tables/components/table/table.component.js +2 -14
- package/esm2015/lib/desy-tables/components/table-advanced/components/table-advanced-header-cell.component.js +16 -3
- package/esm2015/lib/desy-tables/components/table-advanced/components/table-advanced-select.component.js +22 -0
- package/esm2015/lib/desy-tables/components/table-advanced/table-advanced.component.js +33 -5
- package/esm2015/lib/desy-tables/desy-tables.module.js +5 -2
- package/esm2015/lib/desy-tables/interfaces/head-cell-data.js +1 -1
- package/esm2015/lib/desy-views/components/accordion/accordion-header/accordion-header.component.js +1 -1
- package/esm2015/lib/desy-views/components/accordion/accordion-item/accordion-item.component.js +12 -2
- package/esm2015/lib/desy-views/components/accordion/accordion.component.js +30 -13
- package/esm2015/lib/desy-views/components/accordion-history/accordion-history-item/accordion-history-item.component.js +31 -0
- package/esm2015/lib/desy-views/components/accordion-history/accordion-history.component.js +15 -0
- package/esm2015/lib/desy-views/components/accordion-history/accordion-item-hide-button/accordion-item-hide-button.component.js +14 -0
- package/esm2015/lib/desy-views/components/accordion-history/accordion-item-show-button/accordion-item-show-button.component.js +14 -0
- package/esm2015/lib/desy-views/components/alert/alert.component.js +1 -7
- package/esm2015/lib/desy-views/components/collapsible/collapsible.component.js +4 -11
- package/esm2015/lib/desy-views/components/description-list/description-list.component.js +2 -8
- package/esm2015/lib/desy-views/components/details/details.component.js +1 -12
- package/esm2015/lib/desy-views/components/item/item.component.js +23 -15
- package/esm2015/lib/desy-views/components/media-object/media-object-figure/media-object-figure.component.js +11 -0
- package/esm2015/lib/desy-views/components/media-object/media-object.component.js +49 -11
- package/esm2015/lib/desy-views/components/spinner/spinner.component.js +33 -4
- package/esm2015/lib/desy-views/components/status/status.component.js +37 -14
- package/esm2015/lib/desy-views/components/status-item/status-item.component.js +33 -10
- package/esm2015/lib/desy-views/components/tabs/tabs.component.js +38 -19
- package/esm2015/lib/desy-views/components/tooltip/tooltip.component.js +34 -11
- package/esm2015/lib/desy-views/desy-views.module.js +17 -2
- package/esm2015/lib/desy-views/services/alert.service.js +8 -9
- package/esm2015/lib/shared/components/accessibility-and-text-or-html-required/accessibility-and-text-or-html-required.component.js +1 -1
- package/esm2015/lib/shared/components/text-or-html-required/text-or-html-required.component.js +1 -13
- package/esm2015/lib/shared/shared.module.js +1 -4
- package/esm2015/lib/shared/utils/search-utils.js +22 -1
- package/esm2015/public-api.js +5 -1
- package/fesm2015/desy-angular.js +1417 -671
- package/fesm2015/desy-angular.js.map +1 -1
- package/lib/desy-buttons/components/button/button.component.d.ts +2 -2
- package/lib/desy-buttons/components/dropdown/dropdown.component.d.ts +5 -4
- package/lib/desy-buttons/components/toggle/toggle.component.d.ts +2 -0
- package/lib/desy-commons/components/description/description.component.d.ts +1 -0
- package/lib/desy-commons/components/divider/divider.component.d.ts +6 -0
- package/lib/desy-commons/components/icon/icon.component.d.ts +1 -0
- package/lib/desy-commons/interfaces/description-data.d.ts +1 -0
- package/lib/desy-commons/interfaces/divider-data.d.ts +4 -0
- package/lib/desy-commons/interfaces/icon-data.d.ts +1 -0
- package/lib/desy-commons/interfaces/index.d.ts +1 -0
- package/lib/desy-forms/components/character-count/character-count.component.d.ts +0 -1
- package/lib/desy-forms/components/checkboxes/checkbox-item/checkbox-item.component.d.ts +1 -1
- package/lib/desy-forms/components/date-input/date-input-day/date-input-day.component.d.ts +2 -3
- package/lib/desy-forms/components/date-input/date-input-month/date-input-month.component.d.ts +2 -3
- package/lib/desy-forms/components/date-input/date-input-year/date-input-year.component.d.ts +2 -3
- package/lib/desy-forms/components/date-input/date-input.component.d.ts +6 -5
- package/lib/desy-forms/components/file-upload/file-upload.component.d.ts +3 -2
- package/lib/desy-forms/components/input/input.component.d.ts +8 -4
- package/lib/desy-forms/components/input-group/input-group-input/input-group-input.component.d.ts +3 -3
- package/lib/desy-forms/components/input-group/input-group-select/input-group-select.component.d.ts +3 -3
- package/lib/desy-forms/components/input-group/input-group.component.d.ts +4 -2
- package/lib/desy-forms/components/radios/radio-item/radio-item.component.d.ts +1 -1
- package/lib/desy-forms/components/search-bar/search-bar.component.d.ts +5 -6
- package/lib/desy-forms/components/select/select.component.d.ts +5 -5
- package/lib/desy-forms/components/textarea/textarea.component.d.ts +5 -4
- package/lib/desy-forms/components/tree/tree.component.d.ts +1 -1
- package/lib/desy-forms/directives/condition.directive.d.ts +2 -2
- package/lib/desy-forms/interfaces/item-input-group-data.d.ts +1 -0
- package/lib/desy-modals/components/dialog/dialog.component.d.ts +1 -1
- package/lib/desy-modals/components/modal/modal-button-loader-primary/modal-button-loader-primary.component.d.ts +8 -0
- package/lib/desy-modals/components/modal/modal-button-loader-secondary/modal-button-loader-secondary.component.d.ts +7 -0
- package/lib/desy-modals/components/modal/modal-button-primary/modal-button-primary.component.d.ts +3 -3
- package/lib/desy-modals/components/modal/modal-button-secondary/modal-button-secondary.component.d.ts +3 -3
- package/lib/desy-modals/components/modal/modal.component.d.ts +10 -4
- package/lib/desy-modals/interfaces/modal-button-data.d.ts +16 -0
- package/lib/desy-nav/components/breadcrumbs/breadcrumbs.component.d.ts +0 -1
- package/lib/desy-nav/components/error-summary/error-summary.component.d.ts +0 -1
- package/lib/desy-nav/components/footer/footer.component.d.ts +5 -0
- package/lib/desy-nav/components/header/header-dropdown/header-dropdown.component.d.ts +0 -1
- package/lib/desy-nav/components/header/header-offcanvas/header-offcanvas-button/header-offcanvas-button.component.d.ts +0 -1
- package/lib/desy-nav/components/header/header-offcanvas/header-offcanvas.component.d.ts +0 -1
- package/lib/desy-nav/components/header/header-subnav/header-subnav.component.d.ts +0 -1
- package/lib/desy-nav/components/header/header.component.d.ts +3 -0
- package/lib/desy-nav/components/menu-horizontal/menu-horizontal.component.d.ts +2 -4
- package/lib/desy-nav/components/menu-navigation/components/menu-navigation-item/menu-navigation-item.component.d.ts +22 -0
- package/lib/desy-nav/components/menu-navigation/components/menu-navigation-subitem/menu-navigation-subitem.component.d.ts +19 -0
- package/lib/desy-nav/components/menu-navigation/menu-navigation.component.d.ts +80 -0
- package/lib/desy-nav/components/menu-vertical/menu-vertical.component.d.ts +0 -1
- package/lib/desy-nav/components/menubar/menubar.component.d.ts +16 -3
- package/lib/desy-nav/components/nav/nav.component.d.ts +2 -4
- package/lib/desy-nav/components/notification/notification.component.d.ts +2 -4
- package/lib/desy-nav/components/skip-link/skip-link.component.d.ts +0 -1
- package/lib/desy-nav/interfaces/header-navigation-item-data.d.ts +1 -0
- package/lib/desy-nav/interfaces/index.d.ts +3 -0
- package/lib/desy-nav/interfaces/menu-navigation-item-sub-item-sub-item.d.ts +14 -0
- package/lib/desy-nav/interfaces/menu-navigation-item-sub-item.d.ts +6 -0
- package/lib/desy-nav/interfaces/menu-navigation.d.ts +17 -0
- package/lib/desy-pagination/components/pagination/pagination.component.d.ts +15 -4
- package/lib/desy-pagination/components/pagination-item-perpage/pagination-item-perpage.component.d.ts +7 -0
- package/lib/desy-pagination/components/pagination-listbox-label/pagination-listbox-label.component.d.ts +4 -0
- package/lib/desy-tables/components/table/table.component.d.ts +0 -1
- package/lib/desy-tables/components/table-advanced/components/table-advanced-header-cell.component.d.ts +7 -0
- package/lib/desy-tables/components/table-advanced/components/table-advanced-select.component.d.ts +9 -0
- package/lib/desy-tables/components/table-advanced/table-advanced.component.d.ts +8 -1
- package/lib/desy-tables/interfaces/head-cell-data.d.ts +3 -0
- package/lib/desy-views/components/accordion/accordion-item/accordion-item.component.d.ts +4 -0
- package/lib/desy-views/components/accordion/accordion.component.d.ts +14 -2
- package/lib/desy-views/components/accordion-history/accordion-history-item/accordion-history-item.component.d.ts +9 -0
- package/lib/desy-views/components/accordion-history/accordion-history.component.d.ts +6 -0
- package/lib/desy-views/components/accordion-history/accordion-item-hide-button/accordion-item-hide-button.component.d.ts +4 -0
- package/lib/desy-views/components/accordion-history/accordion-item-show-button/accordion-item-show-button.component.d.ts +4 -0
- package/lib/desy-views/components/collapsible/collapsible.component.d.ts +2 -3
- package/lib/desy-views/components/description-list/description-list.component.d.ts +0 -1
- package/lib/desy-views/components/details/details.component.d.ts +1 -5
- package/lib/desy-views/components/item/item.component.d.ts +8 -7
- package/lib/desy-views/components/media-object/media-object-figure/media-object-figure.component.d.ts +3 -0
- package/lib/desy-views/components/media-object/media-object.component.d.ts +22 -3
- package/lib/desy-views/components/spinner/spinner.component.d.ts +17 -2
- package/lib/desy-views/components/status/status.component.d.ts +16 -2
- package/lib/desy-views/components/status-item/status-item.component.d.ts +15 -2
- package/lib/desy-views/components/tabs/tabs.component.d.ts +16 -3
- package/lib/desy-views/components/tooltip/tooltip.component.d.ts +17 -4
- package/lib/shared/components/accessibility-and-text-or-html-required/accessibility-and-text-or-html-required.component.d.ts +1 -3
- package/lib/shared/components/text-or-html-required/text-or-html-required.component.d.ts +3 -11
- package/package.json +2 -2
- package/public-api.d.ts +4 -0
- package/esm2015/lib/shared/directives/content-empty.directive.js +0 -86
- package/lib/shared/directives/content-empty.directive.d.ts +0 -26
|
@@ -6,8 +6,6 @@ export class MenuHorizontalComponent extends AccessibilityComponent {
|
|
|
6
6
|
super(...arguments);
|
|
7
7
|
this.clickEvent = new EventEmitter();
|
|
8
8
|
}
|
|
9
|
-
ngOnChanges(changes) {
|
|
10
|
-
}
|
|
11
9
|
onClick(event, item) {
|
|
12
10
|
const itemsActiveChange = [];
|
|
13
11
|
if (!item.active) {
|
|
@@ -37,19 +35,8 @@ export class MenuHorizontalComponent extends AccessibilityComponent {
|
|
|
37
35
|
}
|
|
38
36
|
getItemList() {
|
|
39
37
|
const itemList = this.itemComponents && this.itemComponents.length > 0 ? this.itemComponents.toArray() : this.items;
|
|
40
|
-
if (!itemList || itemList.length === 0) {
|
|
41
|
-
throw new Error(`items are required`);
|
|
42
|
-
}
|
|
43
|
-
itemList.forEach(item => {
|
|
44
|
-
if (!item.routerLink && !item.href) {
|
|
45
|
-
throw Error('item routerLink or href are required');
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
38
|
return itemList;
|
|
49
39
|
}
|
|
50
|
-
handleEmptyItem(position) {
|
|
51
|
-
throw new Error(`item content, html or text are required at position ${position}`);
|
|
52
|
-
}
|
|
53
40
|
getItemId(item, index) {
|
|
54
41
|
let id;
|
|
55
42
|
if (item.id) {
|
|
@@ -67,7 +54,7 @@ export class MenuHorizontalComponent extends AccessibilityComponent {
|
|
|
67
54
|
MenuHorizontalComponent.decorators = [
|
|
68
55
|
{ type: Component, args: [{
|
|
69
56
|
selector: 'desy-menu-horizontal',
|
|
70
|
-
template: "<!-- menu-horizontal -->\r\n<nav [class]=\"['c-menu-horizontal', classes] | makeHtmlList\"\r\n [attr.id]=\"id ? id : null\"\r\n [attr.role]=\"role ? role : null\"\r\n [attr.aria-label]=\"ariaLabel ? ariaLabel : null\"\r\n [attr.aria-describedby]=\"ariaDescribedBy ? ariaDescribedBy : null\"\r\n [attr.aria-labelledby]=\"ariaLabelledBy ? ariaLabelledBy : null\"\r\n [attr.aria-hidden]=\"ariaHidden ? ariaHidden : null\"\r\n [attr.aria-disabled]=\"ariaDisabled ? ariaDisabled : null\"\r\n [attr.aria-controls]=\"ariaControls ? ariaControls : null\"\r\n [attr.aria-current]=\"ariaCurrent ? ariaCurrent : null\"\r\n [attr.aria-live]=\"ariaLive ? ariaLive : null\"\r\n [attr.aria-expanded]=\"ariaExpanded ? ariaExpanded : null\"\r\n [attr.aria-errormessage]=\"ariaErrorMessage ? ariaErrorMessage : null\"\r\n [attr.aria-haspopup]=\"ariaHasPopup ? ariaHasPopup : null\"\r\n [attr.tabindex]=\"tabindex ? tabindex : null\">\r\n <ul class=\"c-menu-horizontal__list lg:flex lg:flex-wrap\">\r\n <ng-container *ngFor=\"let item of getItemList(); index as i\">\r\n <li *ngIf=\"item\">\r\n <span *ngIf=\"item.active; else elseBlock\" [attr.id]=\"getItemId(item, i)\"\r\n [class]=\"['c-menu-horizontal__active flex items-center relative py-sm lg:px-lg lg:py-base border border-transparent truncate font-semibold', item.classes] | makeHtmlList\"\r\n [attr.title]=\"item.title ? item.title : null\"\r\n [attr.role]=\"item.role ? item.role : null\"\r\n aria-current=\"page\"\r\n [attr.aria-label]=\"item.ariaLabel ? item.ariaLabel : null\"\r\n [attr.aria-describedby]=\"item.ariaDescribedBy ? item.ariaDescribedBy : null\"\r\n [attr.aria-labelledby]=\"item.ariaLabelledBy ? item.ariaLabelledBy : null\"\r\n [attr.aria-hidden]=\"item.ariaHidden ? item.ariaHidden : null\"\r\n [attr.aria-disabled]=\"item.ariaDisabled ? item.ariaDisabled : null\"\r\n [attr.aria-controls]=\"item.ariaControls ? item.ariaControls : null\"\r\n [attr.aria-live]=\"item.ariaLive ? item.ariaLive : null\"\r\n [attr.aria-expanded]=\"item.ariaExpanded ? item.ariaExpanded : null\"\r\n [attr.aria-errormessage]=\"item.ariaErrorMessage ? item.ariaErrorMessage : null\"\r\n [attr.aria-haspopup]=\"item.ariaHasPopup ? item.ariaHasPopup : null\"\r\n [attr.tabindex]=\"item.tabindex ? item.tabindex : null\">\r\n <strong
|
|
57
|
+
template: "<!-- menu-horizontal -->\r\n<nav [class]=\"['c-menu-horizontal', classes] | makeHtmlList\"\r\n [attr.id]=\"id ? id : null\"\r\n [attr.role]=\"role ? role : null\"\r\n [attr.aria-label]=\"ariaLabel ? ariaLabel : null\"\r\n [attr.aria-describedby]=\"ariaDescribedBy ? ariaDescribedBy : null\"\r\n [attr.aria-labelledby]=\"ariaLabelledBy ? ariaLabelledBy : null\"\r\n [attr.aria-hidden]=\"ariaHidden ? ariaHidden : null\"\r\n [attr.aria-disabled]=\"ariaDisabled ? ariaDisabled : null\"\r\n [attr.aria-controls]=\"ariaControls ? ariaControls : null\"\r\n [attr.aria-current]=\"ariaCurrent ? ariaCurrent : null\"\r\n [attr.aria-live]=\"ariaLive ? ariaLive : null\"\r\n [attr.aria-expanded]=\"ariaExpanded ? ariaExpanded : null\"\r\n [attr.aria-errormessage]=\"ariaErrorMessage ? ariaErrorMessage : null\"\r\n [attr.aria-haspopup]=\"ariaHasPopup ? ariaHasPopup : null\"\r\n [attr.tabindex]=\"tabindex ? tabindex : null\">\r\n <ul class=\"c-menu-horizontal__list lg:flex lg:flex-wrap\">\r\n <ng-container *ngFor=\"let item of getItemList(); index as i\">\r\n <li *ngIf=\"item\">\r\n <span *ngIf=\"item.active; else elseBlock\" [attr.id]=\"getItemId(item, i)\"\r\n [class]=\"['c-menu-horizontal__active flex items-center relative py-sm lg:px-lg lg:py-base border border-transparent truncate font-semibold', item.classes] | makeHtmlList\"\r\n [attr.title]=\"item.title ? item.title : null\"\r\n [attr.role]=\"item.role ? item.role : null\"\r\n aria-current=\"page\"\r\n [attr.aria-label]=\"item.ariaLabel ? item.ariaLabel : null\"\r\n [attr.aria-describedby]=\"item.ariaDescribedBy ? item.ariaDescribedBy : null\"\r\n [attr.aria-labelledby]=\"item.ariaLabelledBy ? item.ariaLabelledBy : null\"\r\n [attr.aria-hidden]=\"item.ariaHidden ? item.ariaHidden : null\"\r\n [attr.aria-disabled]=\"item.ariaDisabled ? item.ariaDisabled : null\"\r\n [attr.aria-controls]=\"item.ariaControls ? item.ariaControls : null\"\r\n [attr.aria-live]=\"item.ariaLive ? item.ariaLive : null\"\r\n [attr.aria-expanded]=\"item.ariaExpanded ? item.ariaExpanded : null\"\r\n [attr.aria-errormessage]=\"item.ariaErrorMessage ? item.ariaErrorMessage : null\"\r\n [attr.aria-haspopup]=\"item.ariaHasPopup ? item.ariaHasPopup : null\"\r\n [attr.tabindex]=\"item.tabindex ? item.tabindex : null\">\r\n <strong>\r\n <ng-container *desyCustomInnerContent=\"{ component: item, html: item.html, text: item.text }\"></ng-container>\r\n </strong>\r\n </span>\r\n <ng-template #elseBlock>\r\n <a *ngIf=\"item.routerLink && !item.href\" (click)=\"onClick($event, item)\"\r\n [attr.id]=\"getItemId(item, i)\"\r\n [routerLink]=\"item.routerLink\"\r\n [fragment]=\"item.fragment\"\r\n [class]=\"['c-menu-horizontal__link relative flex items-center py-sm lg:px-lg lg:py-base border border-transparent text-black hover:text-primary-base underline truncate focus:outline-none', item.classes] | makeHtmlList\"\r\n [ngClass]=\"{'no-underline pointer-events-none': item.disabled}\"\r\n [attr.disabled]=\"item.disabled ? 'disabled' : null\"\r\n [attr.aria-disabled]=\"item.disabled ? item.disabled : null\"\r\n [attr.tabindex]=\"item.disabled ? -1 : item.tabindex\"\r\n [attr.title]=\"item.title ? item.title : null\"\r\n [attr.role]=\"item.role ? item.role : null\"\r\n [attr.aria-label]=\"item.ariaLabel ? item.ariaLabel : null\"\r\n [attr.aria-describedby]=\"item.ariaDescribedBy ? item.ariaDescribedBy : null\"\r\n [attr.aria-labelledby]=\"item.ariaLabelledBy ? item.ariaLabelledBy : null\"\r\n [attr.aria-hidden]=\"item.ariaHidden ? item.ariaHidden : null\"\r\n [attr.aria-controls]=\"item.ariaControls ? item.ariaControls : null\"\r\n [attr.aria-current]=\"item.ariaCurrent ? item.ariaCurrent : null\"\r\n [attr.aria-live]=\"item.ariaLive ? item.ariaLive : null\"\r\n [attr.aria-expanded]=\"item.ariaExpanded ? item.ariaExpanded : null\"\r\n [attr.aria-errormessage]=\"item.ariaErrorMessage ? item.ariaErrorMessage : null\"\r\n [attr.aria-haspopup]=\"item.ariaHasPopup ? item.ariaHasPopup : null\">\r\n <span class=\"flex items-center pointer-events-none\">\r\n <ng-container *desyCustomInnerContent=\"{ component: item, html: item.html, text: item.text }\"></ng-container>\r\n </span>\r\n </a>\r\n <a *ngIf=\"!item.routerLink && item.href\" (click)=\"onClick($event, item)\"\r\n [attr.id]=\"getItemId(item, i)\"\r\n [href]=\"item.href | externalHref\"\r\n [target]=\"item.target\"\r\n [class]=\"['c-menu-horizontal__link relative flex items-center py-sm lg:px-lg lg:py-base border border-transparent text-black hover:text-primary-base underline truncate focus:outline-none', item.classes] | makeHtmlList\"\r\n [ngClass]=\"{'no-underline pointer-events-none': item.disabled}\"\r\n [attr.disabled]=\"item.disabled ? 'disabled' : null\"\r\n [attr.aria-disabled]=\"item.disabled ? item.disabled : null\"\r\n [attr.tabindex]=\"item.disabled ? -1 : item.tabindex\"\r\n [attr.title]=\"item.title ? item.title : null\"\r\n [attr.role]=\"item.role ? item.role : null\"\r\n [attr.aria-label]=\"item.ariaLabel ? item.ariaLabel : null\"\r\n [attr.aria-describedby]=\"item.ariaDescribedBy ? item.ariaDescribedBy : null\"\r\n [attr.aria-labelledby]=\"item.ariaLabelledBy ? item.ariaLabelledBy : null\"\r\n [attr.aria-hidden]=\"item.ariaHidden ? item.ariaHidden : null\"\r\n [attr.aria-controls]=\"item.ariaControls ? item.ariaControls : null\"\r\n [attr.aria-current]=\"item.ariaCurrent ? item.ariaCurrent : null\"\r\n [attr.aria-live]=\"item.ariaLive ? item.ariaLive : null\"\r\n [attr.aria-expanded]=\"item.ariaExpanded ? item.ariaExpanded : null\"\r\n [attr.aria-errormessage]=\"item.ariaErrorMessage ? item.ariaErrorMessage : null\"\r\n [attr.aria-haspopup]=\"item.ariaHasPopup ? item.ariaHasPopup : null\">\r\n <span class=\"flex items-center pointer-events-none\">\r\n <ng-container *desyCustomInnerContent=\"{ component: item, html: item.html, text: item.text }\"></ng-container>\r\n </span>\r\n </a>\r\n </ng-template>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</nav>\r\n<!-- /menu-horizontal -->\r\n"
|
|
71
58
|
},] }
|
|
72
59
|
];
|
|
73
60
|
MenuHorizontalComponent.propDecorators = {
|
|
@@ -78,4 +65,4 @@ MenuHorizontalComponent.propDecorators = {
|
|
|
78
65
|
itemComponents: [{ type: ContentChildren, args: [MenuHorizontalItemComponent,] }],
|
|
79
66
|
clickEvent: [{ type: Output }]
|
|
80
67
|
};
|
|
81
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1ob3Jpem9udGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Rlc3ktYW5ndWxhci9zcmMvb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W1JZChpdGVtOiBNZW51SG9yaXpvbnRhbEl0ZW1EYXRhLCBpbmRleDogbnVtYmVyKTogc3RyaW5nIHtcclxuICAgIGxldCBpZDtcclxuICAgIGlmIChpdGVtLmlkKSB7XHJcbiAgICAgIGlkID0gaXRlbS5pZDtcclxuICAgIH0gZWxzZSBpZiAoaW5kZXggPT09IDApIHtcclxuICAgICAgaWQgPSB0aGlzLmdldElkUHJlZml4KCk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICBpZCA9IHRoaXMuZ2V0SWRQcmVmaXgoKSArICctJyArIGluZGV4O1xyXG4gICAgfVxyXG4gICAgcmV0dXJuIGlkO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component, ContentChildren, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { ContentBaseComponent } from '../../../../../shared/components/content-base/content-base.component';
|
|
3
|
+
import { MenuNavigationSubitemComponent } from '../menu-navigation-subitem/menu-navigation-subitem.component';
|
|
4
|
+
export class MenuNavigationItemComponent extends ContentBaseComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.selected = new EventEmitter();
|
|
8
|
+
}
|
|
9
|
+
getSubItems() {
|
|
10
|
+
return this.subItems.toArray();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
MenuNavigationItemComponent.decorators = [
|
|
14
|
+
{ type: Component, args: [{
|
|
15
|
+
selector: 'desy-menu-navigation-item',
|
|
16
|
+
template: "<ng-template #contentTemplate>\r\n <ng-content></ng-content>\r\n</ng-template> "
|
|
17
|
+
},] }
|
|
18
|
+
];
|
|
19
|
+
MenuNavigationItemComponent.propDecorators = {
|
|
20
|
+
href: [{ type: Input }],
|
|
21
|
+
target: [{ type: Input }],
|
|
22
|
+
text: [{ type: Input }],
|
|
23
|
+
html: [{ type: Input }],
|
|
24
|
+
id: [{ type: Input }],
|
|
25
|
+
expanded: [{ type: Input }],
|
|
26
|
+
divider: [{ type: Input }],
|
|
27
|
+
disabled: [{ type: Input }],
|
|
28
|
+
sub: [{ type: Input }],
|
|
29
|
+
classes: [{ type: Input }],
|
|
30
|
+
title: [{ type: Input }],
|
|
31
|
+
active: [{ type: Input }],
|
|
32
|
+
selected: [{ type: Output }],
|
|
33
|
+
subItems: [{ type: ContentChildren, args: [MenuNavigationSubitemComponent,] }]
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1uYXZpZ2F0aW9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGVzeS1hbmd1bGFyL3NyYy9saWIvZGVzeS1uYXYvY29tcG9uZW50cy9tZW51LW5hdmlnYXRpb24vY29tcG9uZW50cy9tZW51LW5hdmlnYXRpb24taXRlbS9tZW51LW5hdmlnYXRpb24taXRlbS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxlQUFlLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQWEsTUFBTSxlQUFlLENBQUM7QUFHbkcsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sc0VBQXNFLENBQUM7QUFFNUcsT0FBTyxFQUFFLDhCQUE4QixFQUFFLE1BQU0sOERBQThELENBQUM7QUFNOUcsTUFBTSxPQUFPLDJCQUE0QixTQUFRLG9CQUFvQjtJQUpyRTs7UUFvQlksYUFBUSxHQUFHLElBQUksWUFBWSxFQUFPLENBQUM7SUFRL0MsQ0FBQztJQUpRLFdBQVc7UUFDaEIsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2pDLENBQUM7OztZQTFCRixTQUFTLFNBQUM7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YmxpYyBnZXRTdWJJdGVtcygpOiBNZW51TmF2aWdhdGlvblN1Yml0ZW1Db21wb25lbnRbXSB7XHJcbiAgICByZXR1cm4gdGhpcy5zdWJJdGVtcy50b0FycmF5KCk7XHJcbiAgfVxyXG5cclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { ContentBaseComponent } from '../../../../../shared/components';
|
|
3
|
+
export class MenuNavigationSubitemComponent extends ContentBaseComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.selected = new EventEmitter();
|
|
7
|
+
this.checkedChange = new EventEmitter();
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
MenuNavigationSubitemComponent.decorators = [
|
|
11
|
+
{ type: Component, args: [{
|
|
12
|
+
selector: 'desy-menu-navigation-subitem',
|
|
13
|
+
template: "<ng-template #contentTemplate>\r\n <ng-content></ng-content>\r\n</ng-template> "
|
|
14
|
+
},] }
|
|
15
|
+
];
|
|
16
|
+
MenuNavigationSubitemComponent.propDecorators = {
|
|
17
|
+
href: [{ type: Input }],
|
|
18
|
+
target: [{ type: Input }],
|
|
19
|
+
text: [{ type: Input }],
|
|
20
|
+
html: [{ type: Input }],
|
|
21
|
+
id: [{ type: Input }],
|
|
22
|
+
expanded: [{ type: Input }],
|
|
23
|
+
divider: [{ type: Input }],
|
|
24
|
+
disabled: [{ type: Input }],
|
|
25
|
+
sub: [{ type: Input }],
|
|
26
|
+
classes: [{ type: Input }],
|
|
27
|
+
active: [{ type: Input }],
|
|
28
|
+
selected: [{ type: Output }],
|
|
29
|
+
checkedChange: [{ type: Output }]
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1uYXZpZ2F0aW9uLXN1Yml0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvd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