@fundamental-ngx/core 0.59.1-rc.8 → 0.59.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/fundamental-ngx-core-avatar-group-legacy.mjs +33 -50
- package/fesm2022/fundamental-ngx-core-avatar-group-legacy.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-avatar-group.mjs +9 -11
- package/fesm2022/fundamental-ngx-core-avatar-group.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-avatar.mjs +206 -293
- package/fesm2022/fundamental-ngx-core-avatar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-breadcrumb.mjs +25 -12
- package/fesm2022/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-calendar.mjs +11 -14
- package/fesm2022/fundamental-ngx-core-calendar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-card.mjs +13 -26
- package/fesm2022/fundamental-ngx-core-card.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-carousel.mjs +11 -11
- package/fesm2022/fundamental-ngx-core-carousel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs +33 -7
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dialog.mjs +13 -17
- package/fesm2022/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dynamic-page.mjs +32 -24
- package/fesm2022/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-fixed-card-layout.mjs +28 -30
- package/fesm2022/fundamental-ngx-core-fixed-card-layout.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-grid-list.mjs +12 -10
- package/fesm2022/fundamental-ngx-core-grid-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-illustrated-message.mjs +202 -100
- package/fesm2022/fundamental-ngx-core-illustrated-message.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-layout-panel.mjs +72 -231
- package/fesm2022/fundamental-ngx-core-layout-panel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-list.mjs +12 -12
- package/fesm2022/fundamental-ngx-core-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-menu.mjs +28 -28
- package/fesm2022/fundamental-ngx-core-menu.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-strip.mjs +85 -84
- package/fesm2022/fundamental-ngx-core-message-strip.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-micro-process-flow.mjs +21 -24
- package/fesm2022/fundamental-ngx-core-micro-process-flow.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs +19 -12
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-input.mjs +46 -39
- package/fesm2022/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-nested-list.mjs +66 -103
- package/fesm2022/fundamental-ngx-core-nested-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-notification.mjs +63 -27
- package/fesm2022/fundamental-ngx-core-notification.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-object-marker.mjs +69 -59
- package/fesm2022/fundamental-ngx-core-object-marker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-object-status.mjs +92 -118
- package/fesm2022/fundamental-ngx-core-object-status.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-overflow-layout.mjs +27 -29
- package/fesm2022/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-pagination.mjs +17 -18
- package/fesm2022/fundamental-ngx-core-pagination.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-panel.mjs +7 -9
- package/fesm2022/fundamental-ngx-core-panel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-popover.mjs +10 -15
- package/fesm2022/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-product-switch.mjs +12 -15
- package/fesm2022/fundamental-ngx-core-product-switch.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-resizable-card-layout.mjs +18 -20
- package/fesm2022/fundamental-ngx-core-resizable-card-layout.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-segmented-button.mjs +8 -11
- package/fesm2022/fundamental-ngx-core-segmented-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-select.mjs +6 -8
- package/fesm2022/fundamental-ngx-core-select.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-settings.mjs +9 -12
- package/fesm2022/fundamental-ngx-core-settings.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-shellbar.mjs +48 -34
- package/fesm2022/fundamental-ngx-core-shellbar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-slider.mjs +30 -31
- package/fesm2022/fundamental-ngx-core-slider.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-status-indicator.mjs +137 -131
- package/fesm2022/fundamental-ngx-core-status-indicator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tabs.mjs +21 -17
- package/fesm2022/fundamental-ngx-core-tabs.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tile.mjs +375 -631
- package/fesm2022/fundamental-ngx-core-tile.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-time.mjs +7 -9
- package/fesm2022/fundamental-ngx-core-time.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-token.mjs +11 -13
- package/fesm2022/fundamental-ngx-core-token.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-toolbar.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-toolbar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tree.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-tree.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-user-menu.mjs +63 -21
- package/fesm2022/fundamental-ngx-core-user-menu.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-wizard.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-wizard.mjs.map +1 -1
- package/package.json +4 -4
- package/types/fundamental-ngx-core-avatar-group-legacy.d.ts +15 -17
- package/types/fundamental-ngx-core-avatar-group.d.ts +1 -1
- package/types/fundamental-ngx-core-avatar.d.ts +66 -86
- package/types/fundamental-ngx-core-breadcrumb.d.ts +13 -5
- package/types/fundamental-ngx-core-calendar.d.ts +3 -4
- package/types/fundamental-ngx-core-card.d.ts +4 -11
- package/types/fundamental-ngx-core-carousel.d.ts +3 -3
- package/types/fundamental-ngx-core-combobox.d.ts +8 -1
- package/types/fundamental-ngx-core-dialog.d.ts +2 -4
- package/types/fundamental-ngx-core-dynamic-page.d.ts +0 -6
- package/types/fundamental-ngx-core-fixed-card-layout.d.ts +7 -7
- package/types/fundamental-ngx-core-grid-list.d.ts +6 -4
- package/types/fundamental-ngx-core-illustrated-message.d.ts +165 -31
- package/types/fundamental-ngx-core-layout-panel.d.ts +19 -131
- package/types/fundamental-ngx-core-list.d.ts +8 -6
- package/types/fundamental-ngx-core-menu.d.ts +16 -13
- package/types/fundamental-ngx-core-message-strip.d.ts +5 -2
- package/types/fundamental-ngx-core-micro-process-flow.d.ts +8 -6
- package/types/fundamental-ngx-core-multi-combobox.d.ts +8 -5
- package/types/fundamental-ngx-core-multi-input.d.ts +24 -16
- package/types/fundamental-ngx-core-nested-list.d.ts +19 -33
- package/types/fundamental-ngx-core-notification.d.ts +42 -19
- package/types/fundamental-ngx-core-object-marker.d.ts +47 -27
- package/types/fundamental-ngx-core-object-status.d.ts +49 -48
- package/types/fundamental-ngx-core-overflow-layout.d.ts +10 -10
- package/types/fundamental-ngx-core-pagination.d.ts +7 -8
- package/types/fundamental-ngx-core-panel.d.ts +2 -4
- package/types/fundamental-ngx-core-popover.d.ts +7 -5
- package/types/fundamental-ngx-core-product-switch.d.ts +5 -4
- package/types/fundamental-ngx-core-resizable-card-layout.d.ts +10 -8
- package/types/fundamental-ngx-core-segmented-button.d.ts +5 -4
- package/types/fundamental-ngx-core-select.d.ts +4 -5
- package/types/fundamental-ngx-core-settings.d.ts +7 -10
- package/types/fundamental-ngx-core-shellbar.d.ts +23 -14
- package/types/fundamental-ngx-core-slider.d.ts +18 -13
- package/types/fundamental-ngx-core-status-indicator.d.ts +42 -58
- package/types/fundamental-ngx-core-tabs.d.ts +9 -7
- package/types/fundamental-ngx-core-tile.d.ts +114 -243
- package/types/fundamental-ngx-core-time.d.ts +5 -4
- package/types/fundamental-ngx-core-token.d.ts +5 -4
- package/types/fundamental-ngx-core-tree.d.ts +1 -1
- package/types/fundamental-ngx-core-user-menu.d.ts +25 -21
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { inject, ElementRef, Input, Directive, Component, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, EventEmitter, HostListener, ContentChild, HostBinding, Output, DestroyRef, Inject, Injectable, ViewChild, INJECTOR, ContentChildren, forwardRef, Optional, NgModule } from '@angular/core';
|
|
3
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
4
|
import * as i5 from 'rxjs';
|
|
5
5
|
import { Subject, merge, Subscription, combineLatest, startWith } from 'rxjs';
|
|
6
|
-
import
|
|
7
|
-
import { destroyObservable, KeyUtil } from '@fundamental-ngx/cdk/utils';
|
|
6
|
+
import { RtlService, destroyObservable, KeyUtil } from '@fundamental-ngx/cdk/utils';
|
|
8
7
|
import { IconComponent } from '@fundamental-ngx/core/icon';
|
|
9
8
|
import { takeUntil, filter } from 'rxjs/operators';
|
|
10
9
|
import { RIGHT_ARROW, LEFT_ARROW, ENTER, SPACE } from '@angular/cdk/keycodes';
|
|
@@ -33,46 +32,39 @@ class NestedItemService {
|
|
|
33
32
|
|
|
34
33
|
let uniqueId = 0;
|
|
35
34
|
class NestedListHeaderDirective {
|
|
36
|
-
|
|
37
|
-
constructor(_elementRef) {
|
|
38
|
-
this._elementRef = _elementRef;
|
|
35
|
+
constructor() {
|
|
39
36
|
/** Id of the element. */
|
|
40
37
|
this.id = `fd-nested-list-group-header-${++uniqueId}`;
|
|
41
38
|
/** @hidden */
|
|
42
|
-
this.
|
|
39
|
+
this._elementRef = inject(ElementRef);
|
|
43
40
|
}
|
|
44
41
|
/** Get the header title */
|
|
45
42
|
get title() {
|
|
46
43
|
return this._elementRef.nativeElement.textContent;
|
|
47
44
|
}
|
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListHeaderDirective, deps: [
|
|
49
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: NestedListHeaderDirective, isStandalone: true, selector: "[fdNestedDirectivesHeader], [fd-nested-list-header]", inputs: { id: "id" }, host: { properties: { "attr.id": "
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
46
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: NestedListHeaderDirective, isStandalone: true, selector: "[fdNestedDirectivesHeader], [fd-nested-list-header]", inputs: { id: "id" }, host: { properties: { "attr.id": "id" }, classAttribute: "fd-nested-list__group-header" }, ngImport: i0 }); }
|
|
50
47
|
}
|
|
51
48
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListHeaderDirective, decorators: [{
|
|
52
49
|
type: Directive,
|
|
53
50
|
args: [{
|
|
54
51
|
selector: '[fdNestedDirectivesHeader], [fd-nested-list-header]',
|
|
55
|
-
|
|
52
|
+
host: {
|
|
53
|
+
class: 'fd-nested-list__group-header',
|
|
54
|
+
'[attr.id]': 'id'
|
|
55
|
+
}
|
|
56
56
|
}]
|
|
57
|
-
}],
|
|
57
|
+
}], propDecorators: { id: [{
|
|
58
58
|
type: Input
|
|
59
|
-
}, {
|
|
60
|
-
type: HostBinding,
|
|
61
|
-
args: ['attr.id']
|
|
62
|
-
}], fdNestedListHeaderClass: [{
|
|
63
|
-
type: HostBinding,
|
|
64
|
-
args: ['class.fd-nested-list__group-header']
|
|
65
59
|
}] } });
|
|
66
60
|
class NestedListIconComponent extends IconComponent {
|
|
67
61
|
constructor() {
|
|
68
62
|
super(...arguments);
|
|
69
63
|
/** Role attribute */
|
|
70
64
|
this.role = 'presentation';
|
|
71
|
-
/** @hidden */
|
|
72
|
-
this.fdNestedListIconClass = true;
|
|
73
65
|
}
|
|
74
66
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListIconComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.0", type: NestedListIconComponent, isStandalone: true, selector: "[fdNestedDirectivesIcon], [fd-nested-list-icon]", inputs: { role: "role" }, host: { properties: { "attr.role": "
|
|
67
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.0", type: NestedListIconComponent, isStandalone: true, selector: "[fdNestedDirectivesIcon], [fd-nested-list-icon]", inputs: { role: "role" }, host: { properties: { "attr.role": "role" }, classAttribute: "fd-nested-list__icon" }, usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
|
|
76
68
|
}
|
|
77
69
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListIconComponent, decorators: [{
|
|
78
70
|
type: Component,
|
|
@@ -80,65 +72,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
80
72
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
81
73
|
selector: '[fdNestedDirectivesIcon], [fd-nested-list-icon]',
|
|
82
74
|
template: `<ng-content></ng-content>`,
|
|
83
|
-
|
|
75
|
+
host: {
|
|
76
|
+
class: 'fd-nested-list__icon',
|
|
77
|
+
'[attr.role]': 'role'
|
|
78
|
+
}
|
|
84
79
|
}]
|
|
85
80
|
}], propDecorators: { role: [{
|
|
86
81
|
type: Input
|
|
87
|
-
}, {
|
|
88
|
-
type: HostBinding,
|
|
89
|
-
args: ['attr.role']
|
|
90
|
-
}], fdNestedListIconClass: [{
|
|
91
|
-
type: HostBinding,
|
|
92
|
-
args: ['class.fd-nested-list__icon']
|
|
93
82
|
}] } });
|
|
94
83
|
class NestedListTitleDirective {
|
|
95
|
-
|
|
96
|
-
constructor(elementRef) {
|
|
97
|
-
this.elementRef = elementRef;
|
|
84
|
+
constructor() {
|
|
98
85
|
/** @hidden */
|
|
99
|
-
this.
|
|
86
|
+
this._elementRef = inject(ElementRef);
|
|
100
87
|
}
|
|
101
88
|
/** Returns element's InnerText */
|
|
102
89
|
getInnerText() {
|
|
103
|
-
return this.
|
|
90
|
+
return this._elementRef?.nativeElement.textContent;
|
|
104
91
|
}
|
|
105
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListTitleDirective, deps: [
|
|
106
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: NestedListTitleDirective, isStandalone: true, selector: "[fdNestedDirectivesTitle], [fd-nested-list-title]", host: {
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
93
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: NestedListTitleDirective, isStandalone: true, selector: "[fdNestedDirectivesTitle], [fd-nested-list-title]", host: { classAttribute: "fd-nested-list__title" }, ngImport: i0 }); }
|
|
107
94
|
}
|
|
108
95
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListTitleDirective, decorators: [{
|
|
109
96
|
type: Directive,
|
|
110
97
|
args: [{
|
|
111
98
|
selector: '[fdNestedDirectivesTitle], [fd-nested-list-title]',
|
|
112
|
-
|
|
99
|
+
host: {
|
|
100
|
+
class: 'fd-nested-list__title'
|
|
101
|
+
}
|
|
113
102
|
}]
|
|
114
|
-
}]
|
|
115
|
-
type: HostBinding,
|
|
116
|
-
args: ['class.fd-nested-list__title']
|
|
117
|
-
}] } });
|
|
103
|
+
}] });
|
|
118
104
|
class NestedListExpandIconComponent {
|
|
119
|
-
|
|
120
|
-
constructor(_itemService, _changeDetRef, _rtlService) {
|
|
121
|
-
this._itemService = _itemService;
|
|
122
|
-
this._changeDetRef = _changeDetRef;
|
|
123
|
-
this._rtlService = _rtlService;
|
|
124
|
-
/** @hidden */
|
|
125
|
-
this.fdNestedListTitleClass = true;
|
|
126
|
-
/** @hidden */
|
|
127
|
-
this.fdButtonClass = true;
|
|
105
|
+
constructor() {
|
|
128
106
|
/**
|
|
129
107
|
* @hidden
|
|
130
108
|
* Attribute controlled by the parent `NestedItemDirective`
|
|
131
109
|
*/
|
|
132
|
-
this.expanded = false;
|
|
110
|
+
this.expanded = signal(false, ...(ngDevMode ? [{ debugName: "expanded" }] : []));
|
|
133
111
|
/** @hidden */
|
|
134
|
-
this.
|
|
112
|
+
this.expandIcon = computed(() => {
|
|
113
|
+
if (this.expanded()) {
|
|
114
|
+
return 'navigation-down-arrow';
|
|
115
|
+
}
|
|
116
|
+
return this._rtlService?.rtl() ? 'navigation-left-arrow' : 'navigation-right-arrow';
|
|
117
|
+
}, ...(ngDevMode ? [{ debugName: "expandIcon" }] : []));
|
|
118
|
+
/** @hidden */
|
|
119
|
+
this._itemService = inject(NestedItemService);
|
|
135
120
|
/** @hidden */
|
|
136
|
-
this.
|
|
121
|
+
this._rtlService = inject(RtlService, { optional: true });
|
|
137
122
|
}
|
|
138
123
|
/** Mouse event handler */
|
|
139
124
|
onClick(event) {
|
|
140
|
-
this.expanded
|
|
141
|
-
this._itemService.toggle.next(this.expanded);
|
|
125
|
+
this.expanded.update((v) => !v);
|
|
126
|
+
this._itemService.toggle.next(this.expanded());
|
|
142
127
|
event.stopPropagation();
|
|
143
128
|
}
|
|
144
129
|
/** Handler for focus events */
|
|
@@ -147,13 +132,12 @@ class NestedListExpandIconComponent {
|
|
|
147
132
|
}
|
|
148
133
|
/** @hidden */
|
|
149
134
|
changeExpandedState(expanded) {
|
|
150
|
-
this.expanded
|
|
151
|
-
this._changeDetRef.detectChanges();
|
|
135
|
+
this.expanded.set(expanded);
|
|
152
136
|
}
|
|
153
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListExpandIconComponent, deps: [
|
|
154
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.0", type: NestedListExpandIconComponent, isStandalone: true, selector: "[fdNestedListExpandIcon], [fd-nested-list-expand-icon]", host: { attributes: { "aria-haspopup": "true", "tabindex": "-1" }, listeners: { "click": "onClick($event)", "focus": "onFocus()" }, properties: { "class.
|
|
137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListExpandIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
138
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.0", type: NestedListExpandIconComponent, isStandalone: true, selector: "[fdNestedListExpandIcon], [fd-nested-list-expand-icon]", host: { attributes: { "aria-haspopup": "true", "tabindex": "-1" }, listeners: { "click": "onClick($event)", "focus": "onFocus()" }, properties: { "class.is-expanded": "expanded()", "attr.aria-expanded": "expanded()", "attr.aria-hidden": "true" }, classAttribute: "fd-nested-list__button fd-button" }, ngImport: i0, template: `
|
|
155
139
|
<ng-content></ng-content>
|
|
156
|
-
<fd-icon [glyph]="
|
|
140
|
+
<fd-icon [glyph]="expandIcon()"></fd-icon>
|
|
157
141
|
`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "fd-icon", inputs: ["glyph", "font", "color", "background", "class", "ariaLabel", "ariaHidden"], outputs: ["ariaHiddenChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
158
142
|
}
|
|
159
143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListExpandIconComponent, decorators: [{
|
|
@@ -163,40 +147,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
163
147
|
selector: '[fdNestedListExpandIcon], [fd-nested-list-expand-icon]',
|
|
164
148
|
template: `
|
|
165
149
|
<ng-content></ng-content>
|
|
166
|
-
<fd-icon [glyph]="
|
|
150
|
+
<fd-icon [glyph]="expandIcon()"></fd-icon>
|
|
167
151
|
`,
|
|
168
152
|
host: {
|
|
169
153
|
'aria-haspopup': 'true',
|
|
170
|
-
tabindex: '-1'
|
|
154
|
+
tabindex: '-1',
|
|
155
|
+
class: 'fd-nested-list__button fd-button',
|
|
156
|
+
'[class.is-expanded]': 'expanded()',
|
|
157
|
+
'[attr.aria-expanded]': 'expanded()',
|
|
158
|
+
'[attr.aria-hidden]': 'true',
|
|
159
|
+
'(click)': 'onClick($event)',
|
|
160
|
+
'(focus)': 'onFocus()'
|
|
171
161
|
},
|
|
172
162
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
173
163
|
encapsulation: ViewEncapsulation.None,
|
|
174
164
|
imports: [IconComponent]
|
|
175
165
|
}]
|
|
176
|
-
}]
|
|
177
|
-
type: Optional
|
|
178
|
-
}] }], propDecorators: { fdNestedListTitleClass: [{
|
|
179
|
-
type: HostBinding,
|
|
180
|
-
args: ['class.fd-nested-list__button']
|
|
181
|
-
}], fdButtonClass: [{
|
|
182
|
-
type: HostBinding,
|
|
183
|
-
args: ['class.fd-button']
|
|
184
|
-
}], expanded: [{
|
|
185
|
-
type: HostBinding,
|
|
186
|
-
args: ['class.is-expanded']
|
|
187
|
-
}, {
|
|
188
|
-
type: HostBinding,
|
|
189
|
-
args: ['attr.aria-expanded']
|
|
190
|
-
}], ariaHidden: [{
|
|
191
|
-
type: HostBinding,
|
|
192
|
-
args: ['attr.aria-hidden']
|
|
193
|
-
}], onClick: [{
|
|
194
|
-
type: HostListener,
|
|
195
|
-
args: ['click', ['$event']]
|
|
196
|
-
}], onFocus: [{
|
|
197
|
-
type: HostListener,
|
|
198
|
-
args: ['focus']
|
|
199
|
-
}] } });
|
|
166
|
+
}] });
|
|
200
167
|
|
|
201
168
|
class NestedLinkDirective {
|
|
202
169
|
/** @hidden */
|
|
@@ -779,20 +746,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
779
746
|
|
|
780
747
|
class NestedListPopoverComponent {
|
|
781
748
|
/** @hidden */
|
|
782
|
-
constructor(
|
|
783
|
-
this._keyboardNestService = _keyboardNestService;
|
|
784
|
-
this._itemService = _itemService;
|
|
785
|
-
this._rtlService = _rtlService;
|
|
749
|
+
constructor() {
|
|
786
750
|
/** @hidden
|
|
787
751
|
* For Internal Usage - Gets information about title, which should be displayed inside popover
|
|
788
752
|
*/
|
|
789
753
|
this.title = '';
|
|
790
754
|
/** @hidden */
|
|
791
|
-
this.
|
|
755
|
+
this.open = false;
|
|
792
756
|
/** @hidden */
|
|
793
|
-
this.placement
|
|
757
|
+
this.placement = computed(() => (this._rtlService?.rtl() ? 'left-start' : 'right-start'), ...(ngDevMode ? [{ debugName: "placement" }] : []));
|
|
794
758
|
/** @hidden */
|
|
795
|
-
this.
|
|
759
|
+
this._keyboardNestService = inject(NestedListKeyboardService);
|
|
760
|
+
/** @hidden */
|
|
761
|
+
this._itemService = inject(NestedItemService, { optional: true });
|
|
762
|
+
/** @hidden */
|
|
763
|
+
this._rtlService = inject(RtlService, { optional: true });
|
|
796
764
|
this._listenOnKeyboardRefresh();
|
|
797
765
|
if (this._itemService) {
|
|
798
766
|
this._itemService.popover = this;
|
|
@@ -836,30 +804,25 @@ class NestedListPopoverComponent {
|
|
|
836
804
|
}
|
|
837
805
|
});
|
|
838
806
|
}
|
|
839
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListPopoverComponent, deps: [
|
|
840
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.0", type: NestedListPopoverComponent, isStandalone: true, selector: "fd-nested-list-popover", inputs: { title: "title" }, host: {
|
|
807
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
808
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.0", type: NestedListPopoverComponent, isStandalone: true, selector: "fd-nested-list-popover", inputs: { title: "title" }, host: { classAttribute: "fd-nested-list__popover" }, queries: [{ propertyName: "linkDirective", first: true, predicate: NestedLinkDirective, descendants: true }, { propertyName: "contentDirective", first: true, predicate: NestedListContentDirective, descendants: true }], viewQueries: [{ propertyName: "popoverComponent", first: true, predicate: PopoverComponent, descendants: true }], ngImport: i0, template: "<fd-popover\n [placement]=\"placement()\"\n [triggers]=\"['click']\"\n [noArrow]=\"false\"\n [isOpen]=\"open\"\n (isOpenChange)=\"handleOpenChange($event)\"\n>\n <fd-popover-control>\n <ng-content select=\"[fd-nested-list-link]\"></ng-content>\n <ng-content select=\"[fd-nested-list-content]\"></ng-content>\n </fd-popover-control>\n <fd-popover-body class=\"fd-nested-list--text-only\">\n <a fd-nested-list-link class=\"fd-nested-list__popover-header\">\n <span fd-nested-list-title>{{ title }}</span>\n </a>\n <ng-content select=\"[fd-nested-list]\"></ng-content>\n <ng-content select=\"fd-prepared-nested-list\"></ng-content>\n </fd-popover-body>\n</fd-popover>\n", styles: [".fd-side-nav--condensed .fd-popover-container-custom .fd-nested-list__title{display:inline-flex}.fd-side-nav--condensed .fd-nested-list__popover-header{box-shadow:0 0 .25rem #00000026,inset 0 -.0625rem #d9d9d9}.fd-side-nav--condensed .fd-popover-custom{display:block}[dir=rtl] .fd-side-nav--condensed .fd-popover-container-custom .fd-nested-list__link,.fd-side-nav--condensed[dir=rtl] .fd-popover-container-custom .fd-nested-list__link{padding-left:1rem}\n"], dependencies: [{ kind: "component", type: PopoverComponent, selector: "fd-popover", inputs: ["title", "trigger", "fixedPosition", "id", "mobile", "mobileConfig", "preventSpaceKeyScroll"] }, { kind: "component", type: PopoverControlComponent, selector: "fd-popover-control, [fdPopoverControl]" }, { kind: "component", type: PopoverBodyComponent, selector: "fd-popover-body", inputs: ["minWidth", "maxWidth", "minHeight", "maxHeight"] }, { kind: "directive", type: NestedLinkDirective, selector: "[fdNestedLink], [fd-nested-list-link]", inputs: ["onClickCallback", "selected", "ariaDescribedby"], outputs: ["selectedChange"] }, { kind: "directive", type: NestedListTitleDirective, selector: "[fdNestedDirectivesTitle], [fd-nested-list-title]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
841
809
|
}
|
|
842
810
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NestedListPopoverComponent, decorators: [{
|
|
843
811
|
type: Component,
|
|
844
|
-
args: [{ selector: 'fd-nested-list-popover', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
812
|
+
args: [{ selector: 'fd-nested-list-popover', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
813
|
+
class: 'fd-nested-list__popover'
|
|
814
|
+
}, imports: [
|
|
845
815
|
PopoverComponent,
|
|
846
816
|
PopoverControlComponent,
|
|
847
817
|
PopoverBodyComponent,
|
|
848
818
|
NestedLinkDirective,
|
|
849
819
|
NestedListTitleDirective
|
|
850
|
-
], template: "<fd-popover\n [placement]=\"placement
|
|
851
|
-
}], ctorParameters: () => [
|
|
852
|
-
type: Optional
|
|
853
|
-
}] }, { type: i2.RtlService, decorators: [{
|
|
854
|
-
type: Optional
|
|
855
|
-
}] }], propDecorators: { title: [{
|
|
820
|
+
], template: "<fd-popover\n [placement]=\"placement()\"\n [triggers]=\"['click']\"\n [noArrow]=\"false\"\n [isOpen]=\"open\"\n (isOpenChange)=\"handleOpenChange($event)\"\n>\n <fd-popover-control>\n <ng-content select=\"[fd-nested-list-link]\"></ng-content>\n <ng-content select=\"[fd-nested-list-content]\"></ng-content>\n </fd-popover-control>\n <fd-popover-body class=\"fd-nested-list--text-only\">\n <a fd-nested-list-link class=\"fd-nested-list__popover-header\">\n <span fd-nested-list-title>{{ title }}</span>\n </a>\n <ng-content select=\"[fd-nested-list]\"></ng-content>\n <ng-content select=\"fd-prepared-nested-list\"></ng-content>\n </fd-popover-body>\n</fd-popover>\n", styles: [".fd-side-nav--condensed .fd-popover-container-custom .fd-nested-list__title{display:inline-flex}.fd-side-nav--condensed .fd-nested-list__popover-header{box-shadow:0 0 .25rem #00000026,inset 0 -.0625rem #d9d9d9}.fd-side-nav--condensed .fd-popover-custom{display:block}[dir=rtl] .fd-side-nav--condensed .fd-popover-container-custom .fd-nested-list__link,.fd-side-nav--condensed[dir=rtl] .fd-popover-container-custom .fd-nested-list__link{padding-left:1rem}\n"] }]
|
|
821
|
+
}], ctorParameters: () => [], propDecorators: { title: [{
|
|
856
822
|
type: Input
|
|
857
823
|
}], popoverComponent: [{
|
|
858
824
|
type: ViewChild,
|
|
859
825
|
args: [PopoverComponent]
|
|
860
|
-
}], popoverClass: [{
|
|
861
|
-
type: HostBinding,
|
|
862
|
-
args: ['class.fd-nested-list__popover']
|
|
863
826
|
}], linkDirective: [{
|
|
864
827
|
type: ContentChild,
|
|
865
828
|
args: [NestedLinkDirective]
|