@skyux/flyout 5.0.3 → 5.5.0-alpha.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 (74) hide show
  1. package/README.md +6 -4
  2. package/bundles/skyux-flyout.umd.js +144 -55
  3. package/documentation.json +486 -162
  4. package/esm2015/index.js +14 -0
  5. package/esm2015/index.js.map +1 -0
  6. package/esm2015/lib/modules/flyout/flyout-adapter.service.js +64 -0
  7. package/esm2015/lib/modules/flyout/flyout-adapter.service.js.map +1 -0
  8. package/esm2015/lib/modules/flyout/flyout-instance.js +109 -0
  9. package/esm2015/lib/modules/flyout/flyout-instance.js.map +1 -0
  10. package/esm2015/lib/modules/flyout/flyout-iterator.component.js +59 -0
  11. package/esm2015/lib/modules/flyout/flyout-iterator.component.js.map +1 -0
  12. package/esm2015/lib/modules/flyout/flyout-media-query.service.js +72 -0
  13. package/esm2015/lib/modules/flyout/flyout-media-query.service.js.map +1 -0
  14. package/esm2015/lib/modules/flyout/flyout.component.js +505 -0
  15. package/esm2015/lib/modules/flyout/flyout.component.js.map +1 -0
  16. package/esm2015/lib/modules/flyout/flyout.module.js +56 -0
  17. package/esm2015/lib/modules/flyout/flyout.module.js.map +1 -0
  18. package/esm2015/lib/modules/flyout/flyout.service.js +167 -0
  19. package/esm2015/lib/modules/flyout/flyout.service.js.map +1 -0
  20. package/esm2015/lib/modules/flyout/types/flyout-action.js +2 -0
  21. package/esm2015/lib/modules/flyout/types/flyout-action.js.map +1 -0
  22. package/esm2015/lib/modules/flyout/types/flyout-before-close-handler.js +9 -0
  23. package/esm2015/lib/modules/flyout/types/flyout-before-close-handler.js.map +1 -0
  24. package/esm2015/lib/modules/flyout/types/flyout-close-args.js +2 -0
  25. package/esm2015/lib/modules/flyout/types/flyout-close-args.js.map +1 -0
  26. package/esm2015/lib/modules/flyout/types/flyout-config.js +2 -0
  27. package/esm2015/lib/modules/flyout/types/flyout-config.js.map +1 -0
  28. package/esm2015/lib/modules/flyout/types/flyout-message-type.js +13 -0
  29. package/esm2015/lib/modules/flyout/types/flyout-message-type.js.map +1 -0
  30. package/esm2015/lib/modules/flyout/types/flyout-message.js +2 -0
  31. package/esm2015/lib/modules/flyout/types/flyout-message.js.map +1 -0
  32. package/esm2015/lib/modules/flyout/types/flyout-permalink.js +2 -0
  33. package/esm2015/lib/modules/flyout/types/flyout-permalink.js.map +1 -0
  34. package/esm2015/lib/modules/shared/sky-flyout-resources.module.js +54 -0
  35. package/esm2015/lib/modules/shared/sky-flyout-resources.module.js.map +1 -0
  36. package/esm2015/skyux-flyout.js +2 -2
  37. package/esm2015/skyux-flyout.js.map +1 -0
  38. package/fesm2015/skyux-flyout.js +131 -49
  39. package/fesm2015/skyux-flyout.js.map +1 -1
  40. package/index.d.ts +11 -0
  41. package/{modules → lib/modules}/flyout/flyout-adapter.service.d.ts +0 -0
  42. package/{modules → lib/modules}/flyout/flyout-instance.d.ts +12 -2
  43. package/{modules → lib/modules}/flyout/flyout-iterator.component.d.ts +0 -0
  44. package/{modules → lib/modules}/flyout/flyout-media-query.service.d.ts +0 -0
  45. package/{modules → lib/modules}/flyout/flyout.component.d.ts +11 -2
  46. package/lib/modules/flyout/flyout.module.d.ts +17 -0
  47. package/{modules → lib/modules}/flyout/flyout.service.d.ts +8 -7
  48. package/{modules → lib/modules}/flyout/types/flyout-action.d.ts +0 -0
  49. package/lib/modules/flyout/types/flyout-before-close-handler.d.ts +10 -0
  50. package/lib/modules/flyout/types/flyout-close-args.d.ts +9 -0
  51. package/{modules → lib/modules}/flyout/types/flyout-config.d.ts +10 -0
  52. package/{modules → lib/modules}/flyout/types/flyout-message-type.d.ts +0 -0
  53. package/{modules → lib/modules}/flyout/types/flyout-message.d.ts +3 -0
  54. package/{modules → lib/modules}/flyout/types/flyout-permalink.d.ts +0 -0
  55. package/{modules → lib/modules}/shared/sky-flyout-resources.module.d.ts +0 -0
  56. package/package.json +12 -11
  57. package/skyux-flyout.d.ts +1 -1
  58. package/LICENSE +0 -21
  59. package/esm2015/modules/flyout/flyout-adapter.service.js +0 -64
  60. package/esm2015/modules/flyout/flyout-instance.js +0 -98
  61. package/esm2015/modules/flyout/flyout-iterator.component.js +0 -59
  62. package/esm2015/modules/flyout/flyout-media-query.service.js +0 -72
  63. package/esm2015/modules/flyout/flyout.component.js +0 -456
  64. package/esm2015/modules/flyout/flyout.module.js +0 -52
  65. package/esm2015/modules/flyout/flyout.service.js +0 -155
  66. package/esm2015/modules/flyout/types/flyout-action.js +0 -2
  67. package/esm2015/modules/flyout/types/flyout-config.js +0 -2
  68. package/esm2015/modules/flyout/types/flyout-message-type.js +0 -13
  69. package/esm2015/modules/flyout/types/flyout-message.js +0 -2
  70. package/esm2015/modules/flyout/types/flyout-permalink.js +0 -2
  71. package/esm2015/modules/shared/sky-flyout-resources.module.js +0 -54
  72. package/esm2015/public-api.js +0 -12
  73. package/modules/flyout/flyout.module.d.ts +0 -16
  74. package/public-api.d.ts +0 -9
@@ -0,0 +1,56 @@
1
+ import { A11yModule } from '@angular/cdk/a11y';
2
+ import { NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { FormsModule } from '@angular/forms';
5
+ import { RouterModule } from '@angular/router';
6
+ import { SkyIconModule } from '@skyux/indicators';
7
+ import { SkyI18nModule } from '@skyux/i18n';
8
+ import { SkyHrefModule } from '@skyux/router';
9
+ import { SkyThemeModule } from '@skyux/theme';
10
+ import { SkyFlyoutResourcesModule } from '../shared/sky-flyout-resources.module';
11
+ import { SkyFlyoutComponent } from './flyout.component';
12
+ import { SkyFlyoutIteratorComponent } from './flyout-iterator.component';
13
+ import * as i0 from "@angular/core";
14
+ export class SkyFlyoutModule {
15
+ }
16
+ SkyFlyoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
+ SkyFlyoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutModule, declarations: [SkyFlyoutComponent, SkyFlyoutIteratorComponent], imports: [A11yModule,
18
+ CommonModule,
19
+ FormsModule,
20
+ RouterModule,
21
+ SkyI18nModule,
22
+ SkyIconModule,
23
+ SkyFlyoutResourcesModule,
24
+ SkyThemeModule,
25
+ SkyHrefModule], exports: [SkyFlyoutComponent] });
26
+ SkyFlyoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutModule, imports: [[
27
+ A11yModule,
28
+ CommonModule,
29
+ FormsModule,
30
+ RouterModule,
31
+ SkyI18nModule,
32
+ SkyIconModule,
33
+ SkyFlyoutResourcesModule,
34
+ SkyThemeModule,
35
+ SkyHrefModule,
36
+ ]] });
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutModule, decorators: [{
38
+ type: NgModule,
39
+ args: [{
40
+ declarations: [SkyFlyoutComponent, SkyFlyoutIteratorComponent],
41
+ imports: [
42
+ A11yModule,
43
+ CommonModule,
44
+ FormsModule,
45
+ RouterModule,
46
+ SkyI18nModule,
47
+ SkyIconModule,
48
+ SkyFlyoutResourcesModule,
49
+ SkyThemeModule,
50
+ SkyHrefModule,
51
+ ],
52
+ exports: [SkyFlyoutComponent],
53
+ entryComponents: [SkyFlyoutComponent],
54
+ }]
55
+ }] });
56
+ //# sourceMappingURL=flyout.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/flyout/src/lib/modules/flyout/flyout.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;;AAkBzE,MAAM,OAAO,eAAe;;6GAAf,eAAe;8GAAf,eAAe,iBAfX,kBAAkB,EAAE,0BAA0B,aAE3D,UAAU;QACV,YAAY;QACZ,WAAW;QACX,YAAY;QACZ,aAAa;QACb,aAAa;QACb,wBAAwB;QACxB,cAAc;QACd,aAAa,aAEL,kBAAkB;8GAGjB,eAAe,YAdjB;YACP,UAAU;YACV,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,aAAa;YACb,aAAa;YACb,wBAAwB;YACxB,cAAc;YACd,aAAa;SACd;4FAIU,eAAe;kBAhB3B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;oBAC9D,OAAO,EAAE;wBACP,UAAU;wBACV,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,wBAAwB;wBACxB,cAAc;wBACd,aAAa;qBACd;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,eAAe,EAAE,CAAC,kBAAkB,CAAC;iBACtC","sourcesContent":["import { A11yModule } from '@angular/cdk/a11y';\n\nimport { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { FormsModule } from '@angular/forms';\n\nimport { RouterModule } from '@angular/router';\n\nimport { SkyIconModule } from '@skyux/indicators';\n\nimport { SkyI18nModule } from '@skyux/i18n';\n\nimport { SkyHrefModule } from '@skyux/router';\n\nimport { SkyThemeModule } from '@skyux/theme';\n\nimport { SkyFlyoutResourcesModule } from '../shared/sky-flyout-resources.module';\n\nimport { SkyFlyoutComponent } from './flyout.component';\n\nimport { SkyFlyoutIteratorComponent } from './flyout-iterator.component';\n\n@NgModule({\n declarations: [SkyFlyoutComponent, SkyFlyoutIteratorComponent],\n imports: [\n A11yModule,\n CommonModule,\n FormsModule,\n RouterModule,\n SkyI18nModule,\n SkyIconModule,\n SkyFlyoutResourcesModule,\n SkyThemeModule,\n SkyHrefModule,\n ],\n exports: [SkyFlyoutComponent],\n entryComponents: [SkyFlyoutComponent],\n})\nexport class SkyFlyoutModule {}\n"]}
@@ -0,0 +1,167 @@
1
+ import { ApplicationRef, Injectable, NgZone, } from '@angular/core';
2
+ import { NavigationStart, Router } from '@angular/router';
3
+ import { SkyAppWindowRef, SkyCoreAdapterService, SkyDynamicComponentService, } from '@skyux/core';
4
+ import { fromEvent, Subject } from 'rxjs';
5
+ import { take, takeUntil, takeWhile } from 'rxjs/operators';
6
+ import { SkyFlyoutComponent } from './flyout.component';
7
+ import { SkyFlyoutMessageType } from './types/flyout-message-type';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@skyux/core";
10
+ import * as i2 from "@angular/router";
11
+ /**
12
+ * Launches flyouts and provides a common look and feel.
13
+ * This service dynamically generates the flyout component and appends it directly to the
14
+ * document's `body` element. The `SkyFlyoutInstance` class watches for and triggers flyout events.
15
+ */
16
+ export class SkyFlyoutService {
17
+ constructor(coreAdapter, windowRef, dynamicComponentService, router, _ngZone, applicationRef) {
18
+ this.coreAdapter = coreAdapter;
19
+ this.windowRef = windowRef;
20
+ this.dynamicComponentService = dynamicComponentService;
21
+ this.router = router;
22
+ this._ngZone = _ngZone;
23
+ this.applicationRef = applicationRef;
24
+ this.removeAfterClosed = false;
25
+ this.isOpening = false;
26
+ this.ngUnsubscribe = new Subject();
27
+ }
28
+ ngOnDestroy() {
29
+ this.removeListners();
30
+ if (this.host) {
31
+ this.removeHostComponent();
32
+ }
33
+ }
34
+ /**
35
+ * Closes the flyout. This method also removes the flyout's HTML elements from the DOM.
36
+ * @param args Arguments used when closing the flyout.
37
+ */
38
+ close(args) {
39
+ if (this.host && !this.isOpening) {
40
+ this.removeAfterClosed = true;
41
+ this.host.instance.messageStream.next({
42
+ type: SkyFlyoutMessageType.Close,
43
+ data: {
44
+ ignoreBeforeClose: args ? args.ignoreBeforeClose : false,
45
+ },
46
+ });
47
+ }
48
+ }
49
+ /**
50
+ * Opens a flyout and displays the specified component.
51
+ * @param component Specifies the component to render.
52
+ * @param config Specifies the flyout configuration passed to the specified component's constructor.
53
+ */
54
+ open(component, config) {
55
+ // isOpening flag will prevent close() from firing when open() is also fired.
56
+ this.isOpening = true;
57
+ this.windowRef.nativeWindow.setTimeout(() => {
58
+ this.isOpening = false;
59
+ });
60
+ if (!this.host) {
61
+ this.host = this.createHostComponent();
62
+ this.router.events
63
+ .pipe(takeWhile(() => this.host !== undefined))
64
+ .subscribe((event) => {
65
+ if (event instanceof NavigationStart) {
66
+ this.close();
67
+ // Sanity check - if the host still exists after animations should have completed - remove host
68
+ this._ngZone.onStable.pipe(take(1)).subscribe(() => {
69
+ if (this.host) {
70
+ this.removeHostComponent();
71
+ // Without this tick - the host does not actually get removed on initial navigation in this case.
72
+ this.applicationRef.tick();
73
+ }
74
+ });
75
+ }
76
+ });
77
+ }
78
+ const flyout = this.host.instance.attach(component, config);
79
+ this.addListeners(flyout);
80
+ return flyout;
81
+ }
82
+ createHostComponent() {
83
+ this.host =
84
+ this.dynamicComponentService.createComponent(SkyFlyoutComponent);
85
+ return this.host;
86
+ }
87
+ removeHostComponent() {
88
+ if (this.host) {
89
+ this.dynamicComponentService.removeComponent(this.host);
90
+ this.host = undefined;
91
+ }
92
+ }
93
+ addListeners(flyout) {
94
+ /* istanbul ignore else */
95
+ if (this.host) {
96
+ const flyoutInstance = this.host.instance;
97
+ let doClose = false;
98
+ /**
99
+ * Handles when to close a flyout.
100
+ * Note: We're using `mouseup` in order to capture the parent of certain targets that will be
101
+ * deleted immediately after being clicked. If we use `click`, the event is fired after the
102
+ * element is removed from the DOM making it impossible to check the parent's z-index
103
+ * relative to the flyout's container.
104
+ */
105
+ fromEvent(document, 'mouseup')
106
+ .pipe(takeUntil(this.ngUnsubscribe))
107
+ .subscribe((event) => {
108
+ doClose = false;
109
+ if (this.host.instance.isDragging) {
110
+ return;
111
+ }
112
+ if (flyoutInstance.flyoutRef.nativeElement.contains(event.target)) {
113
+ return;
114
+ }
115
+ const isAbove = event.target === document
116
+ ? false
117
+ : this.coreAdapter.isTargetAboveElement(event.target, flyoutInstance.flyoutRef.nativeElement);
118
+ /* istanbul ignore else */
119
+ if (!isAbove) {
120
+ doClose = true;
121
+ }
122
+ });
123
+ /**
124
+ * Check if we should close the flyout specifically on a `click` event so that we can keep
125
+ * it open when consumers fire another `click` event on a trigger button. Since the consumer
126
+ * will likely use a `click` event to open the flyout, we want to wait for that event to fire
127
+ * before determining if the flyout should be closed.
128
+ */
129
+ fromEvent(document, 'click')
130
+ .pipe(takeUntil(this.ngUnsubscribe))
131
+ .subscribe(() => {
132
+ if (doClose) {
133
+ this.close();
134
+ }
135
+ });
136
+ this.removeAfterClosed = false;
137
+ flyoutInstance.messageStream
138
+ .pipe(takeUntil(this.ngUnsubscribe))
139
+ .subscribe((message) => {
140
+ if (message.type === SkyFlyoutMessageType.Close) {
141
+ this.removeAfterClosed = true;
142
+ this.isOpening = false;
143
+ }
144
+ });
145
+ flyout.closed.pipe(take(1)).subscribe(() => {
146
+ this.removeListners();
147
+ if (this.removeAfterClosed) {
148
+ this.removeHostComponent();
149
+ }
150
+ });
151
+ }
152
+ }
153
+ removeListners() {
154
+ this.ngUnsubscribe.next(true);
155
+ this.ngUnsubscribe.unsubscribe();
156
+ this.ngUnsubscribe = new Subject();
157
+ }
158
+ }
159
+ SkyFlyoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutService, deps: [{ token: i1.SkyCoreAdapterService }, { token: i1.SkyAppWindowRef }, { token: i1.SkyDynamicComponentService }, { token: i2.Router }, { token: i0.NgZone }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
160
+ SkyFlyoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutService, providedIn: 'any' });
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutService, decorators: [{
162
+ type: Injectable,
163
+ args: [{
164
+ providedIn: 'any',
165
+ }]
166
+ }], ctorParameters: function () { return [{ type: i1.SkyCoreAdapterService }, { type: i1.SkyAppWindowRef }, { type: i1.SkyDynamicComponentService }, { type: i2.Router }, { type: i0.NgZone }, { type: i0.ApplicationRef }]; } });
167
+ //# sourceMappingURL=flyout.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout.service.js","sourceRoot":"","sources":["../../../../../../../../libs/components/flyout/src/lib/modules/flyout/flyout.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAEd,UAAU,EACV,MAAM,GAGP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAQxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,C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AAC,CAAC;iBACnC,SAAS,CAAC,CAAC,OAAyB,EAAE,EAAE;gBACvC,IAAI,OAAO,CAAC,IAAI,KAAK,oBAAoB,CAAC,KAAK,EAAE;oBAC/C,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;oBAC9B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;iBACxB;YACH,CAAC,CAAC,CAAC;YAEL,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE;gBACzC,IAAI,CAAC,cAAc,EAAE,CAAC;gBACtB,IAAI,IAAI,CAAC,iBAAiB,EAAE;oBAC1B,IAAI,CAAC,mBAAmB,EAAE,CAAC;iBAC5B;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAEO,cAAc;QACpB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9B,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,IAAI,OAAO,EAAW,CAAC;IAC9C,CAAC;;8GA5KU,gBAAgB;kHAAhB,gBAAgB,cAFf,KAAK;4FAEN,gBAAgB;kBAH5B,UAAU;mBAAC;oBACV,UAAU,EAAE,KAAK;iBAClB","sourcesContent":["import {\n ApplicationRef,\n ComponentRef,\n Injectable,\n NgZone,\n OnDestroy,\n Type,\n} from '@angular/core';\n\nimport { NavigationStart, Router } from '@angular/router';\n\nimport {\n SkyAppWindowRef,\n SkyCoreAdapterService,\n SkyDynamicComponentService,\n} from '@skyux/core';\n\nimport { fromEvent, Subject } from 'rxjs';\n\nimport { take, takeUntil, takeWhile } from 'rxjs/operators';\n\nimport { SkyFlyoutComponent } from './flyout.component';\n\nimport { SkyFlyoutInstance } from './flyout-instance';\n\nimport { SkyFlyoutConfig } from './types/flyout-config';\n\nimport { SkyFlyoutMessage } from './types/flyout-message';\n\nimport { SkyFlyoutMessageType } from './types/flyout-message-type';\nimport { SkyFlyoutCloseArgs } from './types/flyout-close-args';\n\n/**\n * Launches flyouts and provides a common look and feel.\n * This service dynamically generates the flyout component and appends it directly to the\n * document's `body` element. The `SkyFlyoutInstance` class watches for and triggers flyout events.\n */\n@Injectable({\n providedIn: 'any',\n})\nexport class SkyFlyoutService implements OnDestroy {\n private host: ComponentRef<SkyFlyoutComponent>;\n private removeAfterClosed = false;\n private isOpening: boolean = false;\n private ngUnsubscribe = new Subject<boolean>();\n\n constructor(\n private coreAdapter: SkyCoreAdapterService,\n private windowRef: SkyAppWindowRef,\n private dynamicComponentService: SkyDynamicComponentService,\n private router: Router,\n private readonly _ngZone: NgZone,\n private readonly applicationRef: ApplicationRef\n ) {}\n\n public ngOnDestroy(): void {\n this.removeListners();\n if (this.host) {\n this.removeHostComponent();\n }\n }\n\n /**\n * Closes the flyout. This method also removes the flyout's HTML elements from the DOM.\n * @param args Arguments used when closing the flyout.\n */\n public close(args?: SkyFlyoutCloseArgs): void {\n if (this.host && !this.isOpening) {\n this.removeAfterClosed = true;\n this.host.instance.messageStream.next({\n type: SkyFlyoutMessageType.Close,\n data: {\n ignoreBeforeClose: args ? args.ignoreBeforeClose : false,\n },\n });\n }\n }\n\n /**\n * Opens a flyout and displays the specified component.\n * @param component Specifies the component to render.\n * @param config Specifies the flyout configuration passed to the specified component's constructor.\n */\n public open<T>(\n component: Type<T>,\n config?: SkyFlyoutConfig\n ): SkyFlyoutInstance<T> {\n // isOpening flag will prevent close() from firing when open() is also fired.\n this.isOpening = true;\n this.windowRef.nativeWindow.setTimeout(() => {\n this.isOpening = false;\n });\n\n if (!this.host) {\n this.host = this.createHostComponent();\n\n this.router.events\n .pipe(takeWhile(() => this.host !== undefined))\n .subscribe((event) => {\n if (event instanceof NavigationStart) {\n this.close();\n\n // Sanity check - if the host still exists after animations should have completed - remove host\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n if (this.host) {\n this.removeHostComponent();\n // Without this tick - the host does not actually get removed on initial navigation in this case.\n this.applicationRef.tick();\n }\n });\n }\n });\n }\n\n const flyout = this.host.instance.attach(component, config);\n\n this.addListeners(flyout);\n\n return flyout;\n }\n\n private createHostComponent(): ComponentRef<SkyFlyoutComponent> {\n this.host =\n this.dynamicComponentService.createComponent(SkyFlyoutComponent);\n return this.host;\n }\n\n private removeHostComponent(): void {\n if (this.host) {\n this.dynamicComponentService.removeComponent(this.host);\n this.host = undefined;\n }\n }\n\n private addListeners<T>(flyout: SkyFlyoutInstance<T>): void {\n /* istanbul ignore else */\n if (this.host) {\n const flyoutInstance = this.host.instance;\n\n let doClose = false;\n\n /**\n * Handles when to close a flyout.\n * Note: We're using `mouseup` in order to capture the parent of certain targets that will be\n * deleted immediately after being clicked. If we use `click`, the event is fired after the\n * element is removed from the DOM making it impossible to check the parent's z-index\n * relative to the flyout's container.\n */\n fromEvent(document, 'mouseup')\n .pipe(takeUntil(this.ngUnsubscribe))\n .subscribe((event: MouseEvent) => {\n doClose = false;\n\n if (this.host.instance.isDragging) {\n return;\n }\n\n if (flyoutInstance.flyoutRef.nativeElement.contains(event.target)) {\n return;\n }\n\n const isAbove =\n event.target === document\n ? false\n : this.coreAdapter.isTargetAboveElement(\n event.target,\n flyoutInstance.flyoutRef.nativeElement\n );\n\n /* istanbul ignore else */\n if (!isAbove) {\n doClose = true;\n }\n });\n\n /**\n * Check if we should close the flyout specifically on a `click` event so that we can keep\n * it open when consumers fire another `click` event on a trigger button. Since the consumer\n * will likely use a `click` event to open the flyout, we want to wait for that event to fire\n * before determining if the flyout should be closed.\n */\n fromEvent(document, 'click')\n .pipe(takeUntil(this.ngUnsubscribe))\n .subscribe(() => {\n if (doClose) {\n this.close();\n }\n });\n\n this.removeAfterClosed = false;\n flyoutInstance.messageStream\n .pipe(takeUntil(this.ngUnsubscribe))\n .subscribe((message: SkyFlyoutMessage) => {\n if (message.type === SkyFlyoutMessageType.Close) {\n this.removeAfterClosed = true;\n this.isOpening = false;\n }\n });\n\n flyout.closed.pipe(take(1)).subscribe(() => {\n this.removeListners();\n if (this.removeAfterClosed) {\n this.removeHostComponent();\n }\n });\n }\n }\n\n private removeListners(): void {\n this.ngUnsubscribe.next(true);\n this.ngUnsubscribe.unsubscribe();\n this.ngUnsubscribe = new Subject<boolean>();\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flyout-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout-action.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/flyout/src/lib/modules/flyout/types/flyout-action.ts"],"names":[],"mappings":"","sourcesContent":["export interface SkyFlyoutAction {\n /**\n * Specifies the button's label.\n */\n label?: string;\n\n /**\n * Specifies a callback function to execute when the button is clicked.\n */\n callback?: () => void;\n\n /**\n * Indicates whether to close the flyout after the button is clicked.\n */\n closeAfterInvoking?: boolean;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Handler for notifying the flyout when it is appropriate to close the flyout. This will be returned from the flyout instance's `beforeClose` observable.
3
+ */
4
+ export class SkyFlyoutBeforeCloseHandler {
5
+ constructor(closeFlyoutFunction) {
6
+ this.closeFlyout = closeFlyoutFunction;
7
+ }
8
+ }
9
+ //# sourceMappingURL=flyout-before-close-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout-before-close-handler.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/flyout/src/lib/modules/flyout/types/flyout-before-close-handler.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,2BAA2B;IAMtC,YAAY,mBAA6B;QACvC,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAC;IACzC,CAAC;CACF","sourcesContent":["/**\n * Handler for notifying the flyout when it is appropriate to close the flyout. This will be returned from the flyout instance's `beforeClose` observable.\n */\nexport class SkyFlyoutBeforeCloseHandler {\n /**\n * Function which should be called to close the flyout. This should be called once any intervening actions have completed.\n */\n public readonly closeFlyout: Function;\n\n constructor(closeFlyoutFunction: Function) {\n this.closeFlyout = closeFlyoutFunction;\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flyout-close-args.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout-close-args.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/flyout/src/lib/modules/flyout/types/flyout-close-args.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Arguments used when closing a flyout programatically.\n */\nexport interface SkyFlyoutCloseArgs {\n /**\n * Indicates if the `SkyFlyoutBeforeCloseHandler` should be ignored when closing a flyout.\n */\n ignoreBeforeClose?: boolean;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flyout-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout-config.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/flyout/src/lib/modules/flyout/types/flyout-config.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyFlyoutAction } from './flyout-action';\n\nimport { SkyFlyoutPermalink } from './flyout-permalink';\n\n/**\n * Specifies the configuration options to set up a flyout.\n */\nexport interface SkyFlyoutConfig {\n /**\n * Specifies the HTML element ID (without the leading `#`) of the element that describes\n * the flyout. This sets the flyout's `aria-describedby` attribute\n * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).\n * The description typically includes text on the flyout but not on items that users\n * interact with, such as buttons and forms.\n */\n ariaDescribedBy?: string;\n\n /**\n * Specifies an ARIA label for the flyout. This sets the flyouts's `aria-label` attribute\n * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).\n * If the flyout includes a visible label, use `ariaLabelledBy` instead.\n */\n ariaLabel?: string;\n\n /**\n * Specifies the HTML element ID (without the leading `#`) of the element that labels\n * the flyout. This sets the flyout's `aria-labelledby` attribute\n * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).\n * If the flyout does not include a visible label, use `ariaLabel` instead.\n */\n ariaLabelledBy?: string;\n\n /**\n * Specifies an ARIA role for the flyout\n * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility)\n * by indicating how the flyout functions and what it controls. For information about how\n * an ARIA role indicates what an item represents on a web page,\n * see the [WAI-ARIA roles model](https://www.w3.org/WAI/PF/aria/roles).\n * @default dialog\n * @deprecated Since version `5.1.0`. Consumers should use the default `dialog` role to ensure a\n * proper accessibility implementation.\n */\n ariaRole?: string;\n\n /**\n * Specifies the default width of the flyout container. If you do not provide a width,\n * the flyout defaults to half the width of its container.\n */\n defaultWidth?: number;\n\n /**\n * Specifies the minimum resize width of the flyout container.\n * @default 320\n */\n minWidth?: number;\n\n /**\n * Specifies the maximum resize width of the flyout container.\n * @default defaultWidth\n */\n maxWidth?: number;\n\n /**\n * Displays a permalink button in the flyout header that navigates users to the URL\n * (or application route) representative of the flyout's contents.\n */\n permalink?: SkyFlyoutPermalink;\n\n /**\n * Displays a configurable button in the flyout header.\n */\n primaryAction?: SkyFlyoutAction;\n\n /**\n * Specifies an array of custom providers to pass to the component's constructor.\n */\n providers?: any[];\n\n /**\n * Indicates whether to display iterator buttons in the flyout header\n * to access the next and previous records in a record set.\n * @default false\n */\n showIterator?: boolean;\n\n /**\n * Disables the previous iterator button in the flyout header that accesses\n * the previous record in a record set.\n * @default false\n */\n iteratorPreviousButtonDisabled?: boolean;\n\n /**\n * Disables the next iterator button in the flyout header that accesses the next record\n * in a record set.\n * @default false\n */\n iteratorNextButtonDisabled?: boolean;\n\n /**\n * Specifies a unique key for the UI Config Service to retrieve stored settings from a database.\n * The UI Config Service saves configuration settings for users to preserve the width of\n * the flyout. For more information about the UI Config Service,\n * see [the sticky settings documentation](https://developer.blackbaud.com/skyux/learn/get-started/advanced/sticky-settings).\n */\n settingsKey?: string;\n}\n"]}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export var SkyFlyoutMessageType;
5
+ (function (SkyFlyoutMessageType) {
6
+ SkyFlyoutMessageType[SkyFlyoutMessageType["Open"] = 0] = "Open";
7
+ SkyFlyoutMessageType[SkyFlyoutMessageType["Close"] = 1] = "Close";
8
+ SkyFlyoutMessageType[SkyFlyoutMessageType["EnableIteratorNextButton"] = 2] = "EnableIteratorNextButton";
9
+ SkyFlyoutMessageType[SkyFlyoutMessageType["EnableIteratorPreviousButton"] = 3] = "EnableIteratorPreviousButton";
10
+ SkyFlyoutMessageType[SkyFlyoutMessageType["DisableIteratorNextButton"] = 4] = "DisableIteratorNextButton";
11
+ SkyFlyoutMessageType[SkyFlyoutMessageType["DisableIteratorPreviousButton"] = 5] = "DisableIteratorPreviousButton";
12
+ })(SkyFlyoutMessageType || (SkyFlyoutMessageType = {}));
13
+ //# sourceMappingURL=flyout-message-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout-message-type.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/flyout/src/lib/modules/flyout/types/flyout-message-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,+DAAQ,CAAA;IACR,iEAAK,CAAA;IACL,uGAAwB,CAAA;IACxB,+GAA4B,CAAA;IAC5B,yGAAyB,CAAA;IACzB,iHAA6B,CAAA;AAC/B,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B","sourcesContent":["/**\n * @internal\n */\nexport enum SkyFlyoutMessageType {\n Open = 0,\n Close,\n EnableIteratorNextButton,\n EnableIteratorPreviousButton,\n DisableIteratorNextButton,\n DisableIteratorPreviousButton,\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flyout-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout-message.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/flyout/src/lib/modules/flyout/types/flyout-message.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyFlyoutMessageType } from './flyout-message-type';\n\n/**\n * @internal\n */\nexport interface SkyFlyoutMessage {\n type: SkyFlyoutMessageType;\n data?: {\n ignoreBeforeClose?: boolean;\n };\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flyout-permalink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flyout-permalink.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/flyout/src/lib/modules/flyout/types/flyout-permalink.ts"],"names":[],"mappings":"","sourcesContent":["import { NavigationExtras } from '@angular/router';\n\nexport interface SkyFlyoutPermalink {\n /**\n * Specifies a text label for the permalink button.\n */\n label?: string;\n\n /**\n * Specifies an object that represents the\n * [Angular application route](https://angular.io/api/router/Router#navigate).\n * The object includes two properties that are mapped to Angular's\n * `Router.navigate(commands, extras?)` method.\n */\n route?: {\n commands: any[];\n extras?: NavigationExtras;\n };\n\n /**\n * Specifies an external URL for the permalink.\n */\n url?: string;\n}\n"]}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * NOTICE: DO NOT MODIFY THIS FILE!
3
+ * The contents of this file were automatically generated by
4
+ * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-flyout' schematic.
5
+ * To update this file, simply rerun the command.
6
+ */
7
+ import { NgModule } from '@angular/core';
8
+ import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS, } from '@skyux/i18n';
9
+ import * as i0 from "@angular/core";
10
+ const RESOURCES = {
11
+ 'EN-US': {
12
+ skyux_flyout_close: { message: 'Close flyout' },
13
+ skyux_flyout_iterator_previous_button: { message: 'Previous' },
14
+ skyux_flyout_iterator_next_button: { message: 'Next' },
15
+ skyux_flyout_permalink_button: { message: 'View record' },
16
+ skyux_flyout_primary_action_button: { message: 'Create list' },
17
+ skyux_flyout_resize_handle: {
18
+ message: 'Resize the flyout window. Press the enter or space key to activate, then use left arrow key to expand the flyout window and right arrow key to shrink the flyout window. Press the enter, space, or tab key to deactivate.',
19
+ },
20
+ },
21
+ };
22
+ export class SkyFlyoutResourcesProvider {
23
+ getString(localeInfo, name) {
24
+ return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
25
+ }
26
+ }
27
+ /**
28
+ * Import into any component library module that needs to use resource strings.
29
+ */
30
+ export class SkyFlyoutResourcesModule {
31
+ }
32
+ SkyFlyoutResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
33
+ SkyFlyoutResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutResourcesModule, exports: [SkyI18nModule] });
34
+ SkyFlyoutResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutResourcesModule, providers: [
35
+ {
36
+ provide: SKY_LIB_RESOURCES_PROVIDERS,
37
+ useClass: SkyFlyoutResourcesProvider,
38
+ multi: true,
39
+ },
40
+ ], imports: [SkyI18nModule] });
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFlyoutResourcesModule, decorators: [{
42
+ type: NgModule,
43
+ args: [{
44
+ exports: [SkyI18nModule],
45
+ providers: [
46
+ {
47
+ provide: SKY_LIB_RESOURCES_PROVIDERS,
48
+ useClass: SkyFlyoutResourcesProvider,
49
+ multi: true,
50
+ },
51
+ ],
52
+ }]
53
+ }] });
54
+ //# sourceMappingURL=sky-flyout-resources.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sky-flyout-resources.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/flyout/src/lib/modules/shared/sky-flyout-resources.module.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,qBAAqB,EAErB,aAAa,EAGb,2BAA2B,GAC5B,MAAM,aAAa,CAAC;;AAErB,MAAM,SAAS,GAA0C;IACvD,OAAO,EAAE;QACP,kBAAkB,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;QAC/C,qCAAqC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;QAC9D,iCAAiC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACtD,6BAA6B,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;QACzD,kCAAkC,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;QAC9D,0BAA0B,EAAE;YAC1B,OAAO,EACL,4NAA4N;SAC/N;KACF;CACF,CAAC;AAEF,MAAM,OAAO,0BAA0B;IAC9B,SAAS,CAAC,UAA4B,EAAE,IAAY;QACzD,OAAO,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;CACF;AAED;;GAEG;AAWH,MAAM,OAAO,wBAAwB;;sHAAxB,wBAAwB;uHAAxB,wBAAwB,YATzB,aAAa;uHASZ,wBAAwB,aARxB;QACT;YACE,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,0BAA0B;YACpC,KAAK,EAAE,IAAI;SACZ;KACF,YAPS,aAAa;4FASZ,wBAAwB;kBAVpC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,2BAA2B;4BACpC,QAAQ,EAAE,0BAA0B;4BACpC,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF","sourcesContent":["/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-flyout' schematic.\n * To update this file, simply rerun the command.\n */\n\nimport { NgModule } from '@angular/core';\nimport {\n getLibStringForLocale,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n SKY_LIB_RESOURCES_PROVIDERS,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_flyout_close: { message: 'Close flyout' },\n skyux_flyout_iterator_previous_button: { message: 'Previous' },\n skyux_flyout_iterator_next_button: { message: 'Next' },\n skyux_flyout_permalink_button: { message: 'View record' },\n skyux_flyout_primary_action_button: { message: 'Create list' },\n skyux_flyout_resize_handle: {\n message:\n 'Resize the flyout window. Press the enter or space key to activate, then use left arrow key to expand the flyout window and right arrow key to shrink the flyout window. Press the enter, space, or tab key to deactivate.',\n },\n },\n};\n\nexport class SkyFlyoutResourcesProvider implements SkyLibResourcesProvider {\n public getString(localeInfo: SkyAppLocaleInfo, name: string): string {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyFlyoutResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyFlyoutResourcesModule {}\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2t5dXgtZmx5b3V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvZmx5b3V0L3NyYy9za3l1eC1mbHlvdXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
4
+ export * from './index';
5
+ //# sourceMappingURL=skyux-flyout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skyux-flyout.js","sourceRoot":"","sources":["../../../../../libs/components/flyout/src/skyux-flyout.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}