{"version":3,"file":"talenra-ngx-base-workspace-simple.mjs","sources":["../../../projects/ngx-base/workspace-simple/src/workspace-simple/workspace-simple.component.ts","../../../projects/ngx-base/workspace-simple/src/workspace-simple/workspace-simple.component.html","../../../projects/ngx-base/workspace-simple/talenra-ngx-base-workspace-simple.ts"],"sourcesContent":["import { Component, Input, booleanAttribute } from '@angular/core';\nimport { TWorkspaceWidth, WorkspaceWidth } from '@talenra/ngx-base/app-layout';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ContentLayoutComponent } from '@talenra/ngx-base/content-layout';\n\n/**\n * Provides a simple template for content layout.\n *\n * ### Import\n *\n * ```typescript\n * import { WorkspaceSimpleModule } from '@talenra/ngx-base/workspace-simple';\n * ```\n *\n * <example-url>../../#/workspace-layout/workspace-simple</example-url>\n */\n@Component({\n  selector: 'talenra-workspace-simple',\n  templateUrl: './workspace-simple.component.html',\n  styleUrls: ['./workspace-simple.component.scss'],\n  imports: [ContentLayoutComponent, NgTemplateOutlet],\n})\nexport class WorkspaceSimpleComponent {\n  /**\n   * Determines the maximum width of the layout. Defaults to `WorkspaceWidth.L`.\n   *\n   * ```html\n   * <talenra-workspace-simple width=\"s\"></talenra-workspace-simple>\n   * ```\n   *\n   * @see {@link WorkspaceWidth}\n   */\n  @Input() public width: TWorkspaceWidth = WorkspaceWidth.L;\n\n  /**\n   * If true, the content passed to the component will be wrapped by a\n   * `<talenra-content-layout>` component that controls the vertical layout and\n   * behaviour (e.g. takes care of scrolling).\n   *\n   * @see {@link ContentLayoutComponent} for more information.\n   *\n   * @example\n   * <talenra-workspace-simple useContentLayout>\n   *   <div header>My header</div>\n   *   <div sticky-bar>My toolbar</div>\n   *   <div>My content</div>\n   * </talenra-workspace-simple>\n   */\n  @Input({ transform: booleanAttribute }) public useContentLayout = false;\n\n  /**\n   * Determines whether the layout uses a header element. Has no effect if `useContentLayout` is `false`.\n   *\n   * @see {@link ContentLayoutComponent#useHeader} for more information.\n   *\n   * @example\n   * <!-- As `useHeader` defaults `true`, you could safely omit the input in this case. -->\n   * <talenra-workspace-simple useContentLayout useHeader>\n   *   <div header>My header</div>\n   * </talenra-workspace-simple>\n   */\n  @Input({ transform: booleanAttribute }) public useHeader = true;\n\n  /**\n   * Determines whether the layout uses a sticky bar element. Has no effect if `useContentLayout` is `false`.\n   *\n   * @see {@link ContentLayoutComponent#useStickyBar} for more information.\n   *\n   * @example\n   * <!-- As `useStickyBar` defaults `true`, you could safely omit the input in this case. -->\n   * <talenra-workspace-simple useContentLayout useStickyBar>\n   *   <div sticky-bar>My sticky bar</div>\n   * </talenra-workspace-simple>\n   */\n  @Input({ transform: booleanAttribute }) public useStickyBar = true;\n\n  /**\n   * Determines whether the layout uses a sticky footer element. Has no effect if `useContentLayout` is `false`.\n   *\n   * @see {@link ContentLayoutComponent#useStickyFooter} for more information.\n   *\n   * @example\n   * <!-- As `useStickyFooter` defaults `true`, you could safely omit the input in this case. -->\n   * <talenra-workspace-simple useContentLayout useStickyFooter>\n   *   <div sticky-footer>My sticky footer</div>\n   * </talenra-workspace-simple>\n   */\n  @Input({ transform: booleanAttribute }) public useStickyFooter = true;\n\n  /**\n   * Determines whether the content is allowed to take the full height and to cover the\n   * header when scrolled. Has no effect if `useContentLayout` is `false`.\n   *\n   * @see {@link ContentLayoutComponent#overscrollHeader} for more information.\n   *\n   * @example\n   * <talenra-workspace-simple useContentLayout [overscrollHeader]=\"false\">\n   *   <div header>My header</div>\n   *   <div>My scrollable Content</div>\n   * </talenra-workspace-simple>\n   */\n  @Input({ transform: booleanAttribute }) public overscrollHeader = true;\n}\n","<div class=\"content\" [class]=\"'width--' + width\">\n  @if (useContentLayout) {\n    <talenra-content-layout\n      [useHeader]=\"useHeader\"\n      [useStickyBar]=\"useStickyBar\"\n      [useStickyFooter]=\"useStickyFooter\"\n      [overscrollHeader]=\"overscrollHeader\">\n      <ng-container *ngTemplateOutlet=\"header\" header />\n      <ng-container *ngTemplateOutlet=\"stickyBar\" sticky-bar />\n      <ng-container *ngTemplateOutlet=\"content\" />\n      <ng-container *ngTemplateOutlet=\"stickyFooter\" sticky-footer />\n    </talenra-content-layout>\n  } @else {\n    <ng-container *ngTemplateOutlet=\"content\" />\n  }\n</div>\n\n<ng-template #header><ng-content select=\"[header]\" /></ng-template>\n<ng-template #stickyBar><ng-content select=\"[sticky-bar]\" /></ng-template>\n<ng-template #content><ng-content /></ng-template>\n<ng-template #stickyFooter><ng-content select=\"[sticky-footer]\" /></ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA;;;;;;;;;;AAUG;MAOU,wBAAwB,CAAA;AANrC,IAAA,WAAA,GAAA;AAOE;;;;;;;;AAQG;AACa,QAAA,IAAA,CAAA,KAAK,GAAoB,cAAc,CAAC,CAAC;AAEzD;;;;;;;;;;;;;AAaG;QAC4C,IAAgB,CAAA,gBAAA,GAAG,KAAK;AAEvE;;;;;;;;;;AAUG;QAC4C,IAAS,CAAA,SAAA,GAAG,IAAI;AAE/D;;;;;;;;;;AAUG;QAC4C,IAAY,CAAA,YAAA,GAAG,IAAI;AAElE;;;;;;;;;;AAUG;QAC4C,IAAe,CAAA,eAAA,GAAG,IAAI;AAErE;;;;;;;;;;;AAWG;QAC4C,IAAgB,CAAA,gBAAA,GAAG,IAAI;AACvE;8GAhFY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,EA0Bf,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,gBAAA,EAAA,CAAA,kBAAA,EAAA,kBAAA,EAAA,gBAAgB,CAahB,EAAA,S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