@daffodil/design 0.68.0 → 0.69.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 (121) hide show
  1. package/esm2022/article/article/article.component.mjs +2 -2
  2. package/esm2022/article/examples/article-headings/article-headings.component.mjs +3 -4
  3. package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +3 -3
  4. package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +3 -3
  5. package/esm2022/modal/service/modal.service.mjs +2 -3
  6. package/esm2022/public_api.mjs +1 -2
  7. package/esm2022/sidebar/public_api.mjs +2 -1
  8. package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +12 -4
  9. package/esm2022/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation-state.mjs +2 -0
  10. package/esm2022/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation.mjs +20 -0
  11. package/esm2022/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.mjs +91 -0
  12. package/esm2022/sidebar/sidebar.module.mjs +10 -9
  13. package/esm2022/toast/daffodil-design-toast.mjs +5 -0
  14. package/esm2022/toast/examples/daffodil-design-toast-examples.mjs +5 -0
  15. package/esm2022/toast/examples/default-toast/default-toast.component.mjs +38 -0
  16. package/esm2022/toast/examples/default-toast/default-toast.module.mjs +36 -0
  17. package/esm2022/toast/examples/index.mjs +2 -0
  18. package/esm2022/toast/examples/public_api.mjs +15 -0
  19. package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +42 -0
  20. package/esm2022/toast/examples/toast-positions/toast-positions.module.mjs +57 -0
  21. package/esm2022/toast/examples/toast-status/toast-status.component.mjs +45 -0
  22. package/esm2022/toast/examples/toast-status/toast-status.module.mjs +40 -0
  23. package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +26 -0
  24. package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.module.mjs +32 -0
  25. package/esm2022/toast/index.mjs +2 -0
  26. package/esm2022/toast/interfaces/toast-action.mjs +2 -0
  27. package/esm2022/toast/interfaces/toast.mjs +2 -0
  28. package/esm2022/toast/options/daff-toast-options.mjs +16 -0
  29. package/esm2022/toast/public_api.mjs +9 -0
  30. package/esm2022/toast/service/changes-focus.mjs +2 -0
  31. package/esm2022/toast/service/position-strategy.mjs +29 -0
  32. package/esm2022/toast/service/position.service.mjs +33 -0
  33. package/esm2022/toast/service/toast.service.mjs +116 -0
  34. package/esm2022/toast/toast/toast-config.mjs +2 -0
  35. package/esm2022/toast/toast/toast-template.component.mjs +262 -0
  36. package/esm2022/toast/toast/toast.component.mjs +82 -0
  37. package/esm2022/toast/toast-actions/toast-actions.directive.mjs +19 -0
  38. package/esm2022/toast/toast-message/toast-message.directive.mjs +19 -0
  39. package/esm2022/toast/toast-title/toast-title.directive.mjs +19 -0
  40. package/esm2022/toast/toast.module.mjs +70 -0
  41. package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +1 -1
  42. package/esm2022/tree/interfaces/tree-render-mode.mjs +2 -0
  43. package/esm2022/tree/public_api.mjs +2 -1
  44. package/esm2022/tree/tree/tree.component.mjs +43 -36
  45. package/esm2022/tree/utils/flatten-tree.mjs +26 -14
  46. package/esm2022/tree/utils/transform.mjs +25 -0
  47. package/fesm2022/daffodil-design-article-examples.mjs +2 -2
  48. package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
  49. package/fesm2022/daffodil-design-article.mjs +2 -2
  50. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  51. package/fesm2022/daffodil-design-loading-icon-examples.mjs +2 -2
  52. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  53. package/fesm2022/daffodil-design-loading-icon.mjs +2 -2
  54. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  55. package/fesm2022/daffodil-design-modal.mjs +1 -2
  56. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  57. package/fesm2022/daffodil-design-sidebar.mjs +131 -14
  58. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  59. package/fesm2022/daffodil-design-toast-examples.mjs +287 -0
  60. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -0
  61. package/fesm2022/daffodil-design-toast.mjs +625 -0
  62. package/fesm2022/daffodil-design-toast.mjs.map +1 -0
  63. package/fesm2022/daffodil-design-tree-examples.mjs +1 -1
  64. package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
  65. package/fesm2022/daffodil-design-tree.mjs +92 -48
  66. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  67. package/fesm2022/daffodil-design.mjs +1 -125
  68. package/fesm2022/daffodil-design.mjs.map +1 -1
  69. package/loading-icon/src/loading-icon-theme.scss +24 -8
  70. package/navbar/README.md +1 -1
  71. package/package.json +1 -1
  72. package/public_api.d.ts +0 -1
  73. package/scss/theme.scss +2 -0
  74. package/sidebar/public_api.d.ts +1 -0
  75. package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +3 -2
  76. package/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation-state.d.ts +2 -0
  77. package/{molecules/backdrop → sidebar/sidebar-viewport-backdrop}/animation/backdrop-animation.d.ts +1 -1
  78. package/{molecules/backdrop/backdrop/backdrop.component.d.ts → sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts} +5 -5
  79. package/sidebar/sidebar.module.d.ts +4 -4
  80. package/toast/README.md +115 -0
  81. package/toast/examples/default-toast/default-toast.component.d.ts +15 -0
  82. package/toast/examples/default-toast/default-toast.module.d.ts +11 -0
  83. package/toast/examples/index.d.ts +1 -0
  84. package/toast/examples/public_api.d.ts +2 -0
  85. package/toast/examples/toast-positions/toast-positions.component.d.ts +17 -0
  86. package/toast/examples/toast-positions/toast-positions.module.d.ts +12 -0
  87. package/toast/examples/toast-status/toast-status.component.d.ts +14 -0
  88. package/toast/examples/toast-status/toast-status.module.d.ts +12 -0
  89. package/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.d.ts +10 -0
  90. package/toast/examples/toast-with-custom-duration/toast-with-custom-duration.module.d.ts +10 -0
  91. package/toast/index.d.ts +1 -0
  92. package/toast/interfaces/toast-action.d.ts +38 -0
  93. package/toast/interfaces/toast.d.ts +20 -0
  94. package/toast/options/daff-toast-options.d.ts +15 -0
  95. package/toast/public_api.d.ts +11 -0
  96. package/toast/service/changes-focus.d.ts +2 -0
  97. package/toast/service/position-strategy.d.ts +3 -0
  98. package/toast/service/position.service.d.ts +15 -0
  99. package/toast/service/toast.service.d.ts +29 -0
  100. package/toast/src/toast-theme.scss +63 -0
  101. package/toast/toast/toast-config.d.ts +7 -0
  102. package/toast/toast/toast-template.component.d.ts +20 -0
  103. package/toast/toast/toast.component.d.ts +52 -0
  104. package/toast/toast-actions/toast-actions.directive.d.ts +6 -0
  105. package/toast/toast-message/toast-message.directive.d.ts +6 -0
  106. package/toast/toast-title/toast-title.directive.d.ts +6 -0
  107. package/toast/toast.module.d.ts +17 -0
  108. package/tree/README.md +1 -3
  109. package/tree/interfaces/tree-render-mode.d.ts +6 -0
  110. package/tree/public_api.d.ts +2 -0
  111. package/tree/tree/tree.component.d.ts +33 -11
  112. package/tree/utils/flatten-tree.d.ts +2 -1
  113. package/tree/utils/transform.d.ts +13 -0
  114. package/esm2022/molecules/backdrop/animation/backdrop-animation-state.mjs +0 -2
  115. package/esm2022/molecules/backdrop/animation/backdrop-animation.mjs +0 -20
  116. package/esm2022/molecules/backdrop/backdrop/backdrop.component.mjs +0 -87
  117. package/esm2022/molecules/backdrop/backdrop.module.mjs +0 -24
  118. package/esm2022/molecules/backdrop/public_api.mjs +0 -3
  119. package/molecules/backdrop/animation/backdrop-animation-state.d.ts +0 -2
  120. package/molecules/backdrop/backdrop.module.d.ts +0 -8
  121. package/molecules/backdrop/public_api.d.ts +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-design-sidebar.mjs","sources":["../../../libs/design/sidebar/src/sidebar/is-opening.ts","../../../libs/design/sidebar/src/animation/sidebar-animation.ts","../../../libs/design/sidebar/src/animation/sidebar-animation-state.ts","../../../libs/design/sidebar/src/animation/sidebar-animation-width.ts","../../../libs/design/sidebar/src/sidebar/sidebar.component.ts","../../../libs/design/sidebar/src/sidebar/sidebar.component.html","../../../libs/design/sidebar/src/sidebar-footer/sidebar-footer.component.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header-action/sidebar-header-action.directive.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header-title/sidebar-header-title.directive.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header.component.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header.component.html","../../../libs/design/sidebar/src/sidebar-viewport/helper/has-parent-viewport.ts","../../../libs/design/sidebar/src/sidebar-viewport/nav-placement.ts","../../../libs/design/sidebar/src/sidebar-viewport/scroll-token/scroll.token.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/backdrop-interactable.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/content-pad.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/content-shift.ts","../../../libs/design/sidebar/src/animation/sidebar-viewport-animation-state.ts","../../../libs/design/sidebar/src/sidebar-viewport/sidebar-viewport.component.ts","../../../libs/design/sidebar/src/sidebar-viewport/sidebar-viewport.component.html","../../../libs/design/sidebar/src/sidebar.module.ts","../../../libs/design/sidebar/src/daffodil-design-sidebar.ts"],"sourcesContent":["import { DaffSidebarAnimationState } from '../animation/sidebar-animation-state';\n\n/**\n * Determine whether or animation states are going to an open state from a non-open state.\n */\nexport const isOpening = (fromState: DaffSidebarAnimationState, toState: DaffSidebarAnimationState): boolean => {\n if(fromState === 'under-open' && toState === 'open' || fromState === 'open' && toState === 'under-open') {\n return false;\n }\n\n if(toState === 'under-open' || toState === 'open') {\n return true;\n }\n return false;\n};\n","import {\n animate,\n state,\n style,\n transition,\n trigger,\n AnimationTriggerMetadata,\n} from '@angular/animations';\n\nconst duration = '200ms';\nconst sidebarAnimateInTransition = 'cubic-bezier(0.0, 0.0, 0.2, 1)';\nconst sidebarAnimateOutTransition = 'cubic-bezier(0.4, 0.0, 1, 1)';\n\nexport const daffSidebarAnimations: {\n readonly transformSidebar: AnimationTriggerMetadata;\n readonly transformContent: AnimationTriggerMetadata;\n readonly backdropTrigger: AnimationTriggerMetadata;\n} = {\n transformSidebar: trigger('transformSidebar', [\n // We remove the `transform` here completely, rather than setting it to zero, because\n // 3d transforms causes text to appear blurry on IE and Edge.\n state('open', style({\n transform: 'none',\n })),\n state('closed', style({\n transform: 'translateX({{width}})',\n }), { params: { width: '-240px' }}),\n transition('open => closed', animate(duration + ' ' + sidebarAnimateOutTransition)),\n transition('closed => open', animate(duration + ' ' + sidebarAnimateInTransition)),\n ]),\n transformContent: trigger('transformContent', [\n // We remove the `transform` here completely, rather than setting it to zero, because\n // 3d transforms causes text to appear blurry on IE and Edge.\n state('closed', style({\n transform: 'none',\n })),\n state('open', style({\n transform: 'translateX({{shift}})',\n }), { params: { shift: '-240px' }}),\n transition('open => closed', animate(duration + ' ' + sidebarAnimateInTransition)),\n transition('closed => open', animate(duration + ' ' + sidebarAnimateOutTransition)),\n ]),\n backdropTrigger: trigger('backdropTrigger', [\n state('open', style({\n opacity: 1,\n })),\n state('closed', style({\n opacity: 0,\n })),\n transition('open => closed', animate(duration + ' ' + sidebarAnimateOutTransition)),\n transition('closed => open', animate(duration + ' ' + sidebarAnimateInTransition)),\n ]),\n};\n\nexport enum DaffSidebarAnimationStates {\n OPEN = 'open',\n CLOSED = 'closed',\n UNDEROPEN = 'under-open',\n UNDERCLOSED = 'under-closed',\n SIDEFIXEDOPEN = 'side-fixed-open',\n SIDEFIXEDCLOSED = 'side-fixed-closed',\n NONE = 'none'\n}\n","import { DaffSidebarMode } from '../helper/sidebar-mode';\n\nexport type DaffSidebarAnimationState =\n'open' | 'closed' | 'under-open' | 'under-closed' | 'side-fixed-open' | 'side-fixed-closed' | 'none';\n\nexport const getAnimationState = (open: boolean, mode: DaffSidebarMode): DaffSidebarAnimationState => {\n if(mode === 'side') {\n return 'none';\n }\n\n if(mode === 'side-fixed' && open) {\n return 'side-fixed-open';\n }\n\n if(mode === 'side-fixed' && !open) {\n return 'side-fixed-closed';\n }\n\n if(open && mode === 'under') {\n return 'under-open';\n }\n\n if(!open && mode === 'under') {\n return 'under-closed';\n }\n\n if(open) {\n return 'open';\n } else {\n return 'closed';\n }\n};\n","import { DaffSidebarSide } from '../helper/sidebar-side';\n\nexport const getSidebarAnimationWidth =\n (side: DaffSidebarSide, width: number): string => side === 'left' ? -1 * width + 'px' : width + 'px';\n","import { AnimationEvent } from '@angular/animations';\nimport {\n ConfigurableFocusTrap,\n ConfigurableFocusTrapFactory,\n} from '@angular/cdk/a11y';\nimport { DOCUMENT } from '@angular/common';\nimport {\n Component,\n NgZone,\n ElementRef,\n Output,\n EventEmitter,\n HostBinding,\n ChangeDetectionStrategy,\n Input,\n HostListener,\n Inject,\n} from '@angular/core';\nimport { fromEvent } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport {\n daffFocusableElementsSelector,\n DaffFocusStackService,\n} from '@daffodil/design';\n\nimport { isOpening } from './is-opening';\nimport { daffSidebarAnimations } from '../animation/sidebar-animation';\nimport {\n DaffSidebarAnimationState,\n getAnimationState,\n} from '../animation/sidebar-animation-state';\nimport { getSidebarAnimationWidth } from '../animation/sidebar-animation-width';\nimport { DaffSidebarMode } from '../helper/sidebar-mode';\nimport { DaffSidebarSide } from '../helper/sidebar-side';\n\n/**\n * DaffSidebarComponent is heavily based upon the work done by the @angular/components\n * team on `mat-drawer` and `mat-sidenav`. `daff-sidebar` is intended to be\n * a simplified version (with a different design) of `mat-drawer`.\n */\n@Component({\n selector: 'daff-sidebar',\n templateUrl: './sidebar.component.html',\n styleUrls: ['./sidebar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n daffSidebarAnimations.transformSidebar,\n ],\n})\nexport class DaffSidebarComponent {\n /**\n * @docs-private\n *\n * The CSS classes set.\n */\n @HostBinding('class') get classes() {\n return {\n 'daff-sidebar': true,\n [this.side]: true,\n [this.mode]: true,\n };\n };\n\n /**\n * The animation state of the sidebar.\n */\n @HostBinding('@transformSidebar') get transformSidebar() {\n return {\n value: getAnimationState(this.open, this.mode),\n params: { width: getSidebarAnimationWidth(this.side, this.width) },\n };\n }\n\n /**\n * Event fired when `ESC` key is pressed when the sidebar has focus\n */\n @Output() escapePressed: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * What side of the viewport to show the sidebar on.\n */\n @Input() side: DaffSidebarSide = 'left';\n\n /**\n * The mode of the sidebar.\n */\n @Input() mode: DaffSidebarMode = 'side';\n\n /**\n * Whether or not the sidebar is open.\n */\n @Input() open = false;\n\n /**\n * The width of the sidebar.\n */\n get width() {\n return this._elementRef.nativeElement.offsetWidth;\n }\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>,\n private _ngZone: NgZone,\n private _focusTrapFactory: ConfigurableFocusTrapFactory,\n private _focusStack: DaffFocusStackService,\n @Inject(DOCUMENT) private _doc: any,\n ) {\n\n /**\n * Listen to `keydown` events outside the zone so that change detection is not run every\n * time a key is pressed. Instead we re-enter the zone only if the `ESC` key is pressed.\n *\n */\n this._ngZone.runOutsideAngular(() => {\n fromEvent<KeyboardEvent>(this._elementRef.nativeElement, 'keydown').pipe(\n filter(event => event.key === 'Escape'),\n ).subscribe(event => this._ngZone.run(() => {\n this.escapePressed.emit();\n event.stopPropagation();\n }));\n });\n }\n\n private _focusTrap: ConfigurableFocusTrap;\n\n /**\n * Animation event that can be used to hook into when the transformSidebar\n * animation begins. This is used in sidebar to determine when to show the\n * visibility of the sidebar so that the animation does not jump as the element is shown.\n */\n @HostListener('@transformSidebar.start', ['$event']) onAnimationStart(e: AnimationEvent) {\n if (e.toState === 'open' || e.toState === 'under-open' || e.toState === 'side-fixed-open') {\n this._elementRef.nativeElement.style.visibility = 'visible';\n }\n }\n\n /**\n * Animation event that can be used to hook into when the\n * transformSidebar animation is complete.\n */\n @HostListener('@transformSidebar.done', ['$event']) onAnimationComplete(e: AnimationEvent) {\n if(isOpening(<DaffSidebarAnimationState>e.fromState, <DaffSidebarAnimationState>e.toState)) {\n this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);\n\n const focusableChild = (<HTMLElement>this._elementRef.nativeElement.querySelector(daffFocusableElementsSelector));\n\n this._focusStack.push(this._doc.activeElement);\n\n if(focusableChild) {\n focusableChild.focus();\n } else {\n this._elementRef.nativeElement.tabIndex = 0;\n (<HTMLElement>this._elementRef.nativeElement).focus();\n }\n } else {\n if(this._focusTrap) {\n this._focusTrap.destroy();\n this._focusTrap = undefined;\n this._focusStack.pop();\n }\n }\n\n /**\n * This is used in sidebar to determine when to hide the visibility\n * of the sidebar so that the animation does not jump as the element is hidden.\n */\n if (e.toState === 'closed' || e.toState === 'under-closed' || e.toState === 'side-fixed-closed') {\n this._elementRef.nativeElement.style.visibility = 'hidden';\n }\n }\n}\n","<ng-content select=\"daff-sidebar-header\"></ng-content>\n<div class=\"daff-sidebar__body\">\n\t<ng-content></ng-content>\n</div>\n<ng-content select=\"daff-sidebar-footer\"></ng-content>","import {\n Component,\n HostBinding,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'daff-sidebar-footer',\n template: '<ng-content></ng-content>',\n styleUrls: ['./sidebar-footer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DaffSidebarFooterComponent {\n @HostBinding('class.daff-sidebar-footer') class = true;\n}\n","import {\n Directive,\n HostBinding,\n} from '@angular/core';\n\n@Directive({\n selector: '[daffSidebarHeaderAction]',\n})\nexport class DaffSidebarHeaderActionDirective {\n /**\n * @docs-private\n */\n @HostBinding('class.daff-sidebar-header__action') class = true;\n}\n","import {\n Directive,\n HostBinding,\n} from '@angular/core';\n\n@Directive({\n selector: '[daffSidebarHeaderTitle]',\n})\nexport class DaffSidebarHeaderTitleDirective {\n /**\n * @docs-private\n */\n @HostBinding('class.daff-sidebar-header__title') class = true;\n}\n","import {\n Component,\n HostBinding,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'daff-sidebar-header',\n templateUrl: './sidebar-header.component.html',\n styleUrls: ['./sidebar-header.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n\n})\nexport class DaffSidebarHeaderComponent {\n @HostBinding('class.daff-sidebar-header') class = true;\n}\n","<ng-content select=\"[daffSidebarHeaderAction]\"></ng-content>\n<ng-content select=\"[daffSidebarHeaderTitle]\"></ng-content>\n<ng-content></ng-content>","/**\n * Fallback function for determining whether or not a viewport has a parent viewport.\n * This is really only used in the Daffodil docs when the injector heirarchy\n * doesn't act as anticipated as a result of custom elements.\n */\nexport const hasParentViewport = (element: HTMLElement) => {\n let currentElement = element.parentElement;\n\n while (currentElement !== null) {\n if (currentElement.tagName === 'DAFF-SIDEBAR-VIEWPORT') {\n return true;\n }\n currentElement = currentElement.parentElement;\n }\n\n return false;\n};\n","/**\n * The placement of the nav in relation to the sidebar.\n * See {@link DaffNavPlacementEnum }\n */\nexport type DaffNavPlacement = 'above' | 'beside';\n\n/**\n * The placement of the nav in relation to the sidebar.\n * See {@link DaffNavPlacement }\n */\nexport enum DaffNavPlacementEnum {\n ABOVE = 'above',\n BESIDE = 'beside',\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n ElementRef,\n InjectionToken,\n inject,\n} from '@angular/core';\n\n/**\n * An interface that enables a user to enable or disable scrolling on sidebars.\n *\n * See {@link DAFF_SIDEBAR_SCROLL_TOKEN}\n */\nexport interface DaffSidebarScroll {\n enable(): void;\n disable(): void;\n}\n\n/**\n * An injection token that can be used within a sidebar to determine\n * what to do enabling and disabling scrolling. By default, the body\n * is the element where scrolling is controlled.\n */\nexport const DAFF_SIDEBAR_SCROLL_TOKEN = new InjectionToken<DaffSidebarScroll>('DAFF_SIDEBAR_SCROLL_TOKEN', {\n providedIn: 'root',\n factory: () => {\n const document = inject(DOCUMENT);\n return {\n enable: () => {\n document.body.style.overflow = null;\n },\n disable: () => {\n document.body.style.overflow = 'hidden';\n },\n };\n },\n});\n\n\n/**\n * A factory function that return a DaffSidebarScroll\n * for the current sidebar viewport.\n *\n * See the providers of {@link DaffSidebarViewportComponent}\n */\nexport const daffSidebarViewportScrollFactory = (): DaffSidebarScroll => {\n const element = inject(ElementRef).nativeElement;\n return {\n enable: () => {\n element.style.overflow = null;\n },\n disable: () => {\n element.style.overflow = 'hidden';\n },\n };\n};\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\n/**\n * Determines, given a list of sidebars, whether or not the backdrop is interactable (typically clickable).\n */\nexport const sidebarViewportBackdropInteractable = (sidebars: QueryList<DaffSidebarComponent>): boolean => sidebars.reduce(\n (acc: boolean, sidebar) => ((sidebar.mode === 'over' || sidebar.mode === 'under') && sidebar.open) || acc,\n false);\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarModeEnum } from '../../helper/sidebar-mode';\nimport { DaffSidebarSide } from '../../helper/sidebar-side';\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\n/**\n * Given a list of sidebars, compute the associated content shift.\n */\nexport const sidebarViewportContentPadding = (sidebars: QueryList<DaffSidebarComponent>, side: DaffSidebarSide): number =>\n sidebars.reduce((acc: number, sidebar) => {\n if(!(sidebar.mode === DaffSidebarModeEnum.SideFixed && sidebar.open)) {\n return acc;\n }\n\n if(sidebar.side === side){\n return sidebar.width;\n } else {\n // This component is \"stateless\", its possible to have two open \"under\" sidebars.\n // As such, we defer to \"left\" being open by default.\n return acc;\n }\n }, 0);\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarMode } from '../../helper/sidebar-mode';\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\nexport const isViewportContentShifted = (mode: DaffSidebarMode, open: boolean): boolean => (mode === 'under' && open);\n\n/**\n * Given a list of sidebars, compute the associated content shift.\n */\nexport const sidebarViewportContentShift = (sidebars: QueryList<DaffSidebarComponent>): number =>\n sidebars.reduce((acc: number, sidebar) => {\n if(!isViewportContentShifted(sidebar.mode, sidebar.open)) {\n return acc;\n }\n\n if(sidebar.side === 'left'){\n return sidebar.width;\n } else if (sidebar.side === 'right' && acc === 0) {\n return -1 * sidebar.width;\n } else {\n // This component is \"stateless\", its possible to have two open \"under\" sidebars.\n // As such, we defer to \"left\" being open by default.\n return acc;\n }\n }, 0);\n\n\n","import { AnimationStateWithParams } from '@daffodil/design';\n\nimport { DaffSidebarAnimationStates } from './sidebar-animation';\n\nexport type DaffSidebarViewportAnimationState = DaffSidebarAnimationStates.OPEN | DaffSidebarAnimationStates.CLOSED;\n\n\nexport interface DaffSidebarAnimationStateParams {\n shift: string;\n};\n\nexport type DaffSidebarViewportAnimationStateWithParams = AnimationStateWithParams<DaffSidebarViewportAnimationState, DaffSidebarAnimationStateParams>;\n\n\nexport const getSidebarViewportAnimationState = (open: boolean): DaffSidebarViewportAnimationState =>\n open ? DaffSidebarAnimationStates.OPEN : DaffSidebarAnimationStates.CLOSED;\n","import { AnimationEvent } from '@angular/animations';\nimport {\n Component,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n ContentChildren,\n QueryList,\n AfterContentChecked,\n ElementRef,\n Input,\n HostBinding,\n Inject,\n SkipSelf,\n Optional,\n} from '@angular/core';\n\nimport { hasParentViewport } from './helper/has-parent-viewport';\nimport {\n DaffNavPlacement,\n DaffNavPlacementEnum,\n} from './nav-placement';\nimport {\n DAFF_SIDEBAR_SCROLL_TOKEN,\n DaffSidebarScroll,\n daffSidebarViewportScrollFactory,\n} from './scroll-token/scroll.token';\nimport { sidebarViewportBackdropInteractable } from './utils/backdrop-interactable';\nimport { sidebarViewportContentPadding } from './utils/content-pad';\nimport {\n isViewportContentShifted,\n sidebarViewportContentShift,\n} from './utils/content-shift';\nimport {\n DaffSidebarAnimationStates,\n daffSidebarAnimations,\n} from '../animation/sidebar-animation';\nimport {\n DaffSidebarViewportAnimationStateWithParams,\n getSidebarViewportAnimationState,\n} from '../animation/sidebar-viewport-animation-state';\nimport { DaffSidebarMode } from '../helper/sidebar-mode';\nimport { DaffSidebarComponent } from '../sidebar/sidebar.component';\n\n/**\n * The DaffSidebarViewport is the \"holder\" of sidebars throughout an entire application.\n * It's generally only used once, like\n *\n * ```html\n * <daff-sidebar-viewport>\n * <daff-sidebar></daff-sidebar>\n * <p>Some Content</p>\n * </daff-sidebar-viewport>\n * ```\n *\n * Importantly, its possible for there to be multiple sidebars of many modes\n * at the same time. @see {@link DaffSidebarMode }\n *\n * Since this is a functional component, it's possible to have multiple \"open\" sidebars\n * at the same time. As a result, this component attempts to gracefully handle these situations.\n * However, importantly, there can only be one sidebar of each mode, on each side, at any given time.\n * If this is violated, this component will throw an exception.\n */\n@Component({\n selector: 'daff-sidebar-viewport',\n templateUrl: './sidebar-viewport.component.html',\n styleUrls: ['./sidebar-viewport.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n daffSidebarAnimations.transformContent,\n ],\n providers: [\n { provide: DAFF_SIDEBAR_SCROLL_TOKEN, useFactory: daffSidebarViewportScrollFactory },\n ],\n})\nexport class DaffSidebarViewportComponent implements AfterContentChecked {\n @HostBinding('class.daff-sidebar-viewport') hostClass = true;\n\n @HostBinding('class') get classes() {\n return {\n 'daff-sidebar-viewport': true,\n [this.navPlacement]: true,\n };\n };\n\n get isNavOnSide() {\n return this.navPlacement === DaffNavPlacementEnum.BESIDE;\n }\n\n onContentAnimationStart(e: AnimationEvent) {\n if(e.toState === 'open') {\n this._elementRef.nativeElement.style.overflow = 'hidden';\n }\n }\n\n onContentAnimationDone(e: AnimationEvent) {\n if(e.toState === 'closed') {\n this._elementRef.nativeElement.style.overflow = null;\n }\n }\n\n /**\n * The placement of the nav in relation to the sidebar. The default is set to `top`.\n * Note that this is really only available when there is a `side-fixed` sidebar.\n */\n @Input() navPlacement: DaffNavPlacement = DaffNavPlacementEnum.ABOVE;\n\n constructor(\n private cdRef: ChangeDetectorRef,\n private _elementRef: ElementRef<HTMLElement>,\n @Inject(DAFF_SIDEBAR_SCROLL_TOKEN) @SkipSelf() private bodyScroll: DaffSidebarScroll,\n @Inject(DaffSidebarViewportComponent) @SkipSelf() @Optional() private parentViewport,\n @Inject(DAFF_SIDEBAR_SCROLL_TOKEN) private scroll: DaffSidebarScroll,\n ) { }\n\n /**\n * The list of sidebars in the viewport.\n *\n * @docs-private\n */\n @ContentChildren(DaffSidebarComponent, { descendants: false }) private sidebars: QueryList<DaffSidebarComponent>;\n\n /**\n * The number of pixels that the main content of the page should be shifted to\n * right when there are child sidebars.\n */\n private _shift = '0px';\n\n /**\n * The left padding on the content when left side-fixed sidebars are open.\n */\n public _contentPadLeft = 0;\n\n /**\n * The left padding on the nav when left side-fixed sidebars are open.\n */\n public _navPadLeft = 0;\n\n /**\n * The right padding on the content when right side-fixed sidebars are open.\n */\n public _contentPadRight = 0;\n\n /**\n * The right padding on the content when right side-fixed sidebars are open.\n */\n public _navPadRight = 0;\n\n /**\n * Whether or not the backdrop is interactable\n */\n _backdropInteractable = false;\n\n /**\n * The animation state\n */\n _animationState: DaffSidebarViewportAnimationStateWithParams = { value: DaffSidebarAnimationStates.CLOSED, params: { shift: '0px' }};\n\n /**\n * Event fired when the backdrop is clicked. This is often used to close the sidebar.\n */\n @Output() backdropClicked: EventEmitter<void> = new EventEmitter<void>();\n\n ngAfterContentChecked() {\n const nextShift = sidebarViewportContentShift(this.sidebars) + 'px';\n if (this._shift !== nextShift) {\n this._shift = nextShift;\n\n this.updateAnimationState();\n this.cdRef.markForCheck();\n }\n\n const nextBackdropInteractable = sidebarViewportBackdropInteractable(this.sidebars);\n if (this._backdropInteractable !== nextBackdropInteractable) {\n this._backdropInteractable = nextBackdropInteractable;\n this.updateAnimationState();\n this.cdRef.markForCheck();\n if(nextBackdropInteractable) {\n if(!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {\n this.bodyScroll.disable();\n } else {\n this.scroll.disable();\n }\n } else { //if we are hiding the sidebars\n if(!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {\n this.bodyScroll.enable();\n } else {\n this.scroll.enable();\n }\n }\n };\n\n const nextLeftPadding = sidebarViewportContentPadding(this.sidebars, 'left');\n if(this._contentPadLeft !== nextLeftPadding) {\n this._contentPadLeft = nextLeftPadding;\n this._navPadLeft = this.isNavOnSide ? this._contentPadLeft : null;\n this.updateAnimationState();\n this.cdRef.markForCheck();\n }\n\n const nextRightPadding = sidebarViewportContentPadding(this.sidebars, 'right');\n if(this._contentPadRight !== nextRightPadding) {\n this._contentPadRight = nextRightPadding;\n this._navPadRight = this.isNavOnSide ? this._contentPadRight : null;\n this.updateAnimationState();\n this.cdRef.markForCheck();\n }\n }\n\n /**\n * @docs-private\n *\n * Updates the animation state of the viewport depending upon the state\n * of all sidebars within the viewport.\n */\n private updateAnimationState() {\n this._animationState = {\n value: getSidebarViewportAnimationState(\n this.sidebars.reduce((acc: boolean, sidebar) => acc || isViewportContentShifted(sidebar.mode, sidebar.open), false),\n ),\n params: { shift: this._shift },\n };\n }\n\n /**\n * @docs-private\n * The called when the backdrop of the viewport is clicked upon.\n */\n _backdropClicked(): void {\n this.backdropClicked.emit();\n }\n}\n","<ng-content select=\"daff-sidebar:not([side=right])\"></ng-content>\n\n<daff-backdrop\n [@transformContent]=\"_animationState\"\n class=\"daff-sidebar-viewport__backdrop\"\n [interactable]=\"_backdropInteractable\"\n (backdropClicked)=\"_backdropClicked()\">\n</daff-backdrop>\n\n<div class=\"daff-sidebar-viewport__nav\"\n [@transformContent]=\"_animationState\"\n [style.padding-left.px]=\"_navPadLeft\"\n [style.padding-right.px]=\"_navPadRight\">\n <ng-content select=\"[daff-sidebar-viewport-nav]\"></ng-content>\n</div>\n\n<div class=\"daff-sidebar-viewport__content\"\n [@transformContent]=\"_animationState\"\n (@transformContent.start)=\"onContentAnimationStart($event)\"\n (@transformContent.done)=\"onContentAnimationDone($event)\">\n <div class=\"daff-sidebar-viewport__inner\"\n [style.padding-left.px]=\"_contentPadLeft\"\n [style.padding-right.px]=\"_contentPadRight\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-content select=\"daff-sidebar[side=right]\"></ng-content>\n","import { A11yModule } from '@angular/cdk/a11y';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffBackdropModule } from '@daffodil/design';\n\nimport { DaffSidebarComponent } from './sidebar/sidebar.component';\nimport { DaffSidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';\nimport { DaffSidebarHeaderActionDirective } from './sidebar-header/sidebar-header-action/sidebar-header-action.directive';\nimport { DaffSidebarHeaderTitleDirective } from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';\nimport { DaffSidebarHeaderComponent } from './sidebar-header/sidebar-header.component';\nimport { DaffSidebarViewportComponent } from './sidebar-viewport/sidebar-viewport.component';\n\n@NgModule({\n imports: [\n CommonModule,\n A11yModule,\n DaffBackdropModule,\n ],\n declarations: [\n DaffSidebarComponent,\n DaffSidebarViewportComponent,\n DaffSidebarHeaderComponent,\n DaffSidebarFooterComponent,\n DaffSidebarHeaderTitleDirective,\n DaffSidebarHeaderActionDirective,\n ],\n exports: [\n DaffSidebarComponent,\n DaffSidebarViewportComponent,\n DaffSidebarHeaderComponent,\n DaffSidebarFooterComponent,\n DaffSidebarHeaderTitleDirective,\n DaffSidebarHeaderActionDirective,\n ],\n})\nexport class DaffSidebarModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAEA;;AAEG;AACI,MAAM,SAAS,GAAG,CAAC,SAAoC,EAAE,OAAkC,KAAa;AAC7G,IAAA,IAAG,SAAS,KAAK,YAAY,IAAI,OAAO,KAAK,MAAM,IAAI,SAAS,KAAK,MAAM,IAAI,OAAO,KAAK,YAAY,EAAE;AACvG,QAAA,OAAO,KAAK,CAAC;AACd,KAAA;AAED,IAAA,IAAG,OAAO,KAA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nB,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,4BAA4B;wBAC5B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,+BAA+B;wBAC/B,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;wBACpB,4BAA4B;wBAC5B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,+BAA+B;wBAC/B,gCAAgC;AACjC,qBAAA;AACF,iBAAA,CAAA;;;ACnCD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-design-sidebar.mjs","sources":["../../../libs/design/sidebar/src/sidebar/is-opening.ts","../../../libs/design/sidebar/src/animation/sidebar-animation.ts","../../../libs/design/sidebar/src/animation/sidebar-animation-state.ts","../../../libs/design/sidebar/src/animation/sidebar-animation-width.ts","../../../libs/design/sidebar/src/sidebar/sidebar.component.ts","../../../libs/design/sidebar/src/sidebar/sidebar.component.html","../../../libs/design/sidebar/src/sidebar-footer/sidebar-footer.component.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header-action/sidebar-header-action.directive.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header-title/sidebar-header-title.directive.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header.component.ts","../../../libs/design/sidebar/src/sidebar-header/sidebar-header.component.html","../../../libs/design/sidebar/src/sidebar-viewport/helper/has-parent-viewport.ts","../../../libs/design/sidebar/src/sidebar-viewport/nav-placement.ts","../../../libs/design/sidebar/src/sidebar-viewport/scroll-token/scroll.token.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/backdrop-interactable.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/content-pad.ts","../../../libs/design/sidebar/src/sidebar-viewport/utils/content-shift.ts","../../../libs/design/sidebar/src/animation/sidebar-viewport-animation-state.ts","../../../libs/design/sidebar/src/sidebar-viewport-backdrop/animation/backdrop-animation.ts","../../../libs/design/sidebar/src/sidebar-viewport-backdrop/animation/backdrop-animation-state.ts","../../../libs/design/sidebar/src/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.ts","../../../libs/design/sidebar/src/sidebar-viewport/sidebar-viewport.component.ts","../../../libs/design/sidebar/src/sidebar-viewport/sidebar-viewport.component.html","../../../libs/design/sidebar/src/sidebar.module.ts","../../../libs/design/sidebar/src/daffodil-design-sidebar.ts"],"sourcesContent":["import { DaffSidebarAnimationState } from '../animation/sidebar-animation-state';\n\n/**\n * Determine whether or animation states are going to an open state from a non-open state.\n */\nexport const isOpening = (fromState: DaffSidebarAnimationState, toState: DaffSidebarAnimationState): boolean => {\n if(fromState === 'under-open' && toState === 'open' || fromState === 'open' && toState === 'under-open') {\n return false;\n }\n\n if(toState === 'under-open' || toState === 'open') {\n return true;\n }\n return false;\n};\n","import {\n animate,\n state,\n style,\n transition,\n trigger,\n AnimationTriggerMetadata,\n} from '@angular/animations';\n\nconst duration = '200ms';\nconst sidebarAnimateInTransition = 'cubic-bezier(0.0, 0.0, 0.2, 1)';\nconst sidebarAnimateOutTransition = 'cubic-bezier(0.4, 0.0, 1, 1)';\n\nexport const daffSidebarAnimations: {\n readonly transformSidebar: AnimationTriggerMetadata;\n readonly transformContent: AnimationTriggerMetadata;\n readonly backdropTrigger: AnimationTriggerMetadata;\n} = {\n transformSidebar: trigger('transformSidebar', [\n // We remove the `transform` here completely, rather than setting it to zero, because\n // 3d transforms causes text to appear blurry on IE and Edge.\n state('open', style({\n transform: 'none',\n })),\n state('closed', style({\n transform: 'translateX({{width}})',\n }), { params: { width: '-240px' }}),\n transition('open => closed', animate(duration + ' ' + sidebarAnimateOutTransition)),\n transition('closed => open', animate(duration + ' ' + sidebarAnimateInTransition)),\n ]),\n transformContent: trigger('transformContent', [\n // We remove the `transform` here completely, rather than setting it to zero, because\n // 3d transforms causes text to appear blurry on IE and Edge.\n state('closed', style({\n transform: 'none',\n })),\n state('open', style({\n transform: 'translateX({{shift}})',\n }), { params: { shift: '-240px' }}),\n transition('open => closed', animate(duration + ' ' + sidebarAnimateInTransition)),\n transition('closed => open', animate(duration + ' ' + sidebarAnimateOutTransition)),\n ]),\n backdropTrigger: trigger('backdropTrigger', [\n state('open', style({\n opacity: 1,\n })),\n state('closed', style({\n opacity: 0,\n })),\n transition('open => closed', animate(duration + ' ' + sidebarAnimateOutTransition)),\n transition('closed => open', animate(duration + ' ' + sidebarAnimateInTransition)),\n ]),\n};\n\nexport enum DaffSidebarAnimationStates {\n OPEN = 'open',\n CLOSED = 'closed',\n UNDEROPEN = 'under-open',\n UNDERCLOSED = 'under-closed',\n SIDEFIXEDOPEN = 'side-fixed-open',\n SIDEFIXEDCLOSED = 'side-fixed-closed',\n NONE = 'none'\n}\n","import { DaffSidebarMode } from '../helper/sidebar-mode';\n\nexport type DaffSidebarAnimationState =\n'open' | 'closed' | 'under-open' | 'under-closed' | 'side-fixed-open' | 'side-fixed-closed' | 'none';\n\nexport const getAnimationState = (open: boolean, mode: DaffSidebarMode): DaffSidebarAnimationState => {\n if(mode === 'side') {\n return 'none';\n }\n\n if(mode === 'side-fixed' && open) {\n return 'side-fixed-open';\n }\n\n if(mode === 'side-fixed' && !open) {\n return 'side-fixed-closed';\n }\n\n if(open && mode === 'under') {\n return 'under-open';\n }\n\n if(!open && mode === 'under') {\n return 'under-closed';\n }\n\n if(open) {\n return 'open';\n } else {\n return 'closed';\n }\n};\n","import { DaffSidebarSide } from '../helper/sidebar-side';\n\nexport const getSidebarAnimationWidth =\n (side: DaffSidebarSide, width: number): string => side === 'left' ? -1 * width + 'px' : width + 'px';\n","import { AnimationEvent } from '@angular/animations';\nimport {\n ConfigurableFocusTrap,\n ConfigurableFocusTrapFactory,\n} from '@angular/cdk/a11y';\nimport { DOCUMENT } from '@angular/common';\nimport {\n Component,\n NgZone,\n ElementRef,\n Output,\n EventEmitter,\n HostBinding,\n ChangeDetectionStrategy,\n Input,\n HostListener,\n Inject,\n} from '@angular/core';\nimport { fromEvent } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport {\n daffFocusableElementsSelector,\n DaffFocusStackService,\n} from '@daffodil/design';\n\nimport { isOpening } from './is-opening';\nimport { daffSidebarAnimations } from '../animation/sidebar-animation';\nimport {\n DaffSidebarAnimationState,\n getAnimationState,\n} from '../animation/sidebar-animation-state';\nimport { getSidebarAnimationWidth } from '../animation/sidebar-animation-width';\nimport { DaffSidebarMode } from '../helper/sidebar-mode';\nimport { DaffSidebarSide } from '../helper/sidebar-side';\n\n/**\n * DaffSidebarComponent is heavily based upon the work done by the @angular/components\n * team on `mat-drawer` and `mat-sidenav`. `daff-sidebar` is intended to be\n * a simplified version (with a different design) of `mat-drawer`.\n */\n@Component({\n selector: 'daff-sidebar',\n templateUrl: './sidebar.component.html',\n styleUrls: ['./sidebar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n daffSidebarAnimations.transformSidebar,\n ],\n})\nexport class DaffSidebarComponent {\n /**\n * @docs-private\n *\n * The CSS classes set.\n */\n @HostBinding('class') get classes() {\n return {\n 'daff-sidebar': true,\n [this.side]: true,\n [this.mode]: true,\n };\n };\n\n /**\n * The animation state of the sidebar.\n */\n @HostBinding('@transformSidebar') get transformSidebar() {\n return {\n value: getAnimationState(this.open, this.mode),\n params: { width: getSidebarAnimationWidth(this.side, this.width) },\n };\n }\n\n /**\n * Event fired when `ESC` key is pressed when the sidebar has focus\n */\n @Output() escapePressed: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * What side of the viewport to show the sidebar on.\n */\n @Input() side: DaffSidebarSide = 'left';\n\n /**\n * The mode of the sidebar.\n */\n @Input() mode: DaffSidebarMode = 'side';\n\n /**\n * Whether or not the sidebar is open.\n */\n @Input() open = false;\n\n /**\n * The width of the sidebar.\n */\n get width() {\n return this._elementRef.nativeElement.offsetWidth;\n }\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>,\n private _ngZone: NgZone,\n private _focusTrapFactory: ConfigurableFocusTrapFactory,\n private _focusStack: DaffFocusStackService,\n @Inject(DOCUMENT) private _doc: any,\n ) {\n\n /**\n * Listen to `keydown` events outside the zone so that change detection is not run every\n * time a key is pressed. Instead we re-enter the zone only if the `ESC` key is pressed.\n *\n */\n this._ngZone.runOutsideAngular(() => {\n fromEvent<KeyboardEvent>(this._elementRef.nativeElement, 'keydown').pipe(\n filter(event => event.key === 'Escape'),\n ).subscribe(event => this._ngZone.run(() => {\n this.escapePressed.emit();\n event.stopPropagation();\n }));\n });\n }\n\n private _focusTrap: ConfigurableFocusTrap;\n\n /**\n * Animation event that can be used to hook into when the transformSidebar\n * animation begins. This is used in sidebar to determine when to show the\n * visibility of the sidebar so that the animation does not jump as the element is shown.\n */\n @HostListener('@transformSidebar.start', ['$event']) onAnimationStart(e: AnimationEvent) {\n if (e.toState === 'open' || e.toState === 'under-open' || e.toState === 'side-fixed-open') {\n this._elementRef.nativeElement.style.visibility = 'visible';\n }\n }\n\n /**\n * Animation event that can be used to hook into when the\n * transformSidebar animation is complete.\n */\n @HostListener('@transformSidebar.done', ['$event']) onAnimationComplete(e: AnimationEvent) {\n if(isOpening(<DaffSidebarAnimationState>e.fromState, <DaffSidebarAnimationState>e.toState)) {\n this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);\n\n const focusableChild = (<HTMLElement>this._elementRef.nativeElement.querySelector(daffFocusableElementsSelector));\n\n this._focusStack.push(this._doc.activeElement);\n\n if(focusableChild) {\n focusableChild.focus();\n } else {\n this._elementRef.nativeElement.tabIndex = 0;\n (<HTMLElement>this._elementRef.nativeElement).focus();\n }\n } else {\n if(this._focusTrap) {\n this._focusTrap.destroy();\n this._focusTrap = undefined;\n this._focusStack.pop();\n }\n }\n\n /**\n * This is used in sidebar to determine when to hide the visibility\n * of the sidebar so that the animation does not jump as the element is hidden.\n */\n if (e.toState === 'closed' || e.toState === 'under-closed' || e.toState === 'side-fixed-closed') {\n this._elementRef.nativeElement.style.visibility = 'hidden';\n }\n }\n}\n","<ng-content select=\"daff-sidebar-header\"></ng-content>\n<div class=\"daff-sidebar__body\">\n\t<ng-content></ng-content>\n</div>\n<ng-content select=\"daff-sidebar-footer\"></ng-content>","import {\n Component,\n HostBinding,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'daff-sidebar-footer',\n template: '<ng-content></ng-content>',\n styleUrls: ['./sidebar-footer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DaffSidebarFooterComponent {\n @HostBinding('class.daff-sidebar-footer') class = true;\n}\n","import {\n Directive,\n HostBinding,\n} from '@angular/core';\n\n@Directive({\n selector: '[daffSidebarHeaderAction]',\n})\nexport class DaffSidebarHeaderActionDirective {\n /**\n * @docs-private\n */\n @HostBinding('class.daff-sidebar-header__action') class = true;\n}\n","import {\n Directive,\n HostBinding,\n} from '@angular/core';\n\n@Directive({\n selector: '[daffSidebarHeaderTitle]',\n})\nexport class DaffSidebarHeaderTitleDirective {\n /**\n * @docs-private\n */\n @HostBinding('class.daff-sidebar-header__title') class = true;\n}\n","import {\n Component,\n HostBinding,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'daff-sidebar-header',\n templateUrl: './sidebar-header.component.html',\n styleUrls: ['./sidebar-header.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n\n})\nexport class DaffSidebarHeaderComponent {\n @HostBinding('class.daff-sidebar-header') class = true;\n}\n","<ng-content select=\"[daffSidebarHeaderAction]\"></ng-content>\n<ng-content select=\"[daffSidebarHeaderTitle]\"></ng-content>\n<ng-content></ng-content>","/**\n * Fallback function for determining whether or not a viewport has a parent viewport.\n * This is really only used in the Daffodil docs when the injector heirarchy\n * doesn't act as anticipated as a result of custom elements.\n */\nexport const hasParentViewport = (element: HTMLElement) => {\n let currentElement = element.parentElement;\n\n while (currentElement !== null) {\n if (currentElement.tagName === 'DAFF-SIDEBAR-VIEWPORT') {\n return true;\n }\n currentElement = currentElement.parentElement;\n }\n\n return false;\n};\n","/**\n * The placement of the nav in relation to the sidebar.\n * See {@link DaffNavPlacementEnum }\n */\nexport type DaffNavPlacement = 'above' | 'beside';\n\n/**\n * The placement of the nav in relation to the sidebar.\n * See {@link DaffNavPlacement }\n */\nexport enum DaffNavPlacementEnum {\n ABOVE = 'above',\n BESIDE = 'beside',\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n ElementRef,\n InjectionToken,\n inject,\n} from '@angular/core';\n\n/**\n * An interface that enables a user to enable or disable scrolling on sidebars.\n *\n * See {@link DAFF_SIDEBAR_SCROLL_TOKEN}\n */\nexport interface DaffSidebarScroll {\n enable(): void;\n disable(): void;\n}\n\n/**\n * An injection token that can be used within a sidebar to determine\n * what to do enabling and disabling scrolling. By default, the body\n * is the element where scrolling is controlled.\n */\nexport const DAFF_SIDEBAR_SCROLL_TOKEN = new InjectionToken<DaffSidebarScroll>('DAFF_SIDEBAR_SCROLL_TOKEN', {\n providedIn: 'root',\n factory: () => {\n const document = inject(DOCUMENT);\n return {\n enable: () => {\n document.body.style.overflow = null;\n },\n disable: () => {\n document.body.style.overflow = 'hidden';\n },\n };\n },\n});\n\n\n/**\n * A factory function that return a DaffSidebarScroll\n * for the current sidebar viewport.\n *\n * See the providers of {@link DaffSidebarViewportComponent}\n */\nexport const daffSidebarViewportScrollFactory = (): DaffSidebarScroll => {\n const element = inject(ElementRef).nativeElement;\n return {\n enable: () => {\n element.style.overflow = null;\n },\n disable: () => {\n element.style.overflow = 'hidden';\n },\n };\n};\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\n/**\n * Determines, given a list of sidebars, whether or not the backdrop is interactable (typically clickable).\n */\nexport const sidebarViewportBackdropInteractable = (sidebars: QueryList<DaffSidebarComponent>): boolean => sidebars.reduce(\n (acc: boolean, sidebar) => ((sidebar.mode === 'over' || sidebar.mode === 'under') && sidebar.open) || acc,\n false);\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarModeEnum } from '../../helper/sidebar-mode';\nimport { DaffSidebarSide } from '../../helper/sidebar-side';\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\n/**\n * Given a list of sidebars, compute the associated content shift.\n */\nexport const sidebarViewportContentPadding = (sidebars: QueryList<DaffSidebarComponent>, side: DaffSidebarSide): number =>\n sidebars.reduce((acc: number, sidebar) => {\n if(!(sidebar.mode === DaffSidebarModeEnum.SideFixed && sidebar.open)) {\n return acc;\n }\n\n if(sidebar.side === side){\n return sidebar.width;\n } else {\n // This component is \"stateless\", its possible to have two open \"under\" sidebars.\n // As such, we defer to \"left\" being open by default.\n return acc;\n }\n }, 0);\n","import { QueryList } from '@angular/core';\n\nimport { DaffSidebarMode } from '../../helper/sidebar-mode';\nimport { DaffSidebarComponent } from '../../sidebar/sidebar.component';\n\nexport const isViewportContentShifted = (mode: DaffSidebarMode, open: boolean): boolean => (mode === 'under' && open);\n\n/**\n * Given a list of sidebars, compute the associated content shift.\n */\nexport const sidebarViewportContentShift = (sidebars: QueryList<DaffSidebarComponent>): number =>\n sidebars.reduce((acc: number, sidebar) => {\n if(!isViewportContentShifted(sidebar.mode, sidebar.open)) {\n return acc;\n }\n\n if(sidebar.side === 'left'){\n return sidebar.width;\n } else if (sidebar.side === 'right' && acc === 0) {\n return -1 * sidebar.width;\n } else {\n // This component is \"stateless\", its possible to have two open \"under\" sidebars.\n // As such, we defer to \"left\" being open by default.\n return acc;\n }\n }, 0);\n\n\n","import { AnimationStateWithParams } from '@daffodil/design';\n\nimport { DaffSidebarAnimationStates } from './sidebar-animation';\n\nexport type DaffSidebarViewportAnimationState = DaffSidebarAnimationStates.OPEN | DaffSidebarAnimationStates.CLOSED;\n\n\nexport interface DaffSidebarAnimationStateParams {\n shift: string;\n};\n\nexport type DaffSidebarViewportAnimationStateWithParams = AnimationStateWithParams<DaffSidebarViewportAnimationState, DaffSidebarAnimationStateParams>;\n\n\nexport const getSidebarViewportAnimationState = (open: boolean): DaffSidebarViewportAnimationState =>\n open ? DaffSidebarAnimationStates.OPEN : DaffSidebarAnimationStates.CLOSED;\n","import {\n animate,\n state,\n style,\n transition,\n trigger,\n AnimationTriggerMetadata,\n} from '@angular/animations';\n\nconst animationDuration = '350ms';\nconst backdropTransitionOut = 'cubic-bezier(0.4, 0.0, 1, 1)';\nconst backdropTransitionIn = 'cubic-bezier(0.0, 0.0, 0.2, 1)';\n\nexport const daffSidebarViewportBackdropAnimations: {\n readonly fadeBackdrop: AnimationTriggerMetadata;\n} = {\n fadeBackdrop: trigger('fadeBackdrop', [\n state('interactable', style({ opacity: 1 })),\n state('non-interactable', style({ opacity: 0 })),\n transition('interactable => non-interactable', animate(animationDuration + ' ' + backdropTransitionOut)),\n transition('non-interactable => interactable', animate(animationDuration + ' ' + backdropTransitionIn)),\n transition(':enter', [\n style({ opacity: 0 }),\n animate(animationDuration + ' ' + backdropTransitionIn, style({ opacity: 1 })),\n ]),\n transition(':leave', [\n animate(animationDuration + ' ' + backdropTransitionOut, style({ opacity: 0 })),\n ]),\n ]),\n};\n","export type DaffSidebarViewportBackdropAnimationState = 'interactable' | 'non-interactable';\nexport const getAnimationState = (interactable: boolean): DaffSidebarViewportBackdropAnimationState=> interactable ? 'interactable' : 'non-interactable';\n","import { AnimationEvent } from '@angular/animations';\nimport {\n Component,\n Output,\n EventEmitter,\n Input,\n ChangeDetectionStrategy,\n HostListener,\n HostBinding,\n OnInit,\n} from '@angular/core';\n\nimport { daffSidebarViewportBackdropAnimations } from './animation/backdrop-animation';\nimport { getAnimationState } from './animation/backdrop-animation-state';\n\n@Component({\n selector: 'daff-sidebar-viewport-backdrop',\n template: '<ng-content></ng-content>',\n styleUrls: ['./sidebar-viewport-backdrop.component.scss'],\n animations: [\n daffSidebarViewportBackdropAnimations.fadeBackdrop,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DaffSidebarViewportBackdropComponent implements OnInit {\n\n @HostBinding('class.interactable') interactableClass = true;\n\n /**\n * Determines whether or not the backdrop is transparent.\n */\n @Input() @HostBinding('class.transparent') transparent = false;\n\n /**\n * Determines whether or not the backdrop is interactable.\n */\n @Input() interactable = true;\n\n /**\n * Boolean property that determines whether or not the\n * backdrop should fill up its containing window.\n */\n @Input() @HostBinding('class.fullscreen') fullscreen = false;\n\n /**\n * Output event triggered when the backdrop is clicked.\n */\n @Output() backdropClicked: EventEmitter<void> = new EventEmitter<void>();\n\n ngOnInit(): void {\n this.interactableClass = this.interactable;\n }\n\n /**\n * Animation hook for that controls the backdrops\n * entrance and fade animations.\n */\n @HostBinding('@fadeBackdrop') get fadeBackdropTrigger() {\n return getAnimationState(this.interactable);\n }\n\n @HostListener('@fadeBackdrop.done', ['$event'])\n animationDone(e: AnimationEvent) {\n\t this.interactableClass = !(e.toState === ':leave' || e.toState === 'non-interactable');\n }\n\n @HostListener('@fadeBackdrop.start', ['$event'])\n animationStart(e: AnimationEvent) {\n\t if(e.toState === ':enter' || e.toState === 'interactable'){\n\t this.interactableClass = true;\n\t }\n }\n\n /**\n * @deprecated\n * Backdrop event that triggers when the backdrop element is clicked.\n */\n @HostListener('click')\n onBackdropClicked(): void {\n\t this.backdropClicked.emit();\n }\n}\n","import { AnimationEvent } from '@angular/animations';\nimport {\n Component,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n ContentChildren,\n QueryList,\n AfterContentChecked,\n ElementRef,\n Input,\n HostBinding,\n Inject,\n SkipSelf,\n Optional,\n OnDestroy,\n} from '@angular/core';\n\nimport { hasParentViewport } from './helper/has-parent-viewport';\nimport {\n DaffNavPlacement,\n DaffNavPlacementEnum,\n} from './nav-placement';\nimport {\n DAFF_SIDEBAR_SCROLL_TOKEN,\n DaffSidebarScroll,\n daffSidebarViewportScrollFactory,\n} from './scroll-token/scroll.token';\nimport { sidebarViewportBackdropInteractable } from './utils/backdrop-interactable';\nimport { sidebarViewportContentPadding } from './utils/content-pad';\nimport {\n isViewportContentShifted,\n sidebarViewportContentShift,\n} from './utils/content-shift';\nimport {\n DaffSidebarAnimationStates,\n daffSidebarAnimations,\n} from '../animation/sidebar-animation';\nimport {\n DaffSidebarViewportAnimationStateWithParams,\n getSidebarViewportAnimationState,\n} from '../animation/sidebar-viewport-animation-state';\nimport { DaffSidebarMode } from '../helper/sidebar-mode';\nimport { DaffSidebarComponent } from '../sidebar/sidebar.component';\n\n/**\n * The DaffSidebarViewport is the \"holder\" of sidebars throughout an entire application.\n * It's generally only used once, like\n *\n * ```html\n * <daff-sidebar-viewport>\n * <daff-sidebar></daff-sidebar>\n * <p>Some Content</p>\n * </daff-sidebar-viewport>\n * ```\n *\n * Importantly, its possible for there to be multiple sidebars of many modes\n * at the same time. @see {@link DaffSidebarMode }\n *\n * Since this is a functional component, it's possible to have multiple \"open\" sidebars\n * at the same time. As a result, this component attempts to gracefully handle these situations.\n * However, importantly, there can only be one sidebar of each mode, on each side, at any given time.\n * If this is violated, this component will throw an exception.\n */\n@Component({\n selector: 'daff-sidebar-viewport',\n templateUrl: './sidebar-viewport.component.html',\n styleUrls: ['./sidebar-viewport.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n daffSidebarAnimations.transformContent,\n ],\n providers: [\n { provide: DAFF_SIDEBAR_SCROLL_TOKEN, useFactory: daffSidebarViewportScrollFactory },\n ],\n})\nexport class DaffSidebarViewportComponent implements AfterContentChecked, OnDestroy {\n @HostBinding('class.daff-sidebar-viewport') hostClass = true;\n\n @HostBinding('class') get classes() {\n return {\n 'daff-sidebar-viewport': true,\n [this.navPlacement]: true,\n };\n };\n\n get isNavOnSide() {\n return this.navPlacement === DaffNavPlacementEnum.BESIDE;\n }\n\n onContentAnimationStart(e: AnimationEvent) {\n if(e.toState === 'open') {\n this._elementRef.nativeElement.style.overflow = 'hidden';\n }\n }\n\n onContentAnimationDone(e: AnimationEvent) {\n if(e.toState === 'closed') {\n this._elementRef.nativeElement.style.overflow = null;\n }\n }\n\n /**\n * The placement of the nav in relation to the sidebar. The default is set to `top`.\n * Note that this is really only available when there is a `side-fixed` sidebar.\n */\n @Input() navPlacement: DaffNavPlacement = DaffNavPlacementEnum.ABOVE;\n\n constructor(\n private cdRef: ChangeDetectorRef,\n private _elementRef: ElementRef<HTMLElement>,\n @Inject(DAFF_SIDEBAR_SCROLL_TOKEN) @SkipSelf() private bodyScroll: DaffSidebarScroll,\n @Inject(DaffSidebarViewportComponent) @SkipSelf() @Optional() private parentViewport,\n @Inject(DAFF_SIDEBAR_SCROLL_TOKEN) private scroll: DaffSidebarScroll,\n ) { }\n\n /**\n * The list of sidebars in the viewport.\n *\n * @docs-private\n */\n @ContentChildren(DaffSidebarComponent, { descendants: false }) private sidebars: QueryList<DaffSidebarComponent>;\n\n /**\n * The number of pixels that the main content of the page should be shifted to\n * right when there are child sidebars.\n */\n private _shift = '0px';\n\n /**\n * The left padding on the content when left side-fixed sidebars are open.\n */\n public _contentPadLeft = 0;\n\n /**\n * The left padding on the nav when left side-fixed sidebars are open.\n */\n public _navPadLeft = 0;\n\n /**\n * The right padding on the content when right side-fixed sidebars are open.\n */\n public _contentPadRight = 0;\n\n /**\n * The right padding on the content when right side-fixed sidebars are open.\n */\n public _navPadRight = 0;\n\n /**\n * Whether or not the backdrop is interactable\n */\n _backdropInteractable = false;\n\n /**\n * The animation state\n */\n _animationState: DaffSidebarViewportAnimationStateWithParams = { value: DaffSidebarAnimationStates.CLOSED, params: { shift: '0px' }};\n\n /**\n * Event fired when the backdrop is clicked. This is often used to close the sidebar.\n */\n @Output() backdropClicked: EventEmitter<void> = new EventEmitter<void>();\n\n ngAfterContentChecked() {\n const nextShift = sidebarViewportContentShift(this.sidebars) + 'px';\n if (this._shift !== nextShift) {\n this._shift = nextShift;\n\n this.updateAnimationState();\n this.cdRef.markForCheck();\n }\n\n const nextBackdropInteractable = sidebarViewportBackdropInteractable(this.sidebars);\n if (this._backdropInteractable !== nextBackdropInteractable) {\n this._backdropInteractable = nextBackdropInteractable;\n this.updateAnimationState();\n this.cdRef.markForCheck();\n if(nextBackdropInteractable) {\n if(!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {\n this.bodyScroll.disable();\n } else {\n this.scroll.disable();\n }\n } else { //if we are hiding the sidebars\n if(!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {\n this.bodyScroll.enable();\n } else {\n this.scroll.enable();\n }\n }\n };\n\n const nextLeftPadding = sidebarViewportContentPadding(this.sidebars, 'left');\n if(this._contentPadLeft !== nextLeftPadding) {\n this._contentPadLeft = nextLeftPadding;\n this._navPadLeft = this.isNavOnSide ? this._contentPadLeft : null;\n this.updateAnimationState();\n this.cdRef.markForCheck();\n }\n\n const nextRightPadding = sidebarViewportContentPadding(this.sidebars, 'right');\n if(this._contentPadRight !== nextRightPadding) {\n this._contentPadRight = nextRightPadding;\n this._navPadRight = this.isNavOnSide ? this._contentPadRight : null;\n this.updateAnimationState();\n this.cdRef.markForCheck();\n }\n }\n\n ngOnDestroy() {\n if(!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {\n this.bodyScroll.enable();\n } else {\n this.scroll.enable();\n }\n }\n\n /**\n * @docs-private\n *\n * Updates the animation state of the viewport depending upon the state\n * of all sidebars within the viewport.\n */\n private updateAnimationState() {\n this._animationState = {\n value: getSidebarViewportAnimationState(\n this.sidebars.reduce((acc: boolean, sidebar) => acc || isViewportContentShifted(sidebar.mode, sidebar.open), false),\n ),\n params: { shift: this._shift },\n };\n }\n\n /**\n * @docs-private\n * The called when the backdrop of the viewport is clicked upon.\n */\n _backdropClicked(): void {\n this.backdropClicked.emit();\n }\n}\n","<ng-content select=\"daff-sidebar:not([side=right])\"></ng-content>\n\n<daff-sidebar-viewport-backdrop\n [@transformContent]=\"_animationState\"\n [interactable]=\"_backdropInteractable\"\n (backdropClicked)=\"_backdropClicked()\">\n</daff-sidebar-viewport-backdrop>\n\n<div class=\"daff-sidebar-viewport__nav\"\n [@transformContent]=\"_animationState\"\n [style.padding-left.px]=\"_navPadLeft\"\n [style.padding-right.px]=\"_navPadRight\">\n <ng-content select=\"[daff-sidebar-viewport-nav]\"></ng-content>\n</div>\n\n<div class=\"daff-sidebar-viewport__content\"\n [@transformContent]=\"_animationState\"\n (@transformContent.start)=\"onContentAnimationStart($event)\"\n (@transformContent.done)=\"onContentAnimationDone($event)\">\n <div class=\"daff-sidebar-viewport__inner\"\n [style.padding-left.px]=\"_contentPadLeft\"\n [style.padding-right.px]=\"_contentPadRight\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-content select=\"daff-sidebar[side=right]\"></ng-content>\n","import { A11yModule } from '@angular/cdk/a11y';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffSidebarComponent } from './sidebar/sidebar.component';\nimport { DaffSidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';\nimport { DaffSidebarHeaderActionDirective } from './sidebar-header/sidebar-header-action/sidebar-header-action.directive';\nimport { DaffSidebarHeaderTitleDirective } from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';\nimport { DaffSidebarHeaderComponent } from './sidebar-header/sidebar-header.component';\nimport { DaffSidebarViewportComponent } from './sidebar-viewport/sidebar-viewport.component';\nimport { DaffSidebarViewportBackdropComponent } from './sidebar-viewport-backdrop/sidebar-viewport-backdrop.component';\n\n@NgModule({\n imports: [\n CommonModule,\n A11yModule,\n ],\n declarations: [\n DaffSidebarComponent,\n DaffSidebarViewportComponent,\n DaffSidebarHeaderComponent,\n DaffSidebarFooterComponent,\n DaffSidebarHeaderTitleDirective,\n DaffSidebarHeaderActionDirective,\n DaffSidebarViewportBackdropComponent,\n ],\n exports: [\n DaffSidebarComponent,\n DaffSidebarViewportComponent,\n DaffSidebarHeaderComponent,\n DaffSidebarFooterComponent,\n DaffSidebarHeaderTitleDirective,\n DaffSidebarHeaderActionDirective,\n DaffSidebarViewportBackdropComponent,\n ],\n})\nexport class DaffSidebarModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["getAnimationState","i1.DaffSidebarViewportBackdropComponent"],"mappings":";;;;;;;;;;;AAEA;;AAEG;AACI,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B;YACpB,4BAA4B;YAC5B,0BAA0B;YAC1B,0BAA0B;YAC1B,+BAA+B;YAC/B,gCAAgC;YAChC,oCAAoC,CAAA,EAAA,CAAA,CAAA,EAAA;AAG3B,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAtB1B,YAAY;YACZ,UAAU,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAqBD,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAxB7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,UAAU;AACX,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,4BAA4B;wBAC5B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,+BAA+B;wBAC/B,gCAAgC;wBAChC,oCAAoC;AACrC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;wBACpB,4BAA4B;wBAC5B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,+BAA+B;wBAC/B,gCAAgC;wBAChC,oCAAoC;AACrC,qBAAA;AACF,iBAAA,CAAA;;;ACnCD;;AAEG;;;;"}
@@ -0,0 +1,287 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import * as i1 from '@daffodil/design/toast';
4
+ import { DaffToastModule, provideDaffToastOptions } from '@daffodil/design/toast';
5
+ import * as i2 from '@daffodil/design/button';
6
+ import { DaffButtonModule } from '@daffodil/design/button';
7
+ import { CommonModule } from '@angular/common';
8
+ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
9
+ import * as i2$1 from '@angular/forms';
10
+ import { FormControl, ReactiveFormsModule } from '@angular/forms';
11
+ import { combineLatest } from 'rxjs';
12
+ import { faInfoCircle, faCheck, faExclamation } from '@fortawesome/free-solid-svg-icons';
13
+
14
+ class DefaultToastComponent {
15
+ constructor(toastService) {
16
+ this.toastService = toastService;
17
+ this.update = new EventEmitter();
18
+ this.closeToast = new EventEmitter();
19
+ this.count = 0;
20
+ }
21
+ open() {
22
+ this.toast = this.toastService.open({
23
+ title: 'Update Available' + ' ' + this.count++,
24
+ message: 'A new version of this page is available.',
25
+ actions: [
26
+ { content: 'Update', color: 'theme-contrast', size: 'sm', eventEmitter: this.update },
27
+ { content: 'Remind me later', type: 'flat', size: 'sm', eventEmitter: this.closeToast },
28
+ ],
29
+ });
30
+ }
31
+ ngOnInit() {
32
+ this.update.subscribe(() => {
33
+ console.log('test');
34
+ });
35
+ this.closeToast.subscribe(() => {
36
+ this.toastService.close(this.toast);
37
+ });
38
+ }
39
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DefaultToastComponent, deps: [{ token: i1.DaffToastService }], target: i0.ɵɵFactoryTarget.Component }); }
40
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DefaultToastComponent, selector: "default-toast", ngImport: i0, template: "<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>", dependencies: [{ kind: "component", type: i2.DaffButtonComponent, selector: "button[daff-button],button[daff-stroked-button],button[daff-raised-button],button[daff-flat-button],button[daff-icon-button],button[daff-underline-button],a[daff-button],a[daff-stroked-button],a[daff-raised-button],a[daff-flat-button],a[daff-icon-button],a[daff-underline-button]", inputs: ["color", "size", "status", "loading", "tabindex", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
41
+ }
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DefaultToastComponent, decorators: [{
43
+ type: Component,
44
+ args: [{ selector: 'default-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>" }]
45
+ }], ctorParameters: () => [{ type: i1.DaffToastService }] });
46
+
47
+ class DefaultToastModule {
48
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DefaultToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
49
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DefaultToastModule, declarations: [DefaultToastComponent], imports: [CommonModule,
50
+ DaffToastModule,
51
+ FontAwesomeModule,
52
+ DaffButtonModule], exports: [DefaultToastComponent] }); }
53
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DefaultToastModule, imports: [CommonModule,
54
+ DaffToastModule,
55
+ FontAwesomeModule,
56
+ DaffButtonModule] }); }
57
+ }
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DefaultToastModule, decorators: [{
59
+ type: NgModule,
60
+ args: [{
61
+ declarations: [
62
+ DefaultToastComponent,
63
+ ],
64
+ imports: [
65
+ CommonModule,
66
+ DaffToastModule,
67
+ FontAwesomeModule,
68
+ DaffButtonModule,
69
+ ],
70
+ exports: [
71
+ DefaultToastComponent,
72
+ ],
73
+ }]
74
+ }] });
75
+
76
+ class ToastPositionsComponent {
77
+ constructor(toastService, toastPositionService) {
78
+ this.toastService = toastService;
79
+ this.toastPositionService = toastPositionService;
80
+ this.count = 0;
81
+ this.horizontalControl = new FormControl('right');
82
+ this.verticalControl = new FormControl('top');
83
+ }
84
+ open() {
85
+ this.toast = this.toastService.open({
86
+ title: 'Update complete' + ' ' + this.count++,
87
+ message: 'This page is now up-to-date.',
88
+ dismissible: true,
89
+ });
90
+ }
91
+ ngOnInit() {
92
+ combineLatest([
93
+ this.horizontalControl.valueChanges,
94
+ this.verticalControl.valueChanges,
95
+ ]).subscribe(([horizontal, vertical,]) => {
96
+ this.toastPositionService.setPosition({
97
+ horizontal,
98
+ vertical,
99
+ });
100
+ });
101
+ }
102
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastPositionsComponent, deps: [{ token: i1.DaffToastService }, { token: i1.DaffToastPositionService }], target: i0.ɵɵFactoryTarget.Component }); }
103
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: ToastPositionsComponent, selector: "toast-positions", ngImport: i0, template: "<div class=\"toast-positions__options\">\n\t<select [formControl]=\"verticalControl\">\n\t\t<option value=\"top\">Top</option>\n\t\t<option value=\"bottom\">Bottom</option>\n\t</select>\n\t\n\t<select [formControl]=\"horizontalControl\">\n\t\t<option value=\"left\">Left</option>\n\t\t<option value=\"center\">Center</option>\n\t\t<option value=\"right\">Right</option>\n\t</select>\n</div>\n\n<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>\n", styles: [".toast-positions__options{display:flex;gap:8px;margin:0 0 16px}\n"], dependencies: [{ kind: "directive", type: i2$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.DaffButtonComponent, selector: "button[daff-button],button[daff-stroked-button],button[daff-raised-button],button[daff-flat-button],button[daff-icon-button],button[daff-underline-button],a[daff-button],a[daff-stroked-button],a[daff-raised-button],a[daff-flat-button],a[daff-icon-button],a[daff-underline-button]", inputs: ["color", "size", "status", "loading", "tabindex", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
104
+ }
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastPositionsComponent, decorators: [{
106
+ type: Component,
107
+ args: [{ selector: 'toast-positions', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"toast-positions__options\">\n\t<select [formControl]=\"verticalControl\">\n\t\t<option value=\"top\">Top</option>\n\t\t<option value=\"bottom\">Bottom</option>\n\t</select>\n\t\n\t<select [formControl]=\"horizontalControl\">\n\t\t<option value=\"left\">Left</option>\n\t\t<option value=\"center\">Center</option>\n\t\t<option value=\"right\">Right</option>\n\t</select>\n</div>\n\n<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>\n", styles: [".toast-positions__options{display:flex;gap:8px;margin:0 0 16px}\n"] }]
108
+ }], ctorParameters: () => [{ type: i1.DaffToastService }, { type: i1.DaffToastPositionService }] });
109
+
110
+ class ToastPositionsModule {
111
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastPositionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
112
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: ToastPositionsModule, declarations: [ToastPositionsComponent], imports: [CommonModule,
113
+ ReactiveFormsModule,
114
+ DaffToastModule,
115
+ FontAwesomeModule,
116
+ DaffButtonModule], exports: [ToastPositionsComponent] }); }
117
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastPositionsModule, providers: [
118
+ provideDaffToastOptions({
119
+ position: {
120
+ vertical: 'top',
121
+ horizontal: 'right',
122
+ },
123
+ useParent: false,
124
+ }),
125
+ ], imports: [CommonModule,
126
+ ReactiveFormsModule,
127
+ DaffToastModule,
128
+ FontAwesomeModule,
129
+ DaffButtonModule] }); }
130
+ }
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastPositionsModule, decorators: [{
132
+ type: NgModule,
133
+ args: [{
134
+ declarations: [
135
+ ToastPositionsComponent,
136
+ ],
137
+ imports: [
138
+ CommonModule,
139
+ ReactiveFormsModule,
140
+ DaffToastModule,
141
+ FontAwesomeModule,
142
+ DaffButtonModule,
143
+ ],
144
+ exports: [
145
+ ToastPositionsComponent,
146
+ ],
147
+ providers: [
148
+ provideDaffToastOptions({
149
+ position: {
150
+ vertical: 'top',
151
+ horizontal: 'right',
152
+ },
153
+ useParent: false,
154
+ }),
155
+ ],
156
+ }]
157
+ }] });
158
+
159
+ const status = {
160
+ error: {
161
+ title: 'Server error',
162
+ },
163
+ success: {
164
+ title: 'Update complete',
165
+ message: 'The app is now up-to-date with the newest version.',
166
+ },
167
+ warn: {
168
+ title: 'The app is outdated',
169
+ message: 'Update the app now. The version you are using may have security vulnerabilities.',
170
+ },
171
+ };
172
+ class ToastStatusComponent {
173
+ constructor(toastService) {
174
+ this.toastService = toastService;
175
+ this.faInfoCircle = faInfoCircle;
176
+ this.faCheck = faCheck;
177
+ this.faExclamation = faExclamation;
178
+ this.statusControl = new FormControl('success');
179
+ }
180
+ open() {
181
+ this.toastService.open({
182
+ status: this.statusControl.value,
183
+ ...status[this.statusControl.value],
184
+ }, {
185
+ duration: this.statusControl.value === 'error' ? undefined : 5000,
186
+ });
187
+ }
188
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastStatusComponent, deps: [{ token: i1.DaffToastService }], target: i0.ɵɵFactoryTarget.Component }); }
189
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: ToastStatusComponent, selector: "toast-status", ngImport: i0, template: "<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>\n\n<select [formControl]=\"statusControl\">\n\t<option value=\"success\">Success</option>\n\t<option value=\"warn\">Warn</option>\n\t<option value=\"error\">Error</option>\n</select>", styles: [":host{display:flex;flex-direction:column;align-items:flex-start;gap:16px}\n"], dependencies: [{ kind: "component", type: i2.DaffButtonComponent, selector: "button[daff-button],button[daff-stroked-button],button[daff-raised-button],button[daff-flat-button],button[daff-icon-button],button[daff-underline-button],a[daff-button],a[daff-stroked-button],a[daff-raised-button],a[daff-flat-button],a[daff-icon-button],a[daff-underline-button]", inputs: ["color", "size", "status", "loading", "tabindex", "disabled"] }, { kind: "directive", type: i2$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
190
+ }
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastStatusComponent, decorators: [{
192
+ type: Component,
193
+ args: [{ selector: 'toast-status', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>\n\n<select [formControl]=\"statusControl\">\n\t<option value=\"success\">Success</option>\n\t<option value=\"warn\">Warn</option>\n\t<option value=\"error\">Error</option>\n</select>", styles: [":host{display:flex;flex-direction:column;align-items:flex-start;gap:16px}\n"] }]
194
+ }], ctorParameters: () => [{ type: i1.DaffToastService }] });
195
+
196
+ class ToastStatusModule {
197
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastStatusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
198
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: ToastStatusModule, declarations: [ToastStatusComponent], imports: [CommonModule,
199
+ DaffToastModule,
200
+ DaffButtonModule,
201
+ FontAwesomeModule,
202
+ ReactiveFormsModule], exports: [ToastStatusComponent] }); }
203
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastStatusModule, imports: [CommonModule,
204
+ DaffToastModule,
205
+ DaffButtonModule,
206
+ FontAwesomeModule,
207
+ ReactiveFormsModule] }); }
208
+ }
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastStatusModule, decorators: [{
210
+ type: NgModule,
211
+ args: [{
212
+ declarations: [
213
+ ToastStatusComponent,
214
+ ],
215
+ imports: [
216
+ CommonModule,
217
+ DaffToastModule,
218
+ DaffButtonModule,
219
+ FontAwesomeModule,
220
+ ReactiveFormsModule,
221
+ ],
222
+ exports: [
223
+ ToastStatusComponent,
224
+ ],
225
+ }]
226
+ }] });
227
+
228
+ class ToastWithCustomDurationComponent {
229
+ constructor(toastService) {
230
+ this.toastService = toastService;
231
+ }
232
+ open() {
233
+ this.toast = this.toastService.open({
234
+ title: 'Update Complete',
235
+ message: 'This page has been updated to the newest version.',
236
+ status: 'success',
237
+ }, {
238
+ duration: 7000,
239
+ });
240
+ }
241
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastWithCustomDurationComponent, deps: [{ token: i1.DaffToastService }], target: i0.ɵɵFactoryTarget.Component }); }
242
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: ToastWithCustomDurationComponent, selector: "toast-with-custom-duration", ngImport: i0, template: "<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>", dependencies: [{ kind: "component", type: i2.DaffButtonComponent, selector: "button[daff-button],button[daff-stroked-button],button[daff-raised-button],button[daff-flat-button],button[daff-icon-button],button[daff-underline-button],a[daff-button],a[daff-stroked-button],a[daff-raised-button],a[daff-flat-button],a[daff-icon-button],a[daff-underline-button]", inputs: ["color", "size", "status", "loading", "tabindex", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
243
+ }
244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastWithCustomDurationComponent, decorators: [{
245
+ type: Component,
246
+ args: [{ selector: 'toast-with-custom-duration', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>" }]
247
+ }], ctorParameters: () => [{ type: i1.DaffToastService }] });
248
+
249
+ class ToastWithCustomDurationModule {
250
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastWithCustomDurationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
251
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: ToastWithCustomDurationModule, declarations: [ToastWithCustomDurationComponent], imports: [CommonModule,
252
+ DaffToastModule,
253
+ DaffButtonModule], exports: [ToastWithCustomDurationComponent] }); }
254
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastWithCustomDurationModule, imports: [CommonModule,
255
+ DaffToastModule,
256
+ DaffButtonModule] }); }
257
+ }
258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ToastWithCustomDurationModule, decorators: [{
259
+ type: NgModule,
260
+ args: [{
261
+ declarations: [
262
+ ToastWithCustomDurationComponent,
263
+ ],
264
+ imports: [
265
+ CommonModule,
266
+ DaffToastModule,
267
+ DaffButtonModule,
268
+ ],
269
+ exports: [
270
+ ToastWithCustomDurationComponent,
271
+ ],
272
+ }]
273
+ }] });
274
+
275
+ const TOAST_EXAMPLES = [
276
+ { component: DefaultToastComponent, module: DefaultToastModule },
277
+ { component: ToastStatusComponent, module: ToastStatusModule },
278
+ { component: ToastPositionsComponent, module: ToastPositionsModule },
279
+ { component: ToastWithCustomDurationComponent, module: ToastWithCustomDurationModule },
280
+ ];
281
+
282
+ /**
283
+ * Generated bundle index. Do not edit.
284
+ */
285
+
286
+ export { TOAST_EXAMPLES };
287
+ //# sourceMappingURL=daffodil-design-toast-examples.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daffodil-design-toast-examples.mjs","sources":["../../../libs/design/toast/examples/src/default-toast/default-toast.component.ts","../../../libs/design/toast/examples/src/default-toast/default-toast.component.html","../../../libs/design/toast/examples/src/default-toast/default-toast.module.ts","../../../libs/design/toast/examples/src/toast-positions/toast-positions.component.ts","../../../libs/design/toast/examples/src/toast-positions/toast-positions.component.html","../../../libs/design/toast/examples/src/toast-positions/toast-positions.module.ts","../../../libs/design/toast/examples/src/toast-status/toast-status.component.ts","../../../libs/design/toast/examples/src/toast-status/toast-status.component.html","../../../libs/design/toast/examples/src/toast-status/toast-status.module.ts","../../../libs/design/toast/examples/src/toast-with-custom-duration/toast-with-custom-duration.component.ts","../../../libs/design/toast/examples/src/toast-with-custom-duration/toast-with-custom-duration.component.html","../../../libs/design/toast/examples/src/toast-with-custom-duration/toast-with-custom-duration.module.ts","../../../libs/design/toast/examples/src/public_api.ts","../../../libs/design/toast/examples/src/daffodil-design-toast-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n OnInit,\n} from '@angular/core';\n\nimport {\n DaffToast,\n DaffToastAction,\n DaffToastService,\n} from '@daffodil/design/toast';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'default-toast',\n templateUrl: './default-toast.component.html',\n styles: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DefaultToastComponent implements OnInit {\n private toast: DaffToast;\n\n constructor(private toastService: DaffToastService) {}\n\n update = new EventEmitter<DaffToastAction>();\n\n closeToast = new EventEmitter<DaffToastAction>();\n\n open() {\n this.toast = this.toastService.open({\n title: 'Update Available' + ' ' + this.count++,\n message: 'A new version of this page is available.',\n actions: [\n { content: 'Update', color: 'theme-contrast', size: 'sm', eventEmitter: this.update },\n { content: 'Remind me later', type: 'flat', size: 'sm', eventEmitter: this.closeToast },\n ],\n });\n }\n\n ngOnInit() {\n this.update.subscribe(() => {\n console.log('test');\n });\n\n this.closeToast.subscribe(() => {\n this.toastService.close(this.toast);\n });\n }\n\n private count = 0;\n}\n","<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\nimport { DaffButtonModule } from '@daffodil/design/button';\nimport { DaffToastModule } from '@daffodil/design/toast';\n\nimport { DefaultToastComponent } from './default-toast.component';\n\n@NgModule({\n declarations: [\n DefaultToastComponent,\n ],\n imports: [\n CommonModule,\n DaffToastModule,\n FontAwesomeModule,\n DaffButtonModule,\n ],\n exports: [\n DefaultToastComponent,\n ],\n})\nexport class DefaultToastModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n OnInit,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { combineLatest } from 'rxjs';\n\nimport {\n DaffToast,\n DaffToastService,\n DaffToastPositionService,\n} from '@daffodil/design/toast';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'toast-positions',\n templateUrl: './toast-positions.component.html',\n styleUrls: ['./toast-positions.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToastPositionsComponent implements OnInit {\n private toast: DaffToast;\n\n constructor(\n private toastService: DaffToastService,\n private toastPositionService: DaffToastPositionService,\n ) {}\n\n open() {\n this.toast = this.toastService.open({\n title: 'Update complete' + ' ' + this.count++,\n message: 'This page is now up-to-date.',\n dismissible: true,\n });\n }\n\n private count = 0;\n\n horizontalControl: FormControl = new FormControl('right');\n verticalControl: FormControl = new FormControl('top');\n\n ngOnInit() {\n combineLatest([\n this.horizontalControl.valueChanges,\n this.verticalControl.valueChanges,\n ]).subscribe(([\n horizontal, vertical,\n ]) => {\n this.toastPositionService.setPosition({\n horizontal,\n vertical,\n });\n });\n }\n}\n","<div class=\"toast-positions__options\">\n\t<select [formControl]=\"verticalControl\">\n\t\t<option value=\"top\">Top</option>\n\t\t<option value=\"bottom\">Bottom</option>\n\t</select>\n\t\n\t<select [formControl]=\"horizontalControl\">\n\t\t<option value=\"left\">Left</option>\n\t\t<option value=\"center\">Center</option>\n\t\t<option value=\"right\">Right</option>\n\t</select>\n</div>\n\n<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\nimport { DaffButtonModule } from '@daffodil/design/button';\nimport {\n DaffToastModule,\n provideDaffToastOptions,\n} from '@daffodil/design/toast';\n\nimport { ToastPositionsComponent } from './toast-positions.component';\n\n@NgModule({\n declarations: [\n ToastPositionsComponent,\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n DaffToastModule,\n FontAwesomeModule,\n DaffButtonModule,\n ],\n exports: [\n ToastPositionsComponent,\n ],\n providers: [\n provideDaffToastOptions({\n position: {\n vertical: 'top',\n horizontal: 'right',\n },\n useParent: false,\n }),\n ],\n})\nexport class ToastPositionsModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport {\n faCheck,\n faExclamation,\n faInfoCircle,\n} from '@fortawesome/free-solid-svg-icons';\n\nimport {\n DaffToastData,\n DaffToastService,\n} from '@daffodil/design/toast';\n\nconst status: Record<string, DaffToastData> = {\n error: {\n title: 'Server error',\n },\n success: {\n title: 'Update complete',\n message: 'The app is now up-to-date with the newest version.',\n },\n warn: {\n title: 'The app is outdated',\n message: 'Update the app now. The version you are using may have security vulnerabilities.',\n },\n};\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'toast-status',\n templateUrl: './toast-status.component.html',\n styleUrls: ['./toast-status.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToastStatusComponent {\n faInfoCircle = faInfoCircle;\n faCheck = faCheck;\n faExclamation = faExclamation;\n\n statusControl: FormControl = new FormControl('success');\n\n constructor(private toastService: DaffToastService) {}\n\n open() {\n this.toastService.open({\n status: this.statusControl.value,\n ...status[this.statusControl.value],\n },\n {\n duration: this.statusControl.value === 'error' ? undefined : 5000,\n },\n );\n }\n}\n","<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>\n\n<select [formControl]=\"statusControl\">\n\t<option value=\"success\">Success</option>\n\t<option value=\"warn\">Warn</option>\n\t<option value=\"error\">Error</option>\n</select>","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\nimport { DaffButtonModule } from '@daffodil/design/button';\nimport { DaffToastModule } from '@daffodil/design/toast';\n\nimport { ToastStatusComponent } from './toast-status.component';\n\n@NgModule({\n declarations: [\n ToastStatusComponent,\n ],\n imports: [\n CommonModule,\n DaffToastModule,\n DaffButtonModule,\n FontAwesomeModule,\n ReactiveFormsModule,\n ],\n exports: [\n ToastStatusComponent,\n ],\n})\nexport class ToastStatusModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n OnInit,\n} from '@angular/core';\n\nimport {\n DaffToast,\n DaffToastService,\n} from '@daffodil/design/toast';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'toast-with-custom-duration',\n templateUrl: './toast-with-custom-duration.component.html',\n styles: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToastWithCustomDurationComponent {\n private toast: DaffToast;\n\n constructor(private toastService: DaffToastService) {}\n\n open() {\n this.toast = this.toastService.open({\n title: 'Update Complete',\n message: 'This page has been updated to the newest version.',\n status: 'success',\n },\n {\n duration: 7000,\n });\n }\n}\n","<button daff-button size=\"sm\" (click)=\"open()\">Show toast</button>","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffButtonModule } from '@daffodil/design/button';\nimport { DaffToastModule } from '@daffodil/design/toast';\n\nimport { ToastWithCustomDurationComponent } from './toast-with-custom-duration.component';\n\n@NgModule({\n declarations: [\n ToastWithCustomDurationComponent,\n ],\n imports: [\n CommonModule,\n DaffToastModule,\n DaffButtonModule,\n ],\n exports: [\n ToastWithCustomDurationComponent,\n ],\n})\nexport class ToastWithCustomDurationModule { }\n","import { ComponentExample } from '@daffodil/design';\n\nimport { DefaultToastComponent } from './default-toast/default-toast.component';\nimport { DefaultToastModule } from './default-toast/default-toast.module';\nimport { ToastPositionsComponent } from './toast-positions/toast-positions.component';\nimport { ToastPositionsModule } from './toast-positions/toast-positions.module';\nimport { ToastStatusComponent } from './toast-status/toast-status.component';\nimport { ToastStatusModule } from './toast-status/toast-status.module';\nimport { ToastWithCustomDurationComponent } from './toast-with-custom-duration/toast-with-custom-duration.component';\nimport { ToastWithCustomDurationModule } from './toast-with-custom-duration/toast-with-custom-duration.module';\n\nexport const TOAST_EXAMPLES: ComponentExample[] = [\n { component: DefaultToastComponent, module: DefaultToastModule },\n { component: ToastStatusComponent, module: ToastStatusModule },\n { component: ToastPositionsComponent, module: ToastPositionsModule },\n { component: ToastWithCustomDurationComponent, module: ToastWithCustomDurationModule },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;MAoBa,qBAAqB,CAAA;AAGhC,IAAA,WAAA,CAAoB,YAA8B,EAAA;QAA9B,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAkB;AAElD,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAmB,CAAC;AAE7C,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,YAAY,EAAmB,CAAC;QAuBzC,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;KA3BoC;IAMtD,IAAI,GAAA;QACF,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;YAClC,KAAK,EAAE,kBAAkB,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE;AAC9C,YAAA,OAAO,EAAE,0CAA0C;AACnD,YAAA,OAAO,EAAE;AACP,gBAAA,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE;AACrF,gBAAA,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE;AACxF,aAAA;AACF,SAAA,CAAC,CAAC;KACJ;IAED,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAK;AACzB,YAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,SAAC,CAAC,CAAC;AAEH,QAAA,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAK;YAC7B,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,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