@skyux/action-bars 5.6.2 → 6.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/documentation.json +91 -91
  2. package/esm2020/index.mjs +11 -0
  3. package/esm2020/lib/modules/shared/sky-action-bars-resources.module.mjs +50 -0
  4. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-actions.component.mjs +14 -0
  5. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-cancel.component.mjs +31 -0
  6. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-primary-action.component.mjs +32 -0
  7. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-action.component.mjs +43 -0
  8. package/esm2020/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.mjs +69 -0
  9. package/esm2020/lib/modules/summary-action-bar/summary/summary-action-bar-summary.component.mjs +14 -0
  10. package/esm2020/lib/modules/summary-action-bar/summary-action-bar-adapter.service.mjs +81 -0
  11. package/esm2020/lib/modules/summary-action-bar/summary-action-bar.component.mjs +179 -0
  12. package/esm2020/lib/modules/summary-action-bar/summary-action-bar.module.mjs +79 -0
  13. package/esm2020/lib/modules/summary-action-bar/types/summary-action-bar-type.mjs +12 -0
  14. package/esm2020/skyux-action-bars.mjs +5 -0
  15. package/esm2020/testing/public-api.mjs +4 -0
  16. package/esm2020/testing/skyux-action-bars-testing.mjs +5 -0
  17. package/esm2020/testing/summary-action-bar/summary-action-bar-fixture-action.mjs +2 -0
  18. package/esm2020/testing/summary-action-bar/summary-action-bar-fixture.mjs +135 -0
  19. package/esm2020/testing/summary-action-bar/summary-action-bar.module.mjs +27 -0
  20. package/fesm2015/{skyux-action-bars-testing.js → skyux-action-bars-testing.mjs} +5 -5
  21. package/fesm2015/skyux-action-bars-testing.mjs.map +1 -0
  22. package/fesm2015/{skyux-action-bars.js → skyux-action-bars.mjs} +49 -77
  23. package/fesm2015/skyux-action-bars.mjs.map +1 -0
  24. package/{esm2015/testing/summary-action-bar/summary-action-bar-fixture.js → fesm2020/skyux-action-bars-testing.mjs} +63 -40
  25. package/fesm2020/skyux-action-bars-testing.mjs.map +1 -0
  26. package/fesm2020/skyux-action-bars.mjs +566 -0
  27. package/fesm2020/skyux-action-bars.mjs.map +1 -0
  28. package/lib/modules/shared/sky-action-bars-resources.module.d.ts +1 -1
  29. package/lib/modules/summary-action-bar/summary-action-bar.component.d.ts +4 -2
  30. package/package.json +37 -16
  31. package/testing/package.json +5 -5
  32. package/bundles/skyux-action-bars-testing.umd.js +0 -563
  33. package/bundles/skyux-action-bars.umd.js +0 -653
  34. package/esm2015/index.js +0 -11
  35. package/esm2015/index.js.map +0 -1
  36. package/esm2015/lib/modules/shared/sky-action-bars-resources.module.js +0 -50
  37. package/esm2015/lib/modules/shared/sky-action-bars-resources.module.js.map +0 -1
  38. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-actions.component.js +0 -19
  39. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-actions.component.js.map +0 -1
  40. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-cancel.component.js +0 -36
  41. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-cancel.component.js.map +0 -1
  42. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-primary-action.component.js +0 -37
  43. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-primary-action.component.js.map +0 -1
  44. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-action.component.js +0 -48
  45. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-action.component.js.map +0 -1
  46. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.js +0 -73
  47. package/esm2015/lib/modules/summary-action-bar/actions/summary-action-bar-secondary-actions.component.js.map +0 -1
  48. package/esm2015/lib/modules/summary-action-bar/summary/summary-action-bar-summary.component.js +0 -18
  49. package/esm2015/lib/modules/summary-action-bar/summary/summary-action-bar-summary.component.js.map +0 -1
  50. package/esm2015/lib/modules/summary-action-bar/summary-action-bar-adapter.service.js +0 -81
  51. package/esm2015/lib/modules/summary-action-bar/summary-action-bar-adapter.service.js.map +0 -1
  52. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.component.js +0 -179
  53. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.component.js.map +0 -1
  54. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.module.js +0 -79
  55. package/esm2015/lib/modules/summary-action-bar/summary-action-bar.module.js.map +0 -1
  56. package/esm2015/lib/modules/summary-action-bar/types/summary-action-bar-type.js +0 -12
  57. package/esm2015/lib/modules/summary-action-bar/types/summary-action-bar-type.js.map +0 -1
  58. package/esm2015/skyux-action-bars.js +0 -5
  59. package/esm2015/skyux-action-bars.js.map +0 -1
  60. package/esm2015/testing/public-api.js +0 -4
  61. package/esm2015/testing/public-api.js.map +0 -1
  62. package/esm2015/testing/skyux-action-bars-testing.js +0 -5
  63. package/esm2015/testing/skyux-action-bars-testing.js.map +0 -1
  64. package/esm2015/testing/summary-action-bar/summary-action-bar-fixture-action.js +0 -2
  65. package/esm2015/testing/summary-action-bar/summary-action-bar-fixture-action.js.map +0 -1
  66. package/esm2015/testing/summary-action-bar/summary-action-bar-fixture.js.map +0 -1
  67. package/esm2015/testing/summary-action-bar/summary-action-bar.module.js +0 -27
  68. package/esm2015/testing/summary-action-bar/summary-action-bar.module.js.map +0 -1
  69. package/fesm2015/skyux-action-bars-testing.js.map +0 -1
  70. package/fesm2015/skyux-action-bars.js.map +0 -1
@@ -1,653 +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 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
- SkySummaryActionBarComponent.prototype.ngAfterViewInit = function () {
429
- this.type = this.adapterService.getSummaryActionBarType(this.elementRef.nativeElement);
430
- if (!(this.type === SkySummaryActionBarType.FullPageModal ||
431
- this.type === SkySummaryActionBarType.StandardModal)) {
432
- this.setupReactiveState();
433
- if (this.type === SkySummaryActionBarType.SplitView) {
434
- this.adapterService.styleSplitViewElementForActionBar(this.elementRef);
435
- }
436
- else {
437
- this.adapterService.styleBodyElementForActionBar(this.elementRef);
438
- }
439
- this.setupResizeListener();
440
- if (this.type === SkySummaryActionBarType.Tab) {
441
- this.setupTabListener();
442
- }
443
- }
444
- else {
445
- this.adapterService.styleModalFooter(this.elementRef);
446
- if (this.type === SkySummaryActionBarType.FullPageModal) {
447
- this.setupReactiveState();
448
- }
449
- }
450
- this.changeDetector.detectChanges();
451
- };
452
- SkySummaryActionBarComponent.prototype.ngOnDestroy = function () {
453
- if (this.type === SkySummaryActionBarType.SplitView) {
454
- this.adapterService.revertSplitViewElementStyles();
455
- }
456
- else if (this.type === SkySummaryActionBarType.Page ||
457
- this.type === SkySummaryActionBarType.Tab) {
458
- this.adapterService.revertBodyElementStyles();
459
- }
460
- this.removeResizeListener();
461
- this.removeTabListener();
462
- if (this.mediaQuerySubscription) {
463
- this.mediaQuerySubscription.unsubscribe();
464
- }
465
- this.idled.complete();
466
- };
467
- SkySummaryActionBarComponent.prototype.onDirectionChange = function (direction) {
468
- this.slideDirection = direction;
469
- };
470
- SkySummaryActionBarComponent.prototype.summaryContentExists = function () {
471
- return (this.summaryElement &&
472
- this.summaryElement.nativeElement.children.length > 0);
473
- };
474
- // NOTE: This function is needed so that the button is not removed until post-animation
475
- SkySummaryActionBarComponent.prototype.summaryTransitionEnd = function () {
476
- if (this.slideDirection === 'up') {
477
- this.isSummaryCollapsed = true;
478
- }
479
- if (this.type === SkySummaryActionBarType.Page ||
480
- this.type === SkySummaryActionBarType.Tab) {
481
- this.adapterService.styleBodyElementForActionBar(this.elementRef);
482
- }
483
- };
484
- // NOTE: This function is needed so that the button is added before animation
485
- SkySummaryActionBarComponent.prototype.summaryTransitionStart = function () {
486
- if (this.slideDirection === 'down') {
487
- this.isSummaryCollapsed = false;
488
- }
489
- };
490
- SkySummaryActionBarComponent.prototype.setupReactiveState = function () {
491
- var _this = this;
492
- this.mediaQuerySubscription = this.mediaQueryService.subscribe(function (args) {
493
- if (args !== i2$1.SkyMediaBreakpoints.xs) {
494
- _this.isSummaryCollapsed = false;
495
- _this.slideDirection = 'down';
496
- }
497
- _this.changeDetector.detectChanges();
498
- });
499
- };
500
- SkySummaryActionBarComponent.prototype.setupTabListener = function () {
501
- var _this = this;
502
- /* istanbul ignore else */
503
- if (!this.observer) {
504
- this.observer = this.observerService.create(function (mutations) {
505
- if (mutations[0].target.attributes.getNamedItem('hidden')) {
506
- _this.adapterService.revertBodyElementStyles();
507
- _this.removeResizeListener();
508
- }
509
- else {
510
- setTimeout(function () {
511
- _this.adapterService.styleBodyElementForActionBar(_this.elementRef);
512
- _this.setupResizeListener();
513
- });
514
- }
515
- });
516
- }
517
- var config = {
518
- attributes: true,
519
- attributeFilter: ['hidden'],
520
- childList: false,
521
- characterDate: false,
522
- };
523
- var el = this.elementRef.nativeElement;
524
- do {
525
- if (el.classList.contains('sky-tab')) {
526
- this.observer.observe(el, config);
527
- }
528
- el = el.parentElement;
529
- // tslint:disable-next-line:no-null-keyword
530
- } while (el !== null && el.nodeType === 1);
531
- };
532
- SkySummaryActionBarComponent.prototype.removeTabListener = function () {
533
- if (this.observer) {
534
- this.observer.disconnect();
535
- }
536
- };
537
- SkySummaryActionBarComponent.prototype.setupResizeListener = function () {
538
- var _this = this;
539
- if (this.type !== SkySummaryActionBarType.SplitView) {
540
- var windowObj = this.windowRef.nativeWindow;
541
- rxjs.fromEvent(windowObj, 'resize')
542
- .pipe(operators.takeUntil(this.idled))
543
- .subscribe(function () {
544
- _this.adapterService.styleBodyElementForActionBar(_this.elementRef);
545
- });
546
- }
547
- };
548
- SkySummaryActionBarComponent.prototype.removeResizeListener = function () {
549
- this.idled.next(true);
550
- };
551
- return SkySummaryActionBarComponent;
552
- }());
553
- 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 });
554
- 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 });
555
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarComponent, decorators: [{
556
- type: i0.Component,
557
- args: [{
558
- selector: 'sky-summary-action-bar',
559
- 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",
560
- 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"],
561
- animations: [animations.skyAnimationSlide],
562
- providers: [SkySummaryActionBarAdapterService],
563
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
564
- }]
565
- }], 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: [{
566
- type: i0.ContentChild,
567
- args: [SkySummaryActionBarSummaryComponent, { read: i0.ElementRef }]
568
- }] } });
569
-
570
- var SkySummaryActionBarModule = /** @class */ (function () {
571
- function SkySummaryActionBarModule() {
572
- }
573
- return SkySummaryActionBarModule;
574
- }());
575
- SkySummaryActionBarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
576
- SkySummaryActionBarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarModule, declarations: [SkySummaryActionBarActionsComponent,
577
- SkySummaryActionBarCancelComponent,
578
- SkySummaryActionBarComponent,
579
- SkySummaryActionBarPrimaryActionComponent,
580
- SkySummaryActionBarSecondaryActionComponent,
581
- SkySummaryActionBarSecondaryActionsComponent,
582
- SkySummaryActionBarSummaryComponent], imports: [i4$1.CommonModule,
583
- i3$1.SkyChevronModule,
584
- i2.SkyDropdownModule,
585
- i4.SkyI18nModule,
586
- i3$1.SkyIconModule,
587
- SkyActionBarsResourcesModule,
588
- i3.SkyThemeModule], exports: [SkySummaryActionBarComponent,
589
- SkySummaryActionBarActionsComponent,
590
- SkySummaryActionBarCancelComponent,
591
- SkySummaryActionBarPrimaryActionComponent,
592
- SkySummaryActionBarSecondaryActionComponent,
593
- SkySummaryActionBarSecondaryActionsComponent,
594
- SkySummaryActionBarSummaryComponent] });
595
- SkySummaryActionBarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarModule, imports: [[
596
- i4$1.CommonModule,
597
- i3$1.SkyChevronModule,
598
- i2.SkyDropdownModule,
599
- i4.SkyI18nModule,
600
- i3$1.SkyIconModule,
601
- SkyActionBarsResourcesModule,
602
- i3.SkyThemeModule,
603
- ]] });
604
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySummaryActionBarModule, decorators: [{
605
- type: i0.NgModule,
606
- args: [{
607
- declarations: [
608
- SkySummaryActionBarActionsComponent,
609
- SkySummaryActionBarCancelComponent,
610
- SkySummaryActionBarComponent,
611
- SkySummaryActionBarPrimaryActionComponent,
612
- SkySummaryActionBarSecondaryActionComponent,
613
- SkySummaryActionBarSecondaryActionsComponent,
614
- SkySummaryActionBarSummaryComponent,
615
- ],
616
- imports: [
617
- i4$1.CommonModule,
618
- i3$1.SkyChevronModule,
619
- i2.SkyDropdownModule,
620
- i4.SkyI18nModule,
621
- i3$1.SkyIconModule,
622
- SkyActionBarsResourcesModule,
623
- i3.SkyThemeModule,
624
- ],
625
- exports: [
626
- SkySummaryActionBarComponent,
627
- SkySummaryActionBarActionsComponent,
628
- SkySummaryActionBarCancelComponent,
629
- SkySummaryActionBarPrimaryActionComponent,
630
- SkySummaryActionBarSecondaryActionComponent,
631
- SkySummaryActionBarSecondaryActionsComponent,
632
- SkySummaryActionBarSummaryComponent,
633
- ],
634
- }]
635
- }] });
636
-
637
- /**
638
- * Generated bundle index. Do not edit.
639
- */
640
-
641
- exports.SkySummaryActionBarModule = SkySummaryActionBarModule;
642
- exports["λ1"] = SkySummaryActionBarSummaryComponent;
643
- exports["λ2"] = SkySummaryActionBarComponent;
644
- exports["λ3"] = SkySummaryActionBarActionsComponent;
645
- exports["λ4"] = SkySummaryActionBarCancelComponent;
646
- exports["λ5"] = SkySummaryActionBarPrimaryActionComponent;
647
- exports["λ6"] = SkySummaryActionBarSecondaryActionComponent;
648
- exports["λ7"] = SkySummaryActionBarSecondaryActionsComponent;
649
-
650
- Object.defineProperty(exports, '__esModule', { value: true });
651
-
652
- }));
653
- //# sourceMappingURL=skyux-action-bars.umd.js.map