@skyux/action-bars 5.7.2 → 6.0.0-beta.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 (67) hide show
  1. package/esm2020/index.mjs +11 -0
  2. package/esm2020/lib/modules/shared/sky-action-bars-resources.module.mjs +50 -0
  3. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-actions.component.mjs +14 -0
  4. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-cancel.component.mjs +31 -0
  5. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-primary-action.component.mjs +32 -0
  6. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-action.component.mjs +43 -0
  7. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.mjs +69 -0
  8. package/esm2020/lib/modules/summary-action-bar/summary/summary-action-bar-summary.component.mjs +14 -0
  9. package/esm2020/lib/modules/summary-action-bar/summary-action-bar-adapter.service.mjs +81 -0
  10. package/esm2020/lib/modules/summary-action-bar/summary-action-bar.component.mjs +179 -0
  11. package/esm2020/lib/modules/summary-action-bar/summary-action-bar.module.mjs +79 -0
  12. package/esm2020/lib/modules/summary-action-bar/types/summary-action-bar-type.mjs +12 -0
  13. package/esm2020/skyux-action-bars.mjs +5 -0
  14. package/esm2020/testing/public-api.mjs +4 -0
  15. package/esm2020/testing/skyux-action-bars-testing.mjs +5 -0
  16. package/esm2020/testing/summary-action-bar/summary-action-bar-fixture-action.mjs +2 -0
  17. package/esm2020/testing/summary-action-bar/summary-action-bar-fixture.mjs +135 -0
  18. package/esm2020/testing/summary-action-bar/summary-action-bar.module.mjs +27 -0
  19. package/fesm2015/{skyux-action-bars-testing.js → skyux-action-bars-testing.mjs} +5 -5
  20. package/fesm2015/skyux-action-bars-testing.mjs.map +1 -0
  21. package/fesm2015/{skyux-action-bars.js → skyux-action-bars.mjs} +40 -75
  22. package/fesm2015/skyux-action-bars.mjs.map +1 -0
  23. package/{esm2015/testing/summary-action-bar/summary-action-bar-fixture.js → fesm2020/skyux-action-bars-testing.mjs} +63 -40
  24. package/fesm2020/skyux-action-bars-testing.mjs.map +1 -0
  25. package/fesm2020/skyux-action-bars.mjs +566 -0
  26. package/fesm2020/skyux-action-bars.mjs.map +1 -0
  27. package/package.json +41 -17
  28. package/testing/package.json +5 -5
  29. package/bundles/skyux-action-bars-testing.umd.js +0 -563
  30. package/bundles/skyux-action-bars.umd.js +0 -668
  31. package/esm2015/index.js +0 -11
  32. package/esm2015/index.js.map +0 -1
  33. package/esm2015/lib/modules/shared/sky-action-bars-resources.module.js +0 -50
  34. package/esm2015/lib/modules/shared/sky-action-bars-resources.module.js.map +0 -1
  35. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-actions.component.js +0 -19
  36. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-actions.component.js.map +0 -1
  37. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-cancel.component.js +0 -36
  38. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-cancel.component.js.map +0 -1
  39. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-primary-action.component.js +0 -37
  40. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-primary-action.component.js.map +0 -1
  41. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-action.component.js +0 -48
  42. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-action.component.js.map +0 -1
  43. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.js +0 -73
  44. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.js.map +0 -1
  45. package/esm2015/lib/modules/summary-action-bar/summary/summary-action-bar-summary.component.js +0 -18
  46. package/esm2015/lib/modules/summary-action-bar/summary/summary-action-bar-summary.component.js.map +0 -1
  47. package/esm2015/lib/modules/summary-action-bar/summary-action-bar-adapter.service.js +0 -81
  48. package/esm2015/lib/modules/summary-action-bar/summary-action-bar-adapter.service.js.map +0 -1
  49. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.component.js +0 -186
  50. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.component.js.map +0 -1
  51. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.module.js +0 -79
  52. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.module.js.map +0 -1
  53. package/esm2015/lib/modules/summary-action-bar/types/summary-action-bar-type.js +0 -12
  54. package/esm2015/lib/modules/summary-action-bar/types/summary-action-bar-type.js.map +0 -1
  55. package/esm2015/skyux-action-bars.js +0 -5
  56. package/esm2015/skyux-action-bars.js.map +0 -1
  57. package/esm2015/testing/public-api.js +0 -4
  58. package/esm2015/testing/public-api.js.map +0 -1
  59. package/esm2015/testing/skyux-action-bars-testing.js +0 -5
  60. package/esm2015/testing/skyux-action-bars-testing.js.map +0 -1
  61. package/esm2015/testing/summary-action-bar/summary-action-bar-fixture-action.js +0 -2
  62. package/esm2015/testing/summary-action-bar/summary-action-bar-fixture-action.js.map +0 -1
  63. package/esm2015/testing/summary-action-bar/summary-action-bar-fixture.js.map +0 -1
  64. package/esm2015/testing/summary-action-bar/summary-action-bar.module.js +0 -27
  65. package/esm2015/testing/summary-action-bar/summary-action-bar.module.js.map +0 -1
  66. package/fesm2015/skyux-action-bars-testing.js.map +0 -1
  67. package/fesm2015/skyux-action-bars.js.map +0 -1
@@ -1,668 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@skyux/i18n'), require('@skyux/indicators'), require('@skyux/popovers'), require('@skyux/theme'), require('@skyux/core'), require('rxjs'), require('@skyux/animations'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@skyux/action-bars', ['exports', '@angular/common', '@angular/core', '@skyux/i18n', '@skyux/indicators', '@skyux/popovers', '@skyux/theme', '@skyux/core', 'rxjs', '@skyux/animations', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["action-bars"] = {}), global.ng.common, global.ng.core, global.i4, global.i3$1, global.i2, global.i3, global.i2$1, global.rxjs, global.animations, global.rxjs.operators));
5
- })(this, (function (exports, i4$1, i0, i4, i3$1, i2, i3, i2$1, rxjs, animations, operators) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4$1);
26
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
- var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4);
28
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
31
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
32
-
33
- /**
34
- * NOTICE: DO NOT MODIFY THIS FILE!
35
- * The contents of this file were automatically generated by
36
- * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-action-bars' schematic.
37
- * To update this file, simply rerun the command.
38
- */
39
- var RESOURCES = {
40
- 'EN-US': {
41
- skyux_summary_action_bar_open_secondary: {
42
- message: 'Show secondary actions',
43
- },
44
- skyux_summary_action_bar_expand: { message: 'Expand or collapse summary' },
45
- },
46
- };
47
- var SkyActionBarsResourcesProvider = /** @class */ (function () {
48
- function SkyActionBarsResourcesProvider() {
49
- }
50
- SkyActionBarsResourcesProvider.prototype.getString = function (localeInfo, name) {
51
- return i4.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
52
- };
53
- return SkyActionBarsResourcesProvider;
54
- }());
55
- /**
56
- * Import into any component library module that needs to use resource strings.
57
- */
58
- var SkyActionBarsResourcesModule = /** @class */ (function () {
59
- function SkyActionBarsResourcesModule() {
60
- }
61
- return SkyActionBarsResourcesModule;
62
- }());
63
- SkyActionBarsResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionBarsResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
64
- SkyActionBarsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionBarsResourcesModule, exports: [i4.SkyI18nModule] });
65
- SkyActionBarsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionBarsResourcesModule, providers: [
66
- {
67
- provide: i4.SKY_LIB_RESOURCES_PROVIDERS,
68
- useClass: SkyActionBarsResourcesProvider,
69
- multi: true,
70
- },
71
- ], imports: [i4.SkyI18nModule] });
72
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionBarsResourcesModule, decorators: [{
73
- type: i0.NgModule,
74
- args: [{
75
- exports: [i4.SkyI18nModule],
76
- providers: [
77
- {
78
- provide: i4.SKY_LIB_RESOURCES_PROVIDERS,
79
- useClass: SkyActionBarsResourcesProvider,
80
- multi: true,
81
- },
82
- ],
83
- }]
84
- }] });
85
-
86
- /**
87
- * Contains actions for the `sky-summary-action-bar` component.
88
- */
89
- var SkySummaryActionBarActionsComponent = /** @class */ (function () {
90
- function SkySummaryActionBarActionsComponent() {
91
- }
92
- return SkySummaryActionBarActionsComponent;
93
- }());
94
- SkySummaryActionBarActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
95
- SkySummaryActionBarActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarActionsComponent, selector: "sky-summary-action-bar-actions", ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: [":host{display:inline-flex}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
96
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarActionsComponent, decorators: [{
97
- type: i0.Component,
98
- args: [{
99
- selector: 'sky-summary-action-bar-actions',
100
- template: "<ng-content></ng-content>\n",
101
- styles: [":host{display:inline-flex}\n"],
102
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
103
- }]
104
- }] });
105
-
106
- /**
107
- * Displays a cancel action.
108
- */
109
- var SkySummaryActionBarCancelComponent = /** @class */ (function () {
110
- function SkySummaryActionBarCancelComponent() {
111
- /**
112
- * Indicates whether to disable the cancel action.
113
- */
114
- this.disabled = false;
115
- /**
116
- * Fires when users select the cancel action.
117
- */
118
- this.actionClick = new i0.EventEmitter();
119
- }
120
- SkySummaryActionBarCancelComponent.prototype.onCancelClicked = function () {
121
- this.actionClick.emit();
122
- };
123
- return SkySummaryActionBarCancelComponent;
124
- }());
125
- SkySummaryActionBarCancelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarCancelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
126
- SkySummaryActionBarCancelComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
127
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarCancelComponent, decorators: [{
128
- type: i0.Component,
129
- args: [{
130
- selector: 'sky-summary-action-bar-cancel',
131
- 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",
132
- styles: ["::ng-deep .sky-modal .sky-modal-footer-container button.sky-btn-link:first-child{margin-left:initial}\n"],
133
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
134
- }]
135
- }], propDecorators: { disabled: [{
136
- type: i0.Input
137
- }], actionClick: [{
138
- type: i0.Output
139
- }] } });
140
-
141
- /**
142
- * Displays a primary button.
143
- */
144
- var SkySummaryActionBarPrimaryActionComponent = /** @class */ (function () {
145
- function SkySummaryActionBarPrimaryActionComponent() {
146
- /**
147
- * Indicates whether to disable the primary action.
148
- * @default false
149
- */
150
- this.disabled = false;
151
- /**
152
- * Fires when users select the primary action.
153
- */
154
- this.actionClick = new i0.EventEmitter();
155
- }
156
- SkySummaryActionBarPrimaryActionComponent.prototype.onButtonClicked = function () {
157
- this.actionClick.emit();
158
- };
159
- return SkySummaryActionBarPrimaryActionComponent;
160
- }());
161
- SkySummaryActionBarPrimaryActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarPrimaryActionComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
162
- SkySummaryActionBarPrimaryActionComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
163
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarPrimaryActionComponent, decorators: [{
164
- type: i0.Component,
165
- args: [{
166
- selector: 'sky-summary-action-bar-primary-action',
167
- 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",
168
- 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"],
169
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
170
- }]
171
- }], propDecorators: { disabled: [{
172
- type: i0.Input
173
- }], actionClick: [{
174
- type: i0.Output
175
- }] } });
176
-
177
- /**
178
- * Specifies secondary actions.
179
- */
180
- var SkySummaryActionBarSecondaryActionComponent = /** @class */ (function () {
181
- function SkySummaryActionBarSecondaryActionComponent(changeDetector) {
182
- this.changeDetector = changeDetector;
183
- /**
184
- * Indicates whether to disable a secondary action.
185
- * @default false
186
- */
187
- this.disabled = false;
188
- /**
189
- * Fires when users select a secondary action.
190
- */
191
- this.actionClick = new i0.EventEmitter();
192
- }
193
- Object.defineProperty(SkySummaryActionBarSecondaryActionComponent.prototype, "isDropdown", {
194
- get: function () {
195
- return this._isDropdown;
196
- },
197
- set: function (value) {
198
- this._isDropdown = value;
199
- this.changeDetector.detectChanges();
200
- },
201
- enumerable: false,
202
- configurable: true
203
- });
204
- SkySummaryActionBarSecondaryActionComponent.prototype.onButtonClicked = function () {
205
- this.actionClick.emit();
206
- };
207
- return SkySummaryActionBarSecondaryActionComponent;
208
- }());
209
- SkySummaryActionBarSecondaryActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarSecondaryActionComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
210
- SkySummaryActionBarSecondaryActionComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
211
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarSecondaryActionComponent, decorators: [{
212
- type: i0.Component,
213
- args: [{
214
- selector: 'sky-summary-action-bar-secondary-action',
215
- 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",
216
- 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"],
217
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
218
- }]
219
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
220
- type: i0.Input
221
- }], actionClick: [{
222
- type: i0.Output
223
- }] } });
224
-
225
- /**
226
- * Contains secondary actions specified with `sky-summary-action-bar-secondary-action`
227
- * components.
228
- */
229
- var SkySummaryActionBarSecondaryActionsComponent = /** @class */ (function () {
230
- function SkySummaryActionBarSecondaryActionsComponent(changeDetector, mediaQueryService) {
231
- this.changeDetector = changeDetector;
232
- this.mediaQueryService = mediaQueryService;
233
- this.isMobile = false;
234
- this.dropdownMessageStream = new rxjs.Subject();
235
- this.actionClicks = [];
236
- }
237
- SkySummaryActionBarSecondaryActionsComponent.prototype.ngAfterContentInit = function () {
238
- var _this = this;
239
- this.mediaQuerySubscription = this.mediaQueryService.subscribe(function (args) {
240
- _this.isMobile = args === i2$1.SkyMediaBreakpoints.xs;
241
- _this.checkAndUpdateChildrenType();
242
- });
243
- this.actionChanges = this.secondaryActionComponents.changes.subscribe(function () {
244
- _this.checkAndUpdateChildrenType();
245
- });
246
- if (this.mediaQueryService.current === i2$1.SkyMediaBreakpoints.xs) {
247
- this.isMobile = true;
248
- }
249
- this.checkAndUpdateChildrenType();
250
- };
251
- SkySummaryActionBarSecondaryActionsComponent.prototype.ngOnDestroy = function () {
252
- this.mediaQuerySubscription.unsubscribe();
253
- this.actionChanges.unsubscribe();
254
- this.actionClicks.forEach(function (actionClick) { return actionClick.unsubscribe(); });
255
- };
256
- SkySummaryActionBarSecondaryActionsComponent.prototype.checkAndUpdateChildrenType = function () {
257
- var _this = this;
258
- /* istanbul ignore else */
259
- if (this.secondaryActionComponents) {
260
- var isDropdown_1 = false;
261
- if (this.secondaryActionComponents.length >= 5 || this.isMobile) {
262
- isDropdown_1 = true;
263
- }
264
- this.secondaryActionComponents.forEach(function (action) {
265
- action.isDropdown = isDropdown_1;
266
- _this.actionClicks.push(action.actionClick.subscribe(function () {
267
- _this.dropdownMessageStream.next({
268
- type: i2.SkyDropdownMessageType.Close,
269
- });
270
- }));
271
- });
272
- }
273
- this.changeDetector.detectChanges();
274
- };
275
- return SkySummaryActionBarSecondaryActionsComponent;
276
- }());
277
- SkySummaryActionBarSecondaryActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarSecondaryActionsComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.SkyMediaQueryService }], target: i0__namespace.ɵɵFactoryTarget.Component });
278
- SkySummaryActionBarSecondaryActionsComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i2__namespace.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i4__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
279
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarSecondaryActionsComponent, decorators: [{
280
- type: i0.Component,
281
- args: [{
282
- selector: 'sky-summary-action-bar-secondary-actions',
283
- 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",
284
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
285
- }]
286
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.SkyMediaQueryService }]; }, propDecorators: { secondaryActionComponents: [{
287
- type: i0.ContentChildren,
288
- args: [SkySummaryActionBarSecondaryActionComponent]
289
- }] } });
290
-
291
- /**
292
- * @internal
293
- */
294
- var SkySummaryActionBarType;
295
- (function (SkySummaryActionBarType) {
296
- SkySummaryActionBarType[SkySummaryActionBarType["Page"] = 0] = "Page";
297
- SkySummaryActionBarType[SkySummaryActionBarType["StandardModal"] = 1] = "StandardModal";
298
- SkySummaryActionBarType[SkySummaryActionBarType["FullPageModal"] = 2] = "FullPageModal";
299
- SkySummaryActionBarType[SkySummaryActionBarType["Tab"] = 3] = "Tab";
300
- SkySummaryActionBarType[SkySummaryActionBarType["SplitView"] = 4] = "SplitView";
301
- })(SkySummaryActionBarType || (SkySummaryActionBarType = {}));
302
-
303
- /**
304
- * @internal
305
- */
306
- var SkySummaryActionBarAdapterService = /** @class */ (function () {
307
- function SkySummaryActionBarAdapterService(rendererFactory, windowRef) {
308
- this.rendererFactory = rendererFactory;
309
- this.windowRef = windowRef;
310
- this.renderer = this.rendererFactory.createRenderer(undefined, undefined);
311
- }
312
- SkySummaryActionBarAdapterService.prototype.styleBodyElementForActionBar = function (summaryActionBarRef) {
313
- var window = this.windowRef.nativeWindow;
314
- var body = window.document.body;
315
- var actionBarEl = summaryActionBarRef.nativeElement.querySelector('.sky-summary-action-bar');
316
- /* istanbul ignore else */
317
- if (actionBarEl.style.visibility !== 'hidden') {
318
- this.renderer.setStyle(body, 'margin-bottom', actionBarEl.offsetHeight + 'px');
319
- }
320
- };
321
- SkySummaryActionBarAdapterService.prototype.styleSplitViewElementForActionBar = function (summaryActionBarRef) {
322
- var splitViewWorkspaceContent = document.querySelector('.sky-split-view-workspace-content');
323
- var splitViewWorkspaceFooter = document.querySelector('.sky-split-view-workspace-footer');
324
- var actionBarEl = summaryActionBarRef.nativeElement.querySelector('.sky-summary-action-bar');
325
- /* istanbul ignore else */
326
- if (actionBarEl.style.visibility !== 'hidden') {
327
- this.renderer.setStyle(splitViewWorkspaceContent, 'padding-bottom', '20px');
328
- this.renderer.setStyle(splitViewWorkspaceFooter, 'padding', 0);
329
- }
330
- };
331
- SkySummaryActionBarAdapterService.prototype.revertBodyElementStyles = function () {
332
- var window = this.windowRef.nativeWindow;
333
- var body = window.document.body;
334
- this.renderer.removeStyle(body, 'margin-bottom');
335
- };
336
- SkySummaryActionBarAdapterService.prototype.revertSplitViewElementStyles = function () {
337
- var splitViewWorkspaceContent = document.querySelector('.sky-split-view-workspace-content');
338
- var splitViewWorkspaceFooter = document.querySelector('.sky-split-view-workspace-footer');
339
- this.renderer.setStyle(splitViewWorkspaceContent, 'padding-bottom', 'none');
340
- this.renderer.setStyle(splitViewWorkspaceFooter, 'padding', '10px');
341
- };
342
- SkySummaryActionBarAdapterService.prototype.styleModalFooter = function (summaryActionBarRef) {
343
- var modalFooterEls = document.getElementsByClassName('sky-modal-footer-container');
344
- for (var i = 0; i < modalFooterEls.length; i++) {
345
- if (modalFooterEls.item(i).contains(summaryActionBarRef.nativeElement)) {
346
- this.renderer.setStyle(modalFooterEls.item(i), 'padding', 0);
347
- }
348
- }
349
- };
350
- SkySummaryActionBarAdapterService.prototype.getSummaryActionBarType = function (el) {
351
- do {
352
- if (el.tagName.toLowerCase() === 'sky-modal-footer') {
353
- while (el.tagName.toLowerCase() !== 'sky-modal') {
354
- if (el.classList.contains('sky-modal-full-page')) {
355
- return SkySummaryActionBarType.FullPageModal;
356
- }
357
- el = el.parentElement;
358
- }
359
- return SkySummaryActionBarType.StandardModal;
360
- }
361
- else if (el.classList.contains('sky-tab')) {
362
- return SkySummaryActionBarType.Tab;
363
- }
364
- else if (el.tagName.toLowerCase() === 'sky-split-view-workspace') {
365
- return SkySummaryActionBarType.SplitView;
366
- }
367
- el = el.parentElement;
368
- // tslint:disable-next-line:no-null-keyword
369
- } while (el !== null && el.nodeType === 1);
370
- return SkySummaryActionBarType.Page;
371
- };
372
- return SkySummaryActionBarAdapterService;
373
- }());
374
- SkySummaryActionBarAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }, { token: i2__namespace$1.SkyAppWindowRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
375
- SkySummaryActionBarAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarAdapterService });
376
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarAdapterService, decorators: [{
377
- type: i0.Injectable
378
- }], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }, { type: i2__namespace$1.SkyAppWindowRef }]; } });
379
-
380
- /**
381
- * Specifies the summary information to display.
382
- */
383
- var SkySummaryActionBarSummaryComponent = /** @class */ (function () {
384
- function SkySummaryActionBarSummaryComponent() {
385
- }
386
- return SkySummaryActionBarSummaryComponent;
387
- }());
388
- SkySummaryActionBarSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarSummaryComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
389
- SkySummaryActionBarSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySummaryActionBarSummaryComponent, selector: "sky-summary-action-bar-summary", ngImport: i0__namespace, template: "<ng-content></ng-content>\n", changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
390
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarSummaryComponent, decorators: [{
391
- type: i0.Component,
392
- args: [{
393
- selector: 'sky-summary-action-bar-summary',
394
- template: "<ng-content></ng-content>\n",
395
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
396
- }]
397
- }] });
398
-
399
- /**
400
- * Auto-incrementing integer used to generate unique ids for summary action bar components.
401
- */
402
- var nextId = 0;
403
- /**
404
- * Contains the `sky-summary-action-bar-actions` and
405
- * `sky-summary-action-bar-summary` components.
406
- */
407
- var SkySummaryActionBarComponent = /** @class */ (function () {
408
- function SkySummaryActionBarComponent(adapterService, changeDetector, elementRef, mediaQueryService, observerService, windowRef) {
409
- this.adapterService = adapterService;
410
- this.changeDetector = changeDetector;
411
- this.elementRef = elementRef;
412
- this.mediaQueryService = mediaQueryService;
413
- this.observerService = observerService;
414
- this.windowRef = windowRef;
415
- this.isSummaryCollapsed = false;
416
- this.slideDirection = 'down';
417
- this.summaryId = "sky-summary-action-bar-summary-" + ++nextId;
418
- this.idled = new rxjs.Subject();
419
- }
420
- Object.defineProperty(SkySummaryActionBarComponent.prototype, "isSummaryCollapsible", {
421
- get: function () {
422
- return (this.type === SkySummaryActionBarType.StandardModal ||
423
- this.mediaQueryService.current === i2$1.SkyMediaBreakpoints.xs);
424
- },
425
- enumerable: false,
426
- configurable: true
427
- });
428
- Object.defineProperty(SkySummaryActionBarComponent.prototype, "summaryELement", {
429
- set: function (element) {
430
- this._summaryElement = element;
431
- this.changeDetector.markForCheck();
432
- },
433
- enumerable: false,
434
- configurable: true
435
- });
436
- Object.defineProperty(SkySummaryActionBarComponent.prototype, "summaryElement", {
437
- get: function () {
438
- return this._summaryElement;
439
- },
440
- enumerable: false,
441
- configurable: true
442
- });
443
- SkySummaryActionBarComponent.prototype.ngAfterViewInit = function () {
444
- this.type = this.adapterService.getSummaryActionBarType(this.elementRef.nativeElement);
445
- if (!(this.type === SkySummaryActionBarType.FullPageModal ||
446
- this.type === SkySummaryActionBarType.StandardModal)) {
447
- this.setupReactiveState();
448
- if (this.type === SkySummaryActionBarType.SplitView) {
449
- this.adapterService.styleSplitViewElementForActionBar(this.elementRef);
450
- }
451
- else {
452
- this.adapterService.styleBodyElementForActionBar(this.elementRef);
453
- }
454
- this.setupResizeListener();
455
- if (this.type === SkySummaryActionBarType.Tab) {
456
- this.setupTabListener();
457
- }
458
- }
459
- else {
460
- this.adapterService.styleModalFooter(this.elementRef);
461
- if (this.type === SkySummaryActionBarType.FullPageModal) {
462
- this.setupReactiveState();
463
- }
464
- }
465
- this.changeDetector.detectChanges();
466
- };
467
- SkySummaryActionBarComponent.prototype.ngOnDestroy = function () {
468
- if (this.type === SkySummaryActionBarType.SplitView) {
469
- this.adapterService.revertSplitViewElementStyles();
470
- }
471
- else if (this.type === SkySummaryActionBarType.Page ||
472
- this.type === SkySummaryActionBarType.Tab) {
473
- this.adapterService.revertBodyElementStyles();
474
- }
475
- this.removeResizeListener();
476
- this.removeTabListener();
477
- if (this.mediaQuerySubscription) {
478
- this.mediaQuerySubscription.unsubscribe();
479
- }
480
- this.idled.complete();
481
- };
482
- SkySummaryActionBarComponent.prototype.onDirectionChange = function (direction) {
483
- this.slideDirection = direction;
484
- };
485
- SkySummaryActionBarComponent.prototype.summaryContentExists = function () {
486
- return (this.summaryElement &&
487
- this.summaryElement.nativeElement.children.length > 0);
488
- };
489
- // NOTE: This function is needed so that the button is not removed until post-animation
490
- SkySummaryActionBarComponent.prototype.summaryTransitionEnd = function () {
491
- if (this.slideDirection === 'up') {
492
- this.isSummaryCollapsed = true;
493
- }
494
- if (this.type === SkySummaryActionBarType.Page ||
495
- this.type === SkySummaryActionBarType.Tab) {
496
- this.adapterService.styleBodyElementForActionBar(this.elementRef);
497
- }
498
- };
499
- // NOTE: This function is needed so that the button is added before animation
500
- SkySummaryActionBarComponent.prototype.summaryTransitionStart = function () {
501
- if (this.slideDirection === 'down') {
502
- this.isSummaryCollapsed = false;
503
- }
504
- };
505
- SkySummaryActionBarComponent.prototype.setupReactiveState = function () {
506
- var _this = this;
507
- this.mediaQuerySubscription = this.mediaQueryService.subscribe(function (args) {
508
- if (args !== i2$1.SkyMediaBreakpoints.xs) {
509
- _this.isSummaryCollapsed = false;
510
- _this.slideDirection = 'down';
511
- }
512
- _this.changeDetector.detectChanges();
513
- });
514
- };
515
- SkySummaryActionBarComponent.prototype.setupTabListener = function () {
516
- var _this = this;
517
- /* istanbul ignore else */
518
- if (!this.observer) {
519
- this.observer = this.observerService.create(function (mutations) {
520
- if (mutations[0].target.attributes.getNamedItem('hidden')) {
521
- _this.adapterService.revertBodyElementStyles();
522
- _this.removeResizeListener();
523
- }
524
- else {
525
- setTimeout(function () {
526
- _this.adapterService.styleBodyElementForActionBar(_this.elementRef);
527
- _this.setupResizeListener();
528
- });
529
- }
530
- });
531
- }
532
- var config = {
533
- attributes: true,
534
- attributeFilter: ['hidden'],
535
- childList: false,
536
- characterDate: false,
537
- };
538
- var el = this.elementRef.nativeElement;
539
- do {
540
- if (el.classList.contains('sky-tab')) {
541
- this.observer.observe(el, config);
542
- }
543
- el = el.parentElement;
544
- // tslint:disable-next-line:no-null-keyword
545
- } while (el !== null && el.nodeType === 1);
546
- };
547
- SkySummaryActionBarComponent.prototype.removeTabListener = function () {
548
- if (this.observer) {
549
- this.observer.disconnect();
550
- }
551
- };
552
- SkySummaryActionBarComponent.prototype.setupResizeListener = function () {
553
- var _this = this;
554
- if (this.type !== SkySummaryActionBarType.SplitView) {
555
- var windowObj = this.windowRef.nativeWindow;
556
- rxjs.fromEvent(windowObj, 'resize')
557
- .pipe(operators.takeUntil(this.idled))
558
- .subscribe(function () {
559
- _this.adapterService.styleBodyElementForActionBar(_this.elementRef);
560
- });
561
- }
562
- };
563
- SkySummaryActionBarComponent.prototype.removeResizeListener = function () {
564
- this.idled.next(true);
565
- };
566
- return SkySummaryActionBarComponent;
567
- }());
568
- SkySummaryActionBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarComponent, deps: [{ token: SkySummaryActionBarAdapterService }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }, { token: i2__namespace$1.SkyMediaQueryService }, { token: i2__namespace$1.MutationObserverService }, { token: i2__namespace$1.SkyAppWindowRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
569
- SkySummaryActionBarComponent.ɵcmp = i0__namespace.ɵɵ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: i0.ElementRef }], ngImport: i0__namespace, 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__namespace$1.λ2, selector: "sky-chevron", inputs: ["ariaControls", "ariaLabel", "direction", "disabled"], outputs: ["directionChange"] }], directives: [{ type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], pipes: { "skyLibResources": i4__namespace$1.SkyLibResourcesPipe }, animations: [animations.skyAnimationSlide], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
570
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarComponent, decorators: [{
571
- type: i0.Component,
572
- args: [{
573
- selector: 'sky-summary-action-bar',
574
- 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",
575
- 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"],
576
- animations: [animations.skyAnimationSlide],
577
- providers: [SkySummaryActionBarAdapterService],
578
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
579
- }]
580
- }], ctorParameters: function () { return [{ type: SkySummaryActionBarAdapterService }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }, { type: i2__namespace$1.SkyMediaQueryService }, { type: i2__namespace$1.MutationObserverService }, { type: i2__namespace$1.SkyAppWindowRef }]; }, propDecorators: { summaryELement: [{
581
- type: i0.ContentChild,
582
- args: [SkySummaryActionBarSummaryComponent, { read: i0.ElementRef }]
583
- }] } });
584
-
585
- var SkySummaryActionBarModule = /** @class */ (function () {
586
- function SkySummaryActionBarModule() {
587
- }
588
- return SkySummaryActionBarModule;
589
- }());
590
- SkySummaryActionBarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
591
- SkySummaryActionBarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarModule, declarations: [SkySummaryActionBarActionsComponent,
592
- SkySummaryActionBarCancelComponent,
593
- SkySummaryActionBarComponent,
594
- SkySummaryActionBarPrimaryActionComponent,
595
- SkySummaryActionBarSecondaryActionComponent,
596
- SkySummaryActionBarSecondaryActionsComponent,
597
- SkySummaryActionBarSummaryComponent], imports: [i4$1.CommonModule,
598
- i3$1.SkyChevronModule,
599
- i2.SkyDropdownModule,
600
- i4.SkyI18nModule,
601
- i3$1.SkyIconModule,
602
- SkyActionBarsResourcesModule,
603
- i3.SkyThemeModule], exports: [SkySummaryActionBarComponent,
604
- SkySummaryActionBarActionsComponent,
605
- SkySummaryActionBarCancelComponent,
606
- SkySummaryActionBarPrimaryActionComponent,
607
- SkySummaryActionBarSecondaryActionComponent,
608
- SkySummaryActionBarSecondaryActionsComponent,
609
- SkySummaryActionBarSummaryComponent] });
610
- SkySummaryActionBarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarModule, imports: [[
611
- i4$1.CommonModule,
612
- i3$1.SkyChevronModule,
613
- i2.SkyDropdownModule,
614
- i4.SkyI18nModule,
615
- i3$1.SkyIconModule,
616
- SkyActionBarsResourcesModule,
617
- i3.SkyThemeModule,
618
- ]] });
619
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarModule, decorators: [{
620
- type: i0.NgModule,
621
- args: [{
622
- declarations: [
623
- SkySummaryActionBarActionsComponent,
624
- SkySummaryActionBarCancelComponent,
625
- SkySummaryActionBarComponent,
626
- SkySummaryActionBarPrimaryActionComponent,
627
- SkySummaryActionBarSecondaryActionComponent,
628
- SkySummaryActionBarSecondaryActionsComponent,
629
- SkySummaryActionBarSummaryComponent,
630
- ],
631
- imports: [
632
- i4$1.CommonModule,
633
- i3$1.SkyChevronModule,
634
- i2.SkyDropdownModule,
635
- i4.SkyI18nModule,
636
- i3$1.SkyIconModule,
637
- SkyActionBarsResourcesModule,
638
- i3.SkyThemeModule,
639
- ],
640
- exports: [
641
- SkySummaryActionBarComponent,
642
- SkySummaryActionBarActionsComponent,
643
- SkySummaryActionBarCancelComponent,
644
- SkySummaryActionBarPrimaryActionComponent,
645
- SkySummaryActionBarSecondaryActionComponent,
646
- SkySummaryActionBarSecondaryActionsComponent,
647
- SkySummaryActionBarSummaryComponent,
648
- ],
649
- }]
650
- }] });
651
-
652
- /**
653
- * Generated bundle index. Do not edit.
654
- */
655
-
656
- exports.SkySummaryActionBarModule = SkySummaryActionBarModule;
657
- exports["λ1"] = SkySummaryActionBarSummaryComponent;
658
- exports["λ2"] = SkySummaryActionBarComponent;
659
- exports["λ3"] = SkySummaryActionBarActionsComponent;
660
- exports["λ4"] = SkySummaryActionBarCancelComponent;
661
- exports["λ5"] = SkySummaryActionBarPrimaryActionComponent;
662
- exports["λ6"] = SkySummaryActionBarSecondaryActionComponent;
663
- exports["λ7"] = SkySummaryActionBarSecondaryActionsComponent;
664
-
665
- Object.defineProperty(exports, '__esModule', { value: true });
666
-
667
- }));
668
- //# sourceMappingURL=skyux-action-bars.umd.js.map