@skyux/action-bars 5.5.0 → 5.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/bundles/skyux-action-bars.umd.js +252 -252
  2. package/documentation.json +29 -137
  3. package/esm2015/lib/modules/shared/sky-action-bars-resources.module.js +1 -1
  4. package/esm2015/lib/modules/shared/sky-action-bars-resources.module.js.map +1 -1
  5. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-actions.component.js +1 -1
  6. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-actions.component.js.map +1 -1
  7. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-cancel.component.js +1 -1
  8. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-cancel.component.js.map +1 -1
  9. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-primary-action.component.js +1 -1
  10. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-primary-action.component.js.map +1 -1
  11. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-action.component.js +1 -1
  12. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-action.component.js.map +1 -1
  13. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.js +2 -2
  14. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.js.map +1 -1
  15. package/esm2015/lib/modules/summary-action-bar/summary/summary-action-bar-summary.component.js +1 -1
  16. package/esm2015/lib/modules/summary-action-bar/summary/summary-action-bar-summary.component.js.map +1 -1
  17. package/esm2015/lib/modules/summary-action-bar/summary-action-bar-adapter.service.js.map +1 -1
  18. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.component.js +5 -5
  19. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.component.js.map +1 -1
  20. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.module.js +2 -2
  21. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.module.js.map +1 -1
  22. package/esm2015/testing/summary-action-bar/summary-action-bar-fixture.js.map +1 -1
  23. package/esm2015/testing/summary-action-bar/summary-action-bar.module.js.map +1 -1
  24. package/fesm2015/skyux-action-bars-testing.js.map +1 -1
  25. package/fesm2015/skyux-action-bars.js +213 -213
  26. package/fesm2015/skyux-action-bars.js.map +1 -1
  27. package/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.d.ts +1 -1
  28. package/lib/modules/summary-action-bar/summary-action-bar.component.d.ts +2 -2
  29. package/package.json +16 -13
@@ -1,20 +1,20 @@
1
- import * as i0 from '@angular/core';
2
- import { NgModule, Component, ChangeDetectionStrategy, Injectable, ElementRef, ContentChild, EventEmitter, Input, Output, ContentChildren } from '@angular/core';
3
1
  import * as i4 from '@angular/common';
4
2
  import { CommonModule } from '@angular/common';
5
- import * as i6 from '@skyux/i18n';
3
+ import * as i0 from '@angular/core';
4
+ import { NgModule, Component, ChangeDetectionStrategy, EventEmitter, Input, Output, ContentChildren, Injectable, ElementRef, ContentChild } from '@angular/core';
5
+ import * as i4$1 from '@skyux/i18n';
6
6
  import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
7
- import * as i3 from '@skyux/indicators';
7
+ import * as i3$1 from '@skyux/indicators';
8
8
  import { SkyChevronModule, SkyIconModule } from '@skyux/indicators';
9
- import * as i2$1 from '@skyux/popovers';
9
+ import * as i2 from '@skyux/popovers';
10
10
  import { SkyDropdownMessageType, SkyDropdownModule } from '@skyux/popovers';
11
- import * as i5 from '@skyux/theme';
11
+ import * as i3 from '@skyux/theme';
12
12
  import { SkyThemeModule } from '@skyux/theme';
13
+ import * as i2$1 from '@skyux/core';
14
+ import { SkyMediaBreakpoints } from '@skyux/core';
13
15
  import { Subject, fromEvent } from 'rxjs';
14
- import { takeUntil } from 'rxjs/operators';
15
16
  import { skyAnimationSlide } from '@skyux/animations';
16
- import * as i2 from '@skyux/core';
17
- import { SkyMediaBreakpoints } from '@skyux/core';
17
+ import { takeUntil } from 'rxjs/operators';
18
18
 
19
19
  /**
20
20
  * NOTICE: DO NOT MODIFY THIS FILE!
@@ -64,21 +64,197 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
64
64
  }] });
65
65
 
66
66
  /**
67
- * Specifies the summary information to display.
67
+ * Contains actions for the `sky-summary-action-bar` component.
68
68
  */
69
- class SkySummaryActionBarSummaryComponent {
69
+ class SkySummaryActionBarActionsComponent {
70
70
  }
71
- SkySummaryActionBarSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
72
- SkySummaryActionBarSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarSummaryComponent, selector: "sky-summary-action-bar-summary", ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSummaryComponent, decorators: [{
71
+ SkySummaryActionBarActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
72
+ SkySummaryActionBarActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarActionsComponent, selector: "sky-summary-action-bar-actions", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarActionsComponent, decorators: [{
74
74
  type: Component,
75
75
  args: [{
76
- selector: 'sky-summary-action-bar-summary',
77
- templateUrl: './summary-action-bar-summary.component.html',
76
+ selector: 'sky-summary-action-bar-actions',
77
+ templateUrl: './summary-action-bar-actions.component.html',
78
+ styleUrls: ['./summary-action-bar-actions.component.scss'],
78
79
  changeDetection: ChangeDetectionStrategy.OnPush,
79
80
  }]
80
81
  }] });
81
82
 
83
+ /**
84
+ * Displays a cancel action.
85
+ */
86
+ class SkySummaryActionBarCancelComponent {
87
+ constructor() {
88
+ /**
89
+ * Indicates whether to disable the cancel action.
90
+ */
91
+ this.disabled = false;
92
+ /**
93
+ * Fires when users select the cancel action.
94
+ */
95
+ this.actionClick = new EventEmitter();
96
+ }
97
+ onCancelClicked() {
98
+ this.actionClick.emit();
99
+ }
100
+ }
101
+ SkySummaryActionBarCancelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarCancelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
102
+ SkySummaryActionBarCancelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarCancelComponent, selector: "sky-summary-action-bar-cancel", inputs: { disabled: "disabled" }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"sky-btn sky-btn-link sky-summary-action-bar-cancel\"\n [disabled]=\"disabled\"\n (click)=\"onCancelClicked()\"\n>\n <ng-content></ng-content>\n</button>\n", styles: ["::ng-deep .sky-modal .sky-modal-footer-container button.sky-btn-link:first-child{margin-left:initial}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarCancelComponent, decorators: [{
104
+ type: Component,
105
+ args: [{
106
+ selector: 'sky-summary-action-bar-cancel',
107
+ templateUrl: './summary-action-bar-cancel.component.html',
108
+ styleUrls: ['./summary-action-bar-cancel.component.scss'],
109
+ changeDetection: ChangeDetectionStrategy.OnPush,
110
+ }]
111
+ }], propDecorators: { disabled: [{
112
+ type: Input
113
+ }], actionClick: [{
114
+ type: Output
115
+ }] } });
116
+
117
+ /**
118
+ * Displays a primary button.
119
+ */
120
+ class SkySummaryActionBarPrimaryActionComponent {
121
+ constructor() {
122
+ /**
123
+ * Indicates whether to disable the primary action.
124
+ * @default false
125
+ */
126
+ this.disabled = false;
127
+ /**
128
+ * Fires when users select the primary action.
129
+ */
130
+ this.actionClick = new EventEmitter();
131
+ }
132
+ onButtonClicked() {
133
+ this.actionClick.emit();
134
+ }
135
+ }
136
+ SkySummaryActionBarPrimaryActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarPrimaryActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
137
+ SkySummaryActionBarPrimaryActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarPrimaryActionComponent, selector: "sky-summary-action-bar-primary-action", inputs: { disabled: "disabled" }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n [disabled]=\"disabled\"\n (click)=\"onButtonClicked()\"\n>\n <ng-content></ng-content>\n</button>\n", styles: [".sky-btn{margin-right:10px}:host-context(.sky-theme-modern) .sky-btn{margin-right:10px}.sky-theme-modern .sky-btn{margin-right:10px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarPrimaryActionComponent, decorators: [{
139
+ type: Component,
140
+ args: [{
141
+ selector: 'sky-summary-action-bar-primary-action',
142
+ templateUrl: './summary-action-bar-primary-action.component.html',
143
+ styleUrls: ['./summary-action-bar-primary-action.component.scss'],
144
+ changeDetection: ChangeDetectionStrategy.OnPush,
145
+ }]
146
+ }], propDecorators: { disabled: [{
147
+ type: Input
148
+ }], actionClick: [{
149
+ type: Output
150
+ }] } });
151
+
152
+ /**
153
+ * Specifies secondary actions.
154
+ */
155
+ class SkySummaryActionBarSecondaryActionComponent {
156
+ constructor(changeDetector) {
157
+ this.changeDetector = changeDetector;
158
+ /**
159
+ * Indicates whether to disable a secondary action.
160
+ * @default false
161
+ */
162
+ this.disabled = false;
163
+ /**
164
+ * Fires when users select a secondary action.
165
+ */
166
+ this.actionClick = new EventEmitter();
167
+ }
168
+ set isDropdown(value) {
169
+ this._isDropdown = value;
170
+ this.changeDetector.detectChanges();
171
+ }
172
+ get isDropdown() {
173
+ return this._isDropdown;
174
+ }
175
+ onButtonClicked() {
176
+ this.actionClick.emit();
177
+ }
178
+ }
179
+ SkySummaryActionBarSecondaryActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSecondaryActionComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
180
+ SkySummaryActionBarSecondaryActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarSecondaryActionComponent, selector: "sky-summary-action-bar-secondary-action", inputs: { disabled: "disabled" }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<ng-container *ngIf=\"!isDropdown\">\n <button\n type=\"button\"\n class=\"sky-btn\"\n role=\"menuitem\"\n [disabled]=\"disabled\"\n [skyThemeClass]=\"{\n 'sky-btn-secondary': 'default',\n 'sky-btn-default': 'modern'\n }\"\n (click)=\"onButtonClicked()\"\n >\n <ng-container\n *ngTemplateOutlet=\"summaryActionBarSecondaryAction\"\n ></ng-container>\n </button>\n</ng-container>\n<sky-dropdown-item *ngIf=\"isDropdown\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"onButtonClicked()\">\n <ng-container\n *ngTemplateOutlet=\"summaryActionBarSecondaryAction\"\n ></ng-container>\n </button>\n</sky-dropdown-item>\n\n<ng-template #summaryActionBarSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n", styles: [".sky-btn{margin-right:10px}:host-context(.sky-theme-modern) .sky-btn{margin-right:10px}.sky-theme-modern .sky-btn{margin-right:10px}\n"], components: [{ type: i2.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSecondaryActionComponent, decorators: [{
182
+ type: Component,
183
+ args: [{
184
+ selector: 'sky-summary-action-bar-secondary-action',
185
+ templateUrl: './summary-action-bar-secondary-action.component.html',
186
+ styleUrls: ['./summary-action-bar-secondary-action.component.scss'],
187
+ changeDetection: ChangeDetectionStrategy.OnPush,
188
+ }]
189
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
190
+ type: Input
191
+ }], actionClick: [{
192
+ type: Output
193
+ }] } });
194
+
195
+ /**
196
+ * Contains secondary actions specified with `sky-summary-action-bar-secondary-action`
197
+ * components.
198
+ */
199
+ class SkySummaryActionBarSecondaryActionsComponent {
200
+ constructor(changeDetector, mediaQueryService) {
201
+ this.changeDetector = changeDetector;
202
+ this.mediaQueryService = mediaQueryService;
203
+ this.isMobile = false;
204
+ this.dropdownMessageStream = new Subject();
205
+ this.actionClicks = [];
206
+ }
207
+ ngAfterContentInit() {
208
+ this.mediaQuerySubscription = this.mediaQueryService.subscribe((args) => {
209
+ this.isMobile = args === SkyMediaBreakpoints.xs;
210
+ this.checkAndUpdateChildrenType();
211
+ });
212
+ this.actionChanges = this.secondaryActionComponents.changes.subscribe(() => {
213
+ this.checkAndUpdateChildrenType();
214
+ });
215
+ if (this.mediaQueryService.current === SkyMediaBreakpoints.xs) {
216
+ this.isMobile = true;
217
+ }
218
+ this.checkAndUpdateChildrenType();
219
+ }
220
+ ngOnDestroy() {
221
+ this.mediaQuerySubscription.unsubscribe();
222
+ this.actionChanges.unsubscribe();
223
+ this.actionClicks.forEach((actionClick) => actionClick.unsubscribe());
224
+ }
225
+ checkAndUpdateChildrenType() {
226
+ /* istanbul ignore else */
227
+ if (this.secondaryActionComponents) {
228
+ let isDropdown = false;
229
+ if (this.secondaryActionComponents.length >= 5 || this.isMobile) {
230
+ isDropdown = true;
231
+ }
232
+ this.secondaryActionComponents.forEach((action) => {
233
+ action.isDropdown = isDropdown;
234
+ this.actionClicks.push(action.actionClick.subscribe(() => {
235
+ this.dropdownMessageStream.next({
236
+ type: SkyDropdownMessageType.Close,
237
+ });
238
+ }));
239
+ });
240
+ }
241
+ this.changeDetector.detectChanges();
242
+ }
243
+ }
244
+ SkySummaryActionBarSecondaryActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSecondaryActionsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i2$1.SkyMediaQueryService }], target: i0.ɵɵFactoryTarget.Component });
245
+ SkySummaryActionBarSecondaryActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarSecondaryActionsComponent, selector: "sky-summary-action-bar-secondary-actions", queries: [{ propertyName: "secondaryActionComponents", predicate: SkySummaryActionBarSecondaryActionComponent }], ngImport: i0, template: "<div\n *ngIf=\"!isMobile && secondaryActionComponents.length < 5\"\n class=\"sky-summary-action-bar-secondary-buttons\"\n role=\"menubar\"\n>\n <ng-container\n *ngTemplateOutlet=\"summaryActionBarSecondaryActions\"\n ></ng-container>\n</div>\n<div *ngIf=\"isMobile || secondaryActionComponents.length > 4\">\n <sky-dropdown\n buttonType=\"ellipsis-h\"\n [attr.title]=\"'skyux_summary_action_bar_open_secondary' | skyLibResources\"\n [messageStream]=\"dropdownMessageStream\"\n >\n <sky-dropdown-menu>\n <ng-container\n *ngTemplateOutlet=\"summaryActionBarSecondaryActions\"\n ></ng-container>\n </sky-dropdown-menu>\n </sky-dropdown>\n</div>\n<ng-template #summaryActionBarSecondaryActions>\n <ng-content select=\"sky-summary-action-bar-secondary-action\"></ng-content>\n</ng-template>\n", components: [{ type: i2.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i2.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i4$1.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSecondaryActionsComponent, decorators: [{
247
+ type: Component,
248
+ args: [{
249
+ selector: 'sky-summary-action-bar-secondary-actions',
250
+ templateUrl: './summary-action-bar-secondary-actions.component.html',
251
+ changeDetection: ChangeDetectionStrategy.OnPush,
252
+ }]
253
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i2$1.SkyMediaQueryService }]; }, propDecorators: { secondaryActionComponents: [{
254
+ type: ContentChildren,
255
+ args: [SkySummaryActionBarSecondaryActionComponent]
256
+ }] } });
257
+
82
258
  /**
83
259
  * @internal
84
260
  */
@@ -161,11 +337,27 @@ class SkySummaryActionBarAdapterService {
161
337
  return SkySummaryActionBarType.Page;
162
338
  }
163
339
  }
164
- SkySummaryActionBarAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarAdapterService, deps: [{ token: i0.RendererFactory2 }, { token: i2.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
340
+ SkySummaryActionBarAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarAdapterService, deps: [{ token: i0.RendererFactory2 }, { token: i2$1.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
165
341
  SkySummaryActionBarAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarAdapterService });
166
342
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarAdapterService, decorators: [{
167
343
  type: Injectable
168
- }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i2.SkyAppWindowRef }]; } });
344
+ }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i2$1.SkyAppWindowRef }]; } });
345
+
346
+ /**
347
+ * Specifies the summary information to display.
348
+ */
349
+ class SkySummaryActionBarSummaryComponent {
350
+ }
351
+ SkySummaryActionBarSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
352
+ SkySummaryActionBarSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarSummaryComponent, selector: "sky-summary-action-bar-summary", ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSummaryComponent, decorators: [{
354
+ type: Component,
355
+ args: [{
356
+ selector: 'sky-summary-action-bar-summary',
357
+ templateUrl: './summary-action-bar-summary.component.html',
358
+ changeDetection: ChangeDetectionStrategy.OnPush,
359
+ }]
360
+ }] });
169
361
 
170
362
  /**
171
363
  * Auto-incrementing integer used to generate unique ids for summary action bar components.
@@ -313,8 +505,8 @@ class SkySummaryActionBarComponent {
313
505
  this.idled.next(true);
314
506
  }
315
507
  }
316
- SkySummaryActionBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarComponent, deps: [{ token: SkySummaryActionBarAdapterService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2.SkyMediaQueryService }, { token: i2.MutationObserverService }, { token: i2.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Component });
317
- SkySummaryActionBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarComponent, selector: "sky-summary-action-bar", providers: [SkySummaryActionBarAdapterService], queries: [{ propertyName: "summaryElement", first: true, predicate: SkySummaryActionBarSummaryComponent, descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n class=\"sky-summary-action-bar\"\n [ngClass]=\"{\n 'sky-summary-action-bar-summary-collapsible': isSummaryCollapsible,\n 'sky-summary-action-bar-modal': type === 1 || type === 2,\n 'sky-summary-action-bar-split-view': type === 4\n }\"\n>\n <div class=\"sky-summary-action-bar-actions\">\n <ng-content select=\"sky-summary-action-bar-actions\"></ng-content>\n </div>\n <ng-container *ngIf=\"summaryContentExists()\">\n <div\n class=\"sky-summary-action-bar-summary\"\n [id]=\"summaryId\"\n [@skyAnimationSlide]=\"slideDirection\"\n (@skyAnimationSlide.start)=\"summaryTransitionStart()\"\n (@skyAnimationSlide.done)=\"summaryTransitionEnd()\"\n >\n <div class=\"sky-summary-action-bar-summary-body\">\n <div class=\"sky-summary-action-bar-summary-items\">\n <ng-content select=\"sky-summary-action-bar-summary\"></ng-content>\n </div>\n <div\n *ngIf=\"isSummaryCollapsible && !isSummaryCollapsed\"\n class=\"sky-summary-action-bar-details-collapse\"\n >\n <ng-container *ngTemplateOutlet=\"chevron\"></ng-container>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"isSummaryCollapsible && isSummaryCollapsed\"\n class=\"sky-summary-action-bar-details-expand\"\n >\n <ng-container *ngTemplateOutlet=\"chevron\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #chevron>\n <sky-chevron\n [attr.aria-controls]=\"summaryId\"\n [ariaLabel]=\"'skyux_summary_action_bar_expand' | skyLibResources\"\n [direction]=\"isSummaryCollapsed ? 'up' : 'down'\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-default': 'modern'\n }\"\n (directionChange)=\"onDirectionChange($event)\"\n >\n </sky-chevron>\n</ng-template>\n", styles: [".sky-summary-action-bar{display:flex;align-items:center;width:100%;margin-top:20px;position:fixed;bottom:0;left:0;z-index:999;background-color:#fff;box-shadow:0 -3px 3px #cdcfd2}.sky-summary-action-bar-modal,.sky-summary-action-bar-split-view{position:relative;margin-top:0}.sky-summary-action-bar-split-view{box-shadow:none}.sky-summary-action-bar-actions{padding:10px 20px 10px 10px;flex-shrink:0;background-color:#fff;z-index:999}.sky-summary-action-bar-summary{margin:10px 0;border-left:1px solid #e2e3e4}.sky-summary-action-bar-summary-body{padding-left:20px;display:flex}.sky-summary-action-bar-summary-items{display:flex;flex-wrap:wrap;flex-grow:1;margin-right:10px}.sky-summary-action-bar-details-expand{margin-left:auto;margin-right:10px}.sky-summary-action-bar-details-expand,.sky-summary-action-bar-details-collapse{display:none}.sky-summary-action-bar-summary-collapsible.sky-summary-action-bar{flex-wrap:wrap}.sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-summary{order:-1;width:100%;border-bottom:1px solid #e2e3e4;margin:0;border-left:none;z-index:998}.sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-summary-body{padding:10px}.sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-details-expand,.sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-details-collapse{display:block}:host-context(.sky-theme-modern) .sky-summary-action-bar-actions{padding:20px 30px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary{border:none}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-body{padding-left:30px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-actions{padding:20px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-summary-body{padding:20px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-items{margin-bottom:-10px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-items ::ng-deep sky-key-info{margin:0 30px 10px 0;display:inline-block}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-items ::ng-deep sky-key-info:last-child{margin:0 0 10px}.sky-theme-modern .sky-summary-action-bar-actions{padding:20px 30px}.sky-theme-modern .sky-summary-action-bar-summary{border:none}.sky-theme-modern .sky-summary-action-bar-summary-body{padding-left:30px}.sky-theme-modern .sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-actions{padding:20px}.sky-theme-modern .sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-summary-body{padding:20px}.sky-theme-modern .sky-summary-action-bar-summary-items{margin-bottom:-10px}.sky-theme-modern .sky-summary-action-bar-summary-items ::ng-deep sky-key-info{margin:0 30px 10px 0;display:inline-block}.sky-theme-modern .sky-summary-action-bar-summary-items ::ng-deep sky-key-info:last-child{margin:0 0 10px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-summary-action-bar{background-color:#000;box-shadow:none}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-summary-action-bar-actions{background-color:#000}.sky-theme-modern.sky-theme-mode-dark .sky-summary-action-bar{background-color:#000;box-shadow:none}.sky-theme-modern.sky-theme-mode-dark .sky-summary-action-bar-actions{background-color:#000}\n"], components: [{ type: i3.λ2, selector: "sky-chevron", inputs: ["ariaControls", "ariaLabel", "direction", "disabled"], outputs: ["directionChange"] }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], pipes: { "skyLibResources": i6.SkyLibResourcesPipe }, animations: [skyAnimationSlide], changeDetection: i0.ChangeDetectionStrategy.OnPush });
508
+ SkySummaryActionBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarComponent, deps: [{ token: SkySummaryActionBarAdapterService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2$1.SkyMediaQueryService }, { token: i2$1.MutationObserverService }, { token: i2$1.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Component });
509
+ SkySummaryActionBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarComponent, selector: "sky-summary-action-bar", providers: [SkySummaryActionBarAdapterService], queries: [{ propertyName: "summaryElement", first: true, predicate: SkySummaryActionBarSummaryComponent, descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n class=\"sky-summary-action-bar\"\n [ngClass]=\"{\n 'sky-summary-action-bar-summary-collapsible': isSummaryCollapsible,\n 'sky-summary-action-bar-modal': type === 1 || type === 2,\n 'sky-summary-action-bar-split-view': type === 4\n }\"\n>\n <div class=\"sky-summary-action-bar-actions\">\n <ng-content select=\"sky-summary-action-bar-actions\"></ng-content>\n </div>\n <ng-container *ngIf=\"summaryContentExists()\">\n <div\n class=\"sky-summary-action-bar-summary\"\n [id]=\"summaryId\"\n [@skyAnimationSlide]=\"slideDirection\"\n (@skyAnimationSlide.start)=\"summaryTransitionStart()\"\n (@skyAnimationSlide.done)=\"summaryTransitionEnd()\"\n >\n <div class=\"sky-summary-action-bar-summary-body\">\n <div class=\"sky-summary-action-bar-summary-items\">\n <ng-content select=\"sky-summary-action-bar-summary\"></ng-content>\n </div>\n <div\n *ngIf=\"isSummaryCollapsible && !isSummaryCollapsed\"\n class=\"sky-summary-action-bar-details-collapse\"\n >\n <ng-container *ngTemplateOutlet=\"chevron\"></ng-container>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"isSummaryCollapsible && isSummaryCollapsed\"\n class=\"sky-summary-action-bar-details-expand\"\n >\n <ng-container *ngTemplateOutlet=\"chevron\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #chevron>\n <sky-chevron\n [attr.aria-controls]=\"summaryId\"\n [ariaLabel]=\"'skyux_summary_action_bar_expand' | skyLibResources\"\n [direction]=\"isSummaryCollapsed ? 'up' : 'down'\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-default': 'modern'\n }\"\n (directionChange)=\"onDirectionChange($event)\"\n >\n </sky-chevron>\n</ng-template>\n", styles: [".sky-summary-action-bar{display:flex;align-items:center;width:100%;margin-top:20px;position:fixed;bottom:0;left:0;z-index:999;background-color:#fff;box-shadow:0 -3px 3px #cdcfd2}.sky-summary-action-bar-modal,.sky-summary-action-bar-split-view{position:relative;margin-top:0}.sky-summary-action-bar-split-view{box-shadow:none}.sky-summary-action-bar-actions{padding:10px 20px 10px 10px;flex-shrink:0;background-color:#fff;z-index:999}.sky-summary-action-bar-summary{margin:10px 0;border-left:1px solid #e2e3e4}.sky-summary-action-bar-summary-body{padding-left:20px;display:flex}.sky-summary-action-bar-summary-items{display:flex;flex-wrap:wrap;flex-grow:1;margin-right:10px}.sky-summary-action-bar-details-expand{margin-left:auto;margin-right:10px}.sky-summary-action-bar-details-expand,.sky-summary-action-bar-details-collapse{display:none}.sky-summary-action-bar-summary-collapsible.sky-summary-action-bar{flex-wrap:wrap}.sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-summary{order:-1;width:100%;border-bottom:1px solid #e2e3e4;margin:0;border-left:none;z-index:998}.sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-summary-body{padding:10px}.sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-details-expand,.sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-details-collapse{display:block}:host-context(.sky-theme-modern) .sky-summary-action-bar-actions{padding:20px 30px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary{border:none}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-body{padding-left:30px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-actions{padding:20px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-summary-body{padding:20px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-items{margin-bottom:-10px}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-items ::ng-deep sky-key-info{margin:0 30px 10px 0;display:inline-block}:host-context(.sky-theme-modern) .sky-summary-action-bar-summary-items ::ng-deep sky-key-info:last-child{margin:0 0 10px}.sky-theme-modern .sky-summary-action-bar-actions{padding:20px 30px}.sky-theme-modern .sky-summary-action-bar-summary{border:none}.sky-theme-modern .sky-summary-action-bar-summary-body{padding-left:30px}.sky-theme-modern .sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-actions{padding:20px}.sky-theme-modern .sky-summary-action-bar-summary-collapsible .sky-summary-action-bar-summary-body{padding:20px}.sky-theme-modern .sky-summary-action-bar-summary-items{margin-bottom:-10px}.sky-theme-modern .sky-summary-action-bar-summary-items ::ng-deep sky-key-info{margin:0 30px 10px 0;display:inline-block}.sky-theme-modern .sky-summary-action-bar-summary-items ::ng-deep sky-key-info:last-child{margin:0 0 10px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-summary-action-bar{background-color:#000;box-shadow:none}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-summary-action-bar-actions{background-color:#000}.sky-theme-modern.sky-theme-mode-dark .sky-summary-action-bar{background-color:#000;box-shadow:none}.sky-theme-modern.sky-theme-mode-dark .sky-summary-action-bar-actions{background-color:#000}\n"], components: [{ type: i3$1.λ2, selector: "sky-chevron", inputs: ["ariaControls", "ariaLabel", "direction", "disabled"], outputs: ["directionChange"] }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], pipes: { "skyLibResources": i4$1.SkyLibResourcesPipe }, animations: [skyAnimationSlide], changeDetection: i0.ChangeDetectionStrategy.OnPush });
318
510
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarComponent, decorators: [{
319
511
  type: Component,
320
512
  args: [{
@@ -325,203 +517,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
325
517
  providers: [SkySummaryActionBarAdapterService],
326
518
  changeDetection: ChangeDetectionStrategy.OnPush,
327
519
  }]
328
- }], ctorParameters: function () { return [{ type: SkySummaryActionBarAdapterService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2.SkyMediaQueryService }, { type: i2.MutationObserverService }, { type: i2.SkyAppWindowRef }]; }, propDecorators: { summaryElement: [{
520
+ }], ctorParameters: function () { return [{ type: SkySummaryActionBarAdapterService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2$1.SkyMediaQueryService }, { type: i2$1.MutationObserverService }, { type: i2$1.SkyAppWindowRef }]; }, propDecorators: { summaryElement: [{
329
521
  type: ContentChild,
330
522
  args: [SkySummaryActionBarSummaryComponent, { read: ElementRef }]
331
523
  }] } });
332
524
 
333
- /**
334
- * Contains actions for the `sky-summary-action-bar` component.
335
- */
336
- class SkySummaryActionBarActionsComponent {
337
- }
338
- SkySummaryActionBarActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
339
- SkySummaryActionBarActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarActionsComponent, selector: "sky-summary-action-bar-actions", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
340
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarActionsComponent, decorators: [{
341
- type: Component,
342
- args: [{
343
- selector: 'sky-summary-action-bar-actions',
344
- templateUrl: './summary-action-bar-actions.component.html',
345
- styleUrls: ['./summary-action-bar-actions.component.scss'],
346
- changeDetection: ChangeDetectionStrategy.OnPush,
347
- }]
348
- }] });
349
-
350
- /**
351
- * Displays a cancel action.
352
- */
353
- class SkySummaryActionBarCancelComponent {
354
- constructor() {
355
- /**
356
- * Indicates whether to disable the cancel action.
357
- */
358
- this.disabled = false;
359
- /**
360
- * Fires when users select the cancel action.
361
- */
362
- this.actionClick = new EventEmitter();
363
- }
364
- onCancelClicked() {
365
- this.actionClick.emit();
366
- }
367
- }
368
- SkySummaryActionBarCancelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarCancelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
369
- SkySummaryActionBarCancelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarCancelComponent, selector: "sky-summary-action-bar-cancel", inputs: { disabled: "disabled" }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"sky-btn sky-btn-link sky-summary-action-bar-cancel\"\n [disabled]=\"disabled\"\n (click)=\"onCancelClicked()\"\n>\n <ng-content></ng-content>\n</button>\n", styles: ["::ng-deep .sky-modal .sky-modal-footer-container button.sky-btn-link:first-child{margin-left:initial}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
370
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarCancelComponent, decorators: [{
371
- type: Component,
372
- args: [{
373
- selector: 'sky-summary-action-bar-cancel',
374
- templateUrl: './summary-action-bar-cancel.component.html',
375
- styleUrls: ['./summary-action-bar-cancel.component.scss'],
376
- changeDetection: ChangeDetectionStrategy.OnPush,
377
- }]
378
- }], propDecorators: { disabled: [{
379
- type: Input
380
- }], actionClick: [{
381
- type: Output
382
- }] } });
383
-
384
- /**
385
- * Displays a primary button.
386
- */
387
- class SkySummaryActionBarPrimaryActionComponent {
388
- constructor() {
389
- /**
390
- * Indicates whether to disable the primary action.
391
- * @default false
392
- */
393
- this.disabled = false;
394
- /**
395
- * Fires when users select the primary action.
396
- */
397
- this.actionClick = new EventEmitter();
398
- }
399
- onButtonClicked() {
400
- this.actionClick.emit();
401
- }
402
- }
403
- SkySummaryActionBarPrimaryActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarPrimaryActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
404
- SkySummaryActionBarPrimaryActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarPrimaryActionComponent, selector: "sky-summary-action-bar-primary-action", inputs: { disabled: "disabled" }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"sky-btn sky-btn-primary\"\n [disabled]=\"disabled\"\n (click)=\"onButtonClicked()\"\n>\n <ng-content></ng-content>\n</button>\n", styles: [".sky-btn{margin-right:10px}:host-context(.sky-theme-modern) .sky-btn{margin-right:10px}.sky-theme-modern .sky-btn{margin-right:10px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
405
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarPrimaryActionComponent, decorators: [{
406
- type: Component,
407
- args: [{
408
- selector: 'sky-summary-action-bar-primary-action',
409
- templateUrl: './summary-action-bar-primary-action.component.html',
410
- styleUrls: ['./summary-action-bar-primary-action.component.scss'],
411
- changeDetection: ChangeDetectionStrategy.OnPush,
412
- }]
413
- }], propDecorators: { disabled: [{
414
- type: Input
415
- }], actionClick: [{
416
- type: Output
417
- }] } });
418
-
419
- /**
420
- * Specifies secondary actions.
421
- */
422
- class SkySummaryActionBarSecondaryActionComponent {
423
- constructor(changeDetector) {
424
- this.changeDetector = changeDetector;
425
- /**
426
- * Indicates whether to disable a secondary action.
427
- * @default false
428
- */
429
- this.disabled = false;
430
- /**
431
- * Fires when users select a secondary action.
432
- */
433
- this.actionClick = new EventEmitter();
434
- }
435
- set isDropdown(value) {
436
- this._isDropdown = value;
437
- this.changeDetector.detectChanges();
438
- }
439
- get isDropdown() {
440
- return this._isDropdown;
441
- }
442
- onButtonClicked() {
443
- this.actionClick.emit();
444
- }
445
- }
446
- SkySummaryActionBarSecondaryActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSecondaryActionComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
447
- SkySummaryActionBarSecondaryActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarSecondaryActionComponent, selector: "sky-summary-action-bar-secondary-action", inputs: { disabled: "disabled" }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<ng-container *ngIf=\"!isDropdown\">\n <button\n type=\"button\"\n class=\"sky-btn\"\n role=\"menuitem\"\n [disabled]=\"disabled\"\n [skyThemeClass]=\"{\n 'sky-btn-secondary': 'default',\n 'sky-btn-default': 'modern'\n }\"\n (click)=\"onButtonClicked()\"\n >\n <ng-container\n *ngTemplateOutlet=\"summaryActionBarSecondaryAction\"\n ></ng-container>\n </button>\n</ng-container>\n<sky-dropdown-item *ngIf=\"isDropdown\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"onButtonClicked()\">\n <ng-container\n *ngTemplateOutlet=\"summaryActionBarSecondaryAction\"\n ></ng-container>\n </button>\n</sky-dropdown-item>\n\n<ng-template #summaryActionBarSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n", styles: [".sky-btn{margin-right:10px}:host-context(.sky-theme-modern) .sky-btn{margin-right:10px}.sky-theme-modern .sky-btn{margin-right:10px}\n"], components: [{ type: i2$1.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
448
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSecondaryActionComponent, decorators: [{
449
- type: Component,
450
- args: [{
451
- selector: 'sky-summary-action-bar-secondary-action',
452
- templateUrl: './summary-action-bar-secondary-action.component.html',
453
- styleUrls: ['./summary-action-bar-secondary-action.component.scss'],
454
- changeDetection: ChangeDetectionStrategy.OnPush,
455
- }]
456
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
457
- type: Input
458
- }], actionClick: [{
459
- type: Output
460
- }] } });
461
-
462
- /**
463
- * Contains secondary actions specified with `sky-summary-action-bar-secondary-action`
464
- * components.
465
- */
466
- class SkySummaryActionBarSecondaryActionsComponent {
467
- constructor(changeDetector, mediaQueryService) {
468
- this.changeDetector = changeDetector;
469
- this.mediaQueryService = mediaQueryService;
470
- this.isMobile = false;
471
- this.dropdownMessageStream = new Subject();
472
- this.actionClicks = [];
473
- }
474
- ngAfterContentInit() {
475
- this.mediaQuerySubscription = this.mediaQueryService.subscribe((args) => {
476
- this.isMobile = args === SkyMediaBreakpoints.xs;
477
- this.checkAndUpdateChildrenType();
478
- });
479
- this.actionChanges = this.secondaryActionComponents.changes.subscribe(() => {
480
- this.checkAndUpdateChildrenType();
481
- });
482
- if (this.mediaQueryService.current === SkyMediaBreakpoints.xs) {
483
- this.isMobile = true;
484
- }
485
- this.checkAndUpdateChildrenType();
486
- }
487
- ngOnDestroy() {
488
- this.mediaQuerySubscription.unsubscribe();
489
- this.actionChanges.unsubscribe();
490
- this.actionClicks.forEach((actionClick) => actionClick.unsubscribe());
491
- }
492
- checkAndUpdateChildrenType() {
493
- /* istanbul ignore else */
494
- if (this.secondaryActionComponents) {
495
- let isDropdown = false;
496
- if (this.secondaryActionComponents.length >= 5 || this.isMobile) {
497
- isDropdown = true;
498
- }
499
- this.secondaryActionComponents.forEach((action) => {
500
- action.isDropdown = isDropdown;
501
- this.actionClicks.push(action.actionClick.subscribe(() => {
502
- this.dropdownMessageStream.next({
503
- type: SkyDropdownMessageType.Close,
504
- });
505
- }));
506
- });
507
- }
508
- this.changeDetector.detectChanges();
509
- }
510
- }
511
- SkySummaryActionBarSecondaryActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSecondaryActionsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i2.SkyMediaQueryService }], target: i0.ɵɵFactoryTarget.Component });
512
- SkySummaryActionBarSecondaryActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarSecondaryActionsComponent, selector: "sky-summary-action-bar-secondary-actions", queries: [{ propertyName: "secondaryActionComponents", predicate: SkySummaryActionBarSecondaryActionComponent }], ngImport: i0, template: "<div\n *ngIf=\"!isMobile && secondaryActionComponents.length < 5\"\n class=\"sky-summary-action-bar-secondary-buttons\"\n role=\"menubar\"\n>\n <ng-container\n *ngTemplateOutlet=\"summaryActionBarSecondaryActions\"\n ></ng-container>\n</div>\n<div *ngIf=\"isMobile || secondaryActionComponents.length > 4\">\n <sky-dropdown\n buttonType=\"ellipsis-h\"\n [attr.title]=\"'skyux_summary_action_bar_open_secondary' | skyLibResources\"\n [messageStream]=\"dropdownMessageStream\"\n >\n <sky-dropdown-menu>\n <ng-container\n *ngTemplateOutlet=\"summaryActionBarSecondaryActions\"\n ></ng-container>\n </sky-dropdown-menu>\n </sky-dropdown>\n</div>\n<ng-template #summaryActionBarSecondaryActions>\n <ng-content select=\"sky-summary-action-bar-secondary-action\"></ng-content>\n</ng-template>\n", components: [{ type: i2$1.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i2$1.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i6.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
513
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarSecondaryActionsComponent, decorators: [{
514
- type: Component,
515
- args: [{
516
- selector: 'sky-summary-action-bar-secondary-actions',
517
- templateUrl: './summary-action-bar-secondary-actions.component.html',
518
- changeDetection: ChangeDetectionStrategy.OnPush,
519
- }]
520
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i2.SkyMediaQueryService }]; }, propDecorators: { secondaryActionComponents: [{
521
- type: ContentChildren,
522
- args: [SkySummaryActionBarSecondaryActionComponent]
523
- }] } });
524
-
525
525
  class SkySummaryActionBarModule {
526
526
  }
527
527
  SkySummaryActionBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySummaryActionBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });