@design-factory/angular 21.0.0-next.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-factory-angular-sidenav.mjs","sources":["../../sidenav/sidenav-item/sidenav-item-base.component.ts","../../sidenav/sidenav-item/sidenav-item-desktop.component.ts","../../sidenav/sidenav-item/sidenav-item-mobile.component.ts","../../sidenav/sidenav-link/sidenav-link-base.component.ts","../../sidenav/sidenav-link/sidenav-link-desktop.component.ts","../../sidenav/sidenav-link/sidenav-link-mobile.component.ts","../../sidenav/sidenav-icon.directive.ts","../../sidenav/sidenav-link/sidenav-link.component.ts","../../sidenav/sidenav-item/sidenav-item.component.ts","../../sidenav/sidenav.ts","../../sidenav/design-factory-angular-sidenav.ts"],"sourcesContent":["import { computed, contentChild, Directive, inject, input, model, Signal } from '@angular/core';\nimport { DfSidenavLinkBaseComponent } from '../sidenav-link/sidenav-link-base.component';\nimport { DfSidenavComponent } from '../sidenav';\nimport { DfSidenavItemComponent } from './sidenav-item.component';\n\n/**\n * Base item class that is extended by desktop and mobile item components\n * The item represents a container which can hold other items or links\n * Handles collapsed state\n * @internal\n */\n@Directive()\nexport abstract class DfSidenavItemBaseComponent {\n /**\n * The label of the item\n */\n readonly label = input.required();\n /**\n * Collapsed state of the item\n * Only used for the desktop version\n * @default false\n */\n readonly collapsed = model(false);\n /**\n * The icon class name or inline content (e.g., font awesome class)\n * @default ''\n */\n readonly icon = input('');\n /**\n * Whether the wrapper component has icon content (internally used)\n * @default false\n */\n readonly wrapperHasIconContent = input(false);\n\n protected readonly sidenav = inject(DfSidenavComponent);\n protected readonly wrapperInstance = inject(DfSidenavItemComponent);\n\n // check for the parent item to determine nesting level\n protected readonly parentItem = inject(DfSidenavItemComponent, {\n optional: true,\n skipSelf: true\n });\n protected readonly isFirstLevel = this.parentItem?.['parentWrapper'] === null;\n\n protected readonly iconContent = contentChild('dfSidenavIcon');\n\n protected abstract childLinks: Signal<readonly (DfSidenavLinkBaseComponent | undefined)[]>;\n protected abstract childItems: Signal<readonly (DfSidenavItemBaseComponent | undefined)[]>;\n\n protected readonly hasActiveLinks = computed(() => this.childLinks().some((link) => link?.isActiveLink()));\n protected readonly hasActiveItems = computed(() => this.childItems().some((item) => item?.hasActiveLinks()));\n protected readonly hasActiveChildren = computed(() => this.hasActiveLinks() || this.hasActiveItems());\n\n /**\n * Computed signal indicating if the item has visible children\n */\n protected readonly hasVisibleChildren = computed(() => this.childLinks().some((link) => link?.['isVisible']()));\n\n /**\n * Method to toggle the collapsed state of the item\n * If the sidenav is minimized, it will expand it and uncollapse the item\n */\n toggleCollapse() {\n if (this.sidenav.isMinimized()) {\n this.sidenav.toggleMinimize(false);\n this.collapsed.set(false);\n } else {\n this.collapsed.set(!this.collapsed());\n }\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, effect } from '@angular/core';\nimport { DfSidenavItemBaseComponent } from './sidenav-item-base.component';\n\n/**\n * Component representing an item in the sidenav for desktop devices\n * The item represents a container which can hold other items or links\n * @internal\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'df-sidenav-item-desktop',\n template: `\n <button\n class=\"btn df-sidenav-button d-flex gap-3\"\n [class.df-sidenav-active-level]=\"sidenav.isMinimized() && hasActiveChildren() && isFirstLevel\"\n [class.df-sidenav-active]=\"hasActiveChildren()\"\n [class.w-100]=\"!sidenav.isMinimized()\"\n (click)=\"toggleCollapse()\"\n [attr.aria-expanded]=\"!collapsed()\"\n [class.justify-content-start]=\"!sidenav.isMinimized()\"\n [attr.aria-label]=\"label()\"\n >\n <ng-content select=\"[dfSidenavIcon]\" />\n @if (icon()) {\n <span class=\"{{ icon() }}\"></span>\n }\n @if (!sidenav.isMinimized()) {\n <span class=\"sidenav-label\" [title]=\"label()\">{{ label() }}</span>\n <span\n [class.expanded]=\"!collapsed()\"\n class=\"fa-light df-sidenav-collapse-toggle fa-chevron-down ms-auto\"\n ></span>\n }\n </button>\n\n <div [class.d-none]=\"collapsed()\" role=\"list\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n <ng-template #content>\n <ng-content />\n </ng-template>\n `,\n host: {\n '[class.d-none]': '!isVisible() || (sidenav.isMinimized() && (!isFirstLevel || !wrapperHasIconContent()))'\n },\n imports: [NgTemplateOutlet]\n})\nexport class DfSidenavItemDesktopComponent extends DfSidenavItemBaseComponent {\n protected override readonly childLinks = computed(() =>\n this.wrapperInstance['childrenLinks']().map((link) => link['desktopInstance']())\n );\n protected override readonly childItems = computed(() =>\n this.wrapperInstance['childrenItems']().map((item) => item['desktopInstance']())\n );\n\n protected readonly isVisible = computed(() => {\n const search = this.sidenav['searchTerm']().toLowerCase().trim() || '';\n if (!search) {\n return true;\n }\n return this.childLinks().some((link) => link?.['isVisible']());\n });\n\n constructor() {\n super();\n // Automatically collapse when minimized\n effect(() => {\n if (this.sidenav.isMinimized()) {\n this.collapsed.set(true);\n }\n });\n\n // Auto-expand when searching and has visible children\n effect(() => {\n if (this.sidenav['searchTerm']().trim() && this.hasVisibleChildren()) {\n this.collapsed.set(false);\n }\n });\n\n // Auto-expand when the child is active and sidenav is not minimized\n effect(() => {\n if (this.hasActiveChildren() && !this.sidenav.isMinimized()) {\n this.collapsed.set(false);\n }\n });\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { DfSidenavItemBaseComponent } from './sidenav-item-base.component';\n\n/**\n * Component representing an item in the sidenav for mobile devices\n * The item represents a container which can hold other items or links\n * @internal\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'df-sidenav-item-mobile',\n template: `\n @if (shouldShowMobileHeader()) {\n <div class=\"df-sidenav-mobile-header mobile mb-2\" role=\"listitem\">\n <button\n class=\"btn w-100 d-flex gap-0 align-items-center justify-content-start df-sidenav-button\"\n (click)=\"handleBackClick()\"\n [class.df-sidenav-active]=\"hasActiveChildren()\"\n >\n <span class=\"fa-light df-sidenav-mobile-header-back-arrow fa-arrow-left me-4\"></span>\n <ng-content select=\"[dfSidenavIcon]\" />\n @if (icon()) {\n <span class=\"{{ icon() }}\"></span>\n }\n <span class=\"ms-3 sidenav-label\">{{ label() }}</span>\n </button>\n </div>\n }\n\n <!-- Regular item button (hidden when it's the active mobile panel) -->\n @if (isVisibleInList()) {\n <!-- Mobile search: Show as breadcrumb/path (non-clickable) -->\n @if (isSearching()) {\n <div class=\"btn w-100 d-flex gap-3 justify-content-start text-muted disabled pe-none\">\n <ng-content select=\"[dfSidenavIcon]\" />\n @if (icon()) {\n <span class=\"{{ icon() }}\"></span>\n }\n <span class=\"sidenav-label\" [title]=\"label()\">{{ label() }}</span>\n <span class=\"fa-light df-sidenav-collapse-toggle fa-chevron-right ms-auto\"></span>\n </div>\n } @else {\n <!-- Regular clickable button -->\n <button\n class=\"btn w-100 d-flex gap-3 justify-content-start df-sidenav-button\"\n (click)=\"handleItemClick()\"\n [class.df-sidenav-active]=\"hasActiveChildren()\"\n >\n <ng-content select=\"[dfSidenavIcon]\" />\n @if (icon()) {\n <span class=\"{{ icon() }}\"></span>\n }\n <span class=\"sidenav-label\" [title]=\"label()\">{{ label() }}</span>\n <!-- Mobile: Show forward arrow for items with children -->\n <span class=\"fa-light df-sidenav-collapse-toggle fa-chevron-right ms-auto\"></span>\n </button>\n }\n }\n\n <!-- Children container - rendered separately from the button -->\n @if (shouldShowChildren()) {\n <div role=\"list\" class=\"mobile\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n }\n\n <ng-template #content>\n <ng-content />\n </ng-template>\n `,\n host: {\n class: 'mobile',\n '[class.d-none]': 'shouldHideComponent() || (sidenav.isMinimized() && (!isFirstLevel || !wrapperHasIconContent()))'\n },\n imports: [NgTemplateOutlet]\n})\nexport class DfSidenavItemMobileComponent extends DfSidenavItemBaseComponent {\n protected override readonly childLinks = computed(() =>\n this.wrapperInstance['childrenLinks']().map((link) => link['mobileInstance']())\n );\n protected override readonly childItems = computed(() =>\n this.wrapperInstance['childrenItems']().map((item) => item['mobileInstance']())\n );\n protected readonly isSearching = computed(() => !!this.sidenav['searchTerm']().trim());\n\n // Check if this item is in the navigation path (is an ancestor of current panel)\n private readonly isInNavigationPath = computed(() =>\n this.sidenav['mobileNavigationStack']().includes(this.wrapperInstance)\n );\n\n // Check if this item should show as mobile header\n protected readonly shouldShowMobileHeader = computed(() => {\n // Don't show header when searching\n if (this.isSearching()) {\n return false;\n }\n return this.sidenav['currentMobilePanel']() === this.wrapperInstance;\n });\n\n // Determine if this item's children should be visible\n protected readonly shouldShowChildren = computed(() => {\n // Mobile with search: show children to display matching links\n if (this.isSearching()) {\n return this.hasMatchingChildren();\n }\n // Mobile without search: show if this item is in the navigation path\n return this.isInNavigationPath();\n });\n\n // Determine if this item should be visible in the list\n protected readonly isVisibleInList = computed(() => {\n // Mobile with search: don't show items, only links (items just provide structure)\n if (this.isSearching()) {\n return false;\n }\n\n // Mobile without search: use navigation levels\n const currentPanel = this.sidenav['currentMobilePanel']();\n\n if (currentPanel === null) {\n // Root level: show only first-level items\n return this.isFirstLevel && this.isVisible();\n } else if (currentPanel === this.parentItem) {\n // This is the active panel, don't show it in the list (it's in the header)\n return false;\n } else {\n // Show items whose parent matches the current panel\n const parentMobile = this.parentItem?.['parentWrapper'];\n return parentMobile === currentPanel && this.isVisible();\n }\n });\n\n // Determine if the entire component should be hidden\n protected readonly shouldHideComponent = computed(() => {\n // Don't hide if this is the current mobile panel showing its children\n if (this.shouldShowMobileHeader()) {\n return false;\n }\n // Otherwise, use the regular visibility logic\n return !this.isVisibleInList() && !this.shouldShowChildren();\n });\n\n private readonly isVisible = computed(() => {\n const search = this.sidenav['searchTerm']().toLowerCase().trim() || '';\n if (!search) {\n return true;\n }\n\n // Check if this item's label matches\n return String(this.label()).toLowerCase().includes(search);\n });\n\n // Check if this item has any matching children (for showing the container)\n private readonly hasMatchingChildren = computed(() => {\n const search = this.sidenav['searchTerm']().toLowerCase().trim() || '';\n if (!search) {\n return false;\n }\n return this.childLinks().some((link) => link?.['isVisible']());\n });\n\n /**\n * Handle click event on the item\n */\n protected handleItemClick() {\n this.sidenav.navigateToChildren(this.wrapperInstance);\n }\n\n /**\n * Handle click event on the header back button\n */\n protected handleBackClick() {\n this.sidenav.navigateBack();\n }\n}\n","import { computed, contentChild, Directive, inject, input, signal } from '@angular/core';\nimport { IsActiveMatchOptions } from '@angular/router';\nimport { DfSidenavComponent } from '../sidenav';\nimport { DfSidenavItemComponent } from '../sidenav-item/sidenav-item.component';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { DfMedia } from '@design-factory/design-factory';\n\n/**\n * Base link class that is extended by desktop and mobile link components\n * @internal\n */\n@Directive()\nexport abstract class DfSidenavLinkBaseComponent {\n /**\n * The router link path for to the link\n */\n readonly linkPath = input.required<string>();\n /**\n * The label of the link\n */\n readonly label = input.required<string>();\n /**\n * The icon class name or inline content (e.g., font awesome class)\n */\n readonly icon = input('');\n /**\n * Whether the wrapper component has icon content (internally used)\n */\n readonly wrapperHasIconContent = input(false);\n /**\n * Indicates if the link is currently active based on the Router state\n */\n readonly isActiveLink = signal(false);\n /**\n * Options to determine when the router link is considered active\n */\n readonly routerLinkActiveOptions = input<IsActiveMatchOptions | { exact: boolean }>({ exact: false });\n\n protected readonly isSmallScreen = toSignal(inject(DfMedia).getObservable(['sm', 'xs']), { initialValue: false });\n\n protected readonly sidenav = inject(DfSidenavComponent);\n protected readonly parentItem = inject(DfSidenavItemComponent, {\n optional: true,\n skipSelf: true\n });\n protected readonly isFirstLevel = this.parentItem === null;\n protected readonly iconContent = contentChild('dfSidenavIcon');\n\n /**\n * Computed signal indicating if the link is visible based on search term\n */\n protected readonly isVisible = computed(() => {\n const search = this.sidenav['searchTerm']().toLowerCase().trim() || '';\n if (!search) {\n return true;\n }\n return this.label().toLowerCase().includes(search);\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, viewChild } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { DfSidenavLinkBaseComponent } from './sidenav-link-base.component';\n\n/**\n * Component representing a leaf in the sidenav for desktop devices\n * @internal\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'df-sidenav-link-desktop',\n template: `\n <a\n class=\"btn df-sidenav-button d-flex gap-3\"\n [class.w-100]=\"!sidenav.isMinimized()\"\n routerLinkActive=\"df-sidenav-active-level\"\n ariaCurrentWhenActive=\"page\"\n (isActiveChange)=\"isActiveLink.set($event)\"\n [routerLink]=\"linkPath()\"\n [class.justify-content-start]=\"!sidenav.isMinimized()\"\n [routerLinkActiveOptions]=\"routerLinkActiveOptions()\"\n [attr.aria-label]=\"label()\"\n (click)=\"isSmallScreen() && sidenav.toggleMinimize()\"\n #anchor\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n <ng-template #content>\n <ng-content select=\"[dfSidenavIcon]\" />\n @if (icon()) {\n <span class=\"{{ icon() }}\"></span>\n }\n @if (!sidenav.isMinimized()) {\n <span class=\"sidenav-label\" [title]=\"label()\">{{ label() }}</span>\n }\n </ng-template>\n `,\n host: {\n '[class.d-none]': '!isVisible() || (sidenav.isMinimized() && (!isFirstLevel || !wrapperHasIconContent()))',\n class: 'd-flex'\n },\n imports: [RouterModule, NgTemplateOutlet]\n})\nexport class DfSidenavLinkDesktopComponent extends DfSidenavLinkBaseComponent {\n protected readonly anchor = viewChild.required<ElementRef<HTMLAnchorElement>>('anchor');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { DfSidenavLinkBaseComponent } from './sidenav-link-base.component';\nimport { DfSidenavLinkComponent } from './sidenav-link.component';\n\n/**\n * Component representing a leaf in the sidenav for mobile devices\n * @internal\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'df-sidenav-link-mobile',\n template: `\n <a\n class=\"btn df-sidenav-button d-flex gap-3 justify-content-start w-100 df-sidenav-breadcrumb-button\"\n routerLinkActive=\"df-sidenav-active-level\"\n ariaCurrentWhenActive=\"page\"\n (isActiveChange)=\"isActiveLink.set($event)\"\n [routerLink]=\"linkPath()\"\n [routerLinkActiveOptions]=\"routerLinkActiveOptions()\"\n (click)=\"isSmallScreen() && sidenav.toggleMinimize()\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n <ng-template #content>\n <div class=\"d-flex gap-3 w-100\">\n <ng-content select=\"[dfSidenavIcon]\" />\n @if (icon()) {\n <span class=\"{{ icon() }}\"></span>\n }\n <div class=\"d-flex flex-column align-items-start\">\n <span class=\"sidenav-label\" [title]=\"label()\">{{ label() }}</span>\n @if (isSearching() && breadcrumbPath().length > 0) {\n <small class=\"d-flex align-items-center gap-1\" [class.text-muted]=\"!isActiveLink()\">\n @for (item of breadcrumbPath(); track $index) {\n <span>{{ item }}</span>\n @if (!$last) {\n <span class=\"fa-arrow-right\"></span>\n }\n }\n </small>\n }\n </div>\n </div>\n </ng-template>\n `,\n host: {\n '[class.d-none]': '!isVisibleInList() || (sidenav.isMinimized() && (!isFirstLevel || !wrapperHasIconContent()))',\n class: 'd-flex'\n },\n imports: [RouterModule, NgTemplateOutlet]\n})\nexport class DfSidenavLinkMobileComponent extends DfSidenavLinkBaseComponent {\n // Inject link wrapper to get parent wrapper reference\n private readonly linkWrapper = inject(DfSidenavLinkComponent);\n\n private readonly currentMobilePanel = computed(() => this.sidenav['currentMobilePanel']() ?? null);\n protected readonly isSearching = computed(() => !!this.sidenav['searchTerm']().trim());\n\n protected readonly isVisibleInList = computed(() => {\n const currentPanel = this.currentMobilePanel();\n const parentWrapper = this.linkWrapper['parentWrapper'];\n // Mobile with search: show all matching links regardless of level\n if (this.isSearching()) {\n return this.isVisible();\n }\n\n // Mobile without search: use navigation levels\n if (currentPanel === null) {\n // Root level: show only first-level links\n return this.isFirstLevel && this.isVisible();\n } else {\n // Show links whose parent item wrapper matches the current panel\n return parentWrapper === currentPanel && this.isVisible();\n }\n });\n\n // Build breadcrumb path for mobile search view\n protected readonly breadcrumbPath = computed(() => {\n const path: string[] = [];\n let currentItem = this.parentItem;\n // Walk up the parent chain\n while (currentItem?.label()) {\n path.unshift(String(currentItem.label()));\n const grandParent = currentItem?.['parentWrapper'];\n currentItem = grandParent || null;\n }\n return path;\n });\n}\n","import { Directive } from '@angular/core';\n\n/**\n * Utility directive for marking icon content in sidenav items and links.\n * Needed for identification of the projected icon content.\n * Use in case if there is no icon provided with font-awesome.\n * @since 21.0.0\n */\n@Directive({\n selector: '[dfSidenavIcon]'\n})\nexport class DfSidenavIconDirective {}\n","import { ChangeDetectionStrategy, Component, computed, contentChild, inject, input, viewChild } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { DfSidenavComponent } from '../sidenav';\nimport { DfSidenavItemComponent } from '../sidenav-item/sidenav-item.component';\nimport { DfSidenavLinkDesktopComponent } from './sidenav-link-desktop.component';\nimport { DfSidenavLinkMobileComponent } from './sidenav-link-mobile.component';\nimport { DfSidenavIconDirective } from '../sidenav-icon.directive';\nimport { IsActiveMatchOptions } from '@angular/router';\n\n/**\n * Sidenav link that can be used inside <df-sidenav-item> or directly inside the <df-sidenav>\n * @since 21.0.0\n */\n@Component({\n selector: 'df-sidenav-link',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ng-template #iconSlot>\n <ng-content select=\"[dfSidenavIcon]\" />\n </ng-template>\n <ng-template #defaultContent>\n <ng-content />\n </ng-template>\n\n @if (sidenav['isMobileDevice']) {\n <df-sidenav-link-mobile\n [linkPath]=\"linkPath()\"\n [label]=\"label()\"\n [icon]=\"icon()\"\n [wrapperHasIconContent]=\"wrapperHasIconContent()\"\n [routerLinkActiveOptions]=\"routerLinkActiveOptions()\"\n >\n <ng-container [ngTemplateOutlet]=\"iconSlot\" ngProjectAs=\"[dfSidenavIcon]\" />\n <ng-container [ngTemplateOutlet]=\"defaultContent\" />\n </df-sidenav-link-mobile>\n } @else {\n <df-sidenav-link-desktop\n [linkPath]=\"linkPath()\"\n [label]=\"label()\"\n [icon]=\"icon()\"\n [wrapperHasIconContent]=\"wrapperHasIconContent()\"\n [routerLinkActiveOptions]=\"routerLinkActiveOptions()\"\n >\n <ng-container [ngTemplateOutlet]=\"iconSlot\" ngProjectAs=\"[dfSidenavIcon]\" />\n <ng-container [ngTemplateOutlet]=\"defaultContent\" />\n </df-sidenav-link-desktop>\n }\n `,\n imports: [DfSidenavLinkDesktopComponent, DfSidenavLinkMobileComponent, NgTemplateOutlet],\n host: {\n role: 'listitem',\n class: 'd-block',\n '[class.mobile]': \"sidenav['isMobileDevice']\"\n }\n})\nexport class DfSidenavLinkComponent {\n /**\n * The router link path for to the link\n */\n readonly linkPath = input.required<string>();\n /**\n * The label of the link\n */\n readonly label = input.required<string>();\n /**\n * The icon class name or inline content (e.g., font awesome class)\n */\n readonly icon = input('');\n /**\n * Options to determine when the router link is considered active\n */\n readonly routerLinkActiveOptions = input<IsActiveMatchOptions | { exact: boolean }>({ exact: false });\n /**\n * The parent wrapper item component (if any)\n */\n protected readonly parentWrapper = inject(DfSidenavItemComponent, {\n optional: true,\n skipSelf: true\n });\n /**\n * Reference to the desktop link component instance\n */\n protected readonly desktopInstance = viewChild(DfSidenavLinkDesktopComponent);\n /**\n * Reference to the mobile link component instance\n */\n protected readonly mobileInstance = viewChild(DfSidenavLinkMobileComponent);\n\n private readonly iconContentQuery = contentChild(DfSidenavIconDirective);\n protected readonly wrapperHasIconContent = computed(\n () => this.icon() !== '' || this.iconContentQuery() !== undefined\n );\n protected readonly sidenav = inject(DfSidenavComponent);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n inject,\n input,\n model,\n viewChild\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { DfSidenavItemDesktopComponent } from './sidenav-item-desktop.component';\nimport { DfSidenavItemMobileComponent } from './sidenav-item-mobile.component';\nimport { DfSidenavLinkComponent } from '../sidenav-link/sidenav-link.component';\nimport { DfSidenavComponent } from '../sidenav';\nimport { DfSidenavIconDirective } from '../sidenav-icon.directive';\n\n/**\n * Sidenav element that should be nested inside <df-sidenav> or <df-sidenav-item>\n * @since 21.0.0\n */\n@Component({\n selector: 'df-sidenav-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ng-template #iconSlot>\n <ng-content select=\"[dfSidenavIcon]\" />\n </ng-template>\n <ng-template #content>\n <ng-content />\n </ng-template>\n\n @if (sidenav['isMobileDevice']) {\n <df-sidenav-item-mobile\n [label]=\"label()\"\n [(collapsed)]=\"collapsed\"\n [icon]=\"icon()\"\n [wrapperHasIconContent]=\"wrapperHasIconContent()\"\n >\n <ng-container [ngTemplateOutlet]=\"iconSlot\" ngProjectAs=\"[dfSidenavIcon]\" />\n <ng-container [ngTemplateOutlet]=\"content\" />\n </df-sidenav-item-mobile>\n } @else {\n <df-sidenav-item-desktop\n [label]=\"label()\"\n [(collapsed)]=\"collapsed\"\n [icon]=\"icon()\"\n [wrapperHasIconContent]=\"wrapperHasIconContent()\"\n >\n <ng-container [ngTemplateOutlet]=\"iconSlot\" ngProjectAs=\"[dfSidenavIcon]\" />\n <ng-container [ngTemplateOutlet]=\"content\" />\n </df-sidenav-item-desktop>\n }\n `,\n imports: [DfSidenavItemDesktopComponent, DfSidenavItemMobileComponent, NgTemplateOutlet],\n host: {\n role: 'listitem',\n class: 'd-block',\n '[class.mobile]': \"sidenav['isMobileDevice']\"\n }\n})\nexport class DfSidenavItemComponent {\n /**\n * Label of the sidenav item\n */\n readonly label = input.required();\n /**\n * Flag whether the sidenav item is collapsed\n * @default false\n */\n readonly collapsed = model(false);\n /**\n * Optional icon class for the sidenav item\n */\n readonly icon = input('');\n /**\n * Reference to the parent element containing this item\n */\n protected readonly parentWrapper = inject(DfSidenavItemComponent, {\n optional: true,\n skipSelf: true\n });\n /**\n * Child sidenav items nested inside this item\n */\n protected readonly childrenItems = contentChildren(DfSidenavItemComponent, { descendants: true });\n /**\n * Child sidenav links nested inside this item\n */\n protected readonly childrenLinks = contentChildren(DfSidenavLinkComponent, { descendants: true });\n /**\n * Reference to the desktop instance of the sidenav item\n */\n protected readonly desktopInstance = viewChild(DfSidenavItemDesktopComponent);\n /**\n * Reference to the mobile instance of the sidenav item\n */\n protected readonly mobileInstance = viewChild(DfSidenavItemMobileComponent);\n private readonly iconContentQuery = contentChild(DfSidenavIconDirective);\n protected readonly wrapperHasIconContent = computed(\n () => this.icon() !== '' || this.iconContentQuery() !== undefined\n );\n protected readonly sidenav = inject(DfSidenavComponent);\n}\n","import { createNavManager, NavManagerItemConfig, useDirectiveForHost } from '@agnos-ui/angular-headless';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n ElementRef,\n inject,\n Injector,\n input,\n linkedSignal,\n PLATFORM_ID,\n Signal,\n signal,\n viewChild\n} from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { FormsModule } from '@angular/forms';\nimport { DfDrawerComponent } from '@design-factory/angular/drawer';\nimport { DfMedia } from '@design-factory/design-factory';\nimport { DfSidenavItemComponent } from './sidenav-item/sidenav-item.component';\nimport { DfSidenavLinkComponent } from './sidenav-link/sidenav-link.component';\n\n/**\n * Utility method to check if the user agent is a mobile device\n *\n * @param userAgent - The user agent string to check\n * @returns `true` if the user agent corresponds to a mobile device, `false` otherwise\n */\nfunction isMobileUserAgent(userAgent: string): boolean {\n return /mobile|android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(userAgent);\n}\n\n/**\n * SideNav is a component to provide navigation feature with a panel on the side of your page\n * @since 21.0.0\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'df-sidenav',\n template: `\n <df-drawer\n #drawer\n className=\"inline-start {{ isSmallScreen() ? 'df-sidenav-mobile-drawer' : '' }}\"\n [visible]=\"!_isMinimized()\"\n (visibleChange)=\"visibleChangeHandler($event)\"\n (minimizedChange)=\"_isMinimized.set($event)\"\n (resizingChange)=\"resizingChangeHandler($event)\"\n [bodyScroll]=\"true\"\n [backdrop]=\"backdrop()\"\n [(size)]=\"width\"\n [container]=\"isSmallScreen() ? null : hostRef.nativeElement\"\n [resizable]=\"resizable() && !isSmallScreen()\"\n >\n <nav class=\"d-flex flex-column w-100 h-100 p-5 pb-3\">\n <div class=\"df-sidenav-header flex-shrink-0\" [class.df-sidenav-header-minimized]=\"_isMinimized()\">\n @if (searchable()) {\n @if (_isMinimized()) {\n <button\n class=\"btn btn-outline-neutral df-btn-icononly mb-3 w-100 fa-search\"\n [class.df-sidenav-search-minimized]=\"!contentHasIcons()\"\n type=\"button\"\n (click)=\"focusSearch()\"\n i18n-aria-label=\"@@df.sidenav.search.ariaLabel\"\n aria-label=\"Search\"\n ></button>\n } @else {\n <div class=\"input-group mb-3\">\n <div class=\"input-group-prepend\">\n <span class=\"input-group-text fa-light fa-search\"></span>\n </div>\n <input\n type=\"search\"\n class=\"form-control df-input-withicon\"\n i18n-placeholder=\"@@df.sidenav.search.placeholder\"\n placeholder=\"Search\"\n i18n-aria-label=\"@@df.sidenav.search.ariaLabel\"\n aria-label=\"Search\"\n [(ngModel)]=\"searchTerm\"\n #textInput\n />\n <div class=\"input-group-append\" [class.df-is-empty]=\"searchTerm() === ''\">\n <button class=\"input-group-text fa-light fa-times\" (click)=\"searchTerm.set(''); textInput.focus()\">\n <span class=\"visually-hidden\" i18n=\"@@df.sidenav.search.clearText\">Clear text</span>\n </button>\n </div>\n </div>\n }\n }\n </div>\n\n <div role=\"list\" class=\"sidenav-body flex-grow-1 overflow-y-auto\" #scrollableContainer>\n <ng-content />\n </div>\n @if (collapsible() && !isSmallScreen()) {\n <div class=\"d-flex sidenav-footer flex-shrink-0 py-3\">\n <button\n class=\"btn btn-outline-primary df-btn-icononly df-sidenav-toggle-minimized\"\n (click)=\"toggleMinimize()\"\n i18n-aria-label=\"@@df.sidenav.toggleMinimize.ariaLabel\"\n aria-label=\"Toggle minimized sidenav\"\n >\n @if (isMinimized()) {\n <span class=\"fa-arrow-right-to-line\"></span>\n } @else {\n <span class=\"fa-arrow-left-to-line\"></span>\n }\n </button>\n </div>\n }\n </nav>\n </df-drawer>\n `,\n imports: [FormsModule, DfDrawerComponent],\n host: {\n class: 'df-sidenav',\n '[class.df-sidenav-lg]': 'isLargeUpScreen()',\n '[class.df-sidenav-withicon]': 'contentHasIcons()',\n '[class.d-none]': 'isSmallScreen() && _isMinimized()',\n '[class.df-sidenav-drawer]': 'isMediumScreen() && !_isMinimized()'\n }\n})\nexport class DfSidenavComponent implements AfterContentInit {\n /**\n * Flag whether the sidenav includes a search input\n * @default false\n */\n readonly searchable = input(false, { transform: booleanAttribute });\n /**\n * The container element for the sidenav (null for body)\n * @default null\n */\n readonly container = input<HTMLElement | null>(null);\n /**\n * Flag whether the sidenav should be resizable\n * @default false\n */\n readonly resizable = input(false, { transform: booleanAttribute });\n /**\n * Flag whether the sidenav should have the collapse button\n * @default false\n */\n readonly collapsible = input(false, { transform: booleanAttribute });\n /**\n * Flag to enable mobile device detection for responsive behavior\n * @default true\n */\n readonly enableMobile = input(true, { transform: booleanAttribute });\n\n protected readonly _isMinimized = linkedSignal(() => {\n // in mobile devices, the default value is true (hiding the drawer) and does not track changes to the screen size\n if (this.isMobileDevice) {\n return true;\n }\n // in desktop, we track the large screen signal in order to reset the minimized state\n // it allows resizing the window and have a more user-friendly behavior\n return !this.isLargeUpScreen();\n });\n\n /**\n * Flag to indicate if the sidenav is minimized\n */\n readonly isMinimized = computed(() => this._isMinimized());\n\n protected readonly hostRef = inject(ElementRef<HTMLElement>);\n\n private readonly scrollableContainer = viewChild.required<ElementRef<HTMLElement>>('scrollableContainer');\n\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n protected readonly isMobileDevice = (() => {\n if (this.isBrowser) {\n return this.enableMobile() && isMobileUserAgent(navigator.userAgent);\n } else {\n // SSR: try to get request if available\n try {\n const request = inject(Request, { optional: true });\n if (request && 'headers' in request) {\n const userAgent = request.headers.get('user-agent') || '';\n return this.enableMobile() && isMobileUserAgent(userAgent);\n }\n } catch {\n // Request token not available or not in SSR context\n }\n return false;\n }\n })();\n\n protected readonly searchInput = viewChild<ElementRef>('textInput');\n // Query all links to find active ones\n private readonly allLinks = contentChildren(DfSidenavLinkComponent, { descendants: true });\n private readonly allItems = contentChildren(DfSidenavItemComponent, { descendants: true });\n\n protected readonly width = signal(null as number | null);\n private savedWidth: number | null = null;\n\n protected readonly searchTerm = signal('');\n\n // Mobile navigation stack - tracks which item's children are currently displayed\n // Using component references instead of labels for uniqueness\n protected readonly mobileNavigationStack = signal<(DfSidenavItemComponent | null | undefined)[]>([]);\n protected readonly currentMobilePanel: Signal<DfSidenavItemComponent | null | undefined> = computed(() => {\n const stack = this.mobileNavigationStack();\n return stack.length > 0 ? stack[stack.length - 1] : null;\n });\n\n protected readonly isSmallScreen = toSignal(inject(DfMedia).getObservable(['sm', 'xs']), { initialValue: false });\n protected readonly isMediumScreen = toSignal(inject(DfMedia).getObservable(['md']), { initialValue: false });\n protected readonly isLargeUpScreen = toSignal(inject(DfMedia).getObservable(['lg', 'xl', 'xxl', 'xxxl']), {\n initialValue: false\n });\n protected readonly isMobileOrSmallScreen = computed(() => this.isSmallScreen() || this.isMediumScreen());\n\n protected readonly backdrop = computed(() => this.isMediumScreen());\n\n protected readonly navManager = createNavManager();\n\n protected readonly navManagerConfig: NavManagerItemConfig = {\n selector: (node) => node.querySelectorAll<HTMLElement>('input, button, a'),\n keys: {\n Home: this.navManager.focusFirst,\n End: this.navManager.focusLast\n }\n };\n\n private readonly injector = inject(Injector);\n\n constructor() {\n useDirectiveForHost(this.navManager.directive, this.navManagerConfig);\n afterRenderEffect(() => {\n if (this.isBrowser) {\n if (this.isMobileDevice && !this._isMinimized()) {\n // Delay to ensure DOM and contentChildren queries are ready\n this.navigateToActiveItem();\n }\n\n // Keep track of the screen size changes to reset width\n if (this.isMediumScreen() || this.isSmallScreen() || this.isLargeUpScreen()) {\n this.width.set(null);\n }\n }\n });\n }\n\n ngAfterContentInit() {\n if (!this.isMobileDevice && this.isBrowser && this.isLargeUpScreen()) {\n void this.initializeDesktopNavigation();\n }\n }\n\n /**\n * This method allows to center and show the active link, when the sidenav is used in desktop and a large screen.\n * It collapses all items and expands only the parents of the active link.\n * Also, it scrolls to the active link to make it visible.\n */\n private async initializeDesktopNavigation() {\n // RouterLinkActive queues two microtasks, so we wait for them to complete\n await Promise.resolve();\n await Promise.resolve();\n // Find the first active link\n const activeLink = this.allLinks()\n .find((link) => link['desktopInstance']()?.isActiveLink())\n ?.['desktopInstance']?.();\n if (activeLink) {\n this.allItems().forEach((item) => {\n item.collapsed.set(true);\n });\n let currentParent = activeLink['parentItem'];\n while (currentParent) {\n currentParent.collapsed.set(false);\n currentParent = currentParent['parentWrapper'];\n }\n\n // We need a render to make sure the getBoundingClientRect calls will be correct AFTER the collapse of the items.\n afterNextRender(\n {\n read: () => {\n const anchorElement = activeLink['anchor']().nativeElement;\n const containerElement = this.scrollableContainer().nativeElement;\n const heightPx =\n anchorElement.getBoundingClientRect().top +\n anchorElement.clientHeight / 2 -\n containerElement.getBoundingClientRect().top -\n containerElement.clientHeight / 3;\n containerElement.scrollTo({ top: heightPx, behavior: 'instant' });\n }\n },\n { injector: this.injector }\n );\n }\n }\n\n /**\n * Toggles the minimized state of the sidenav\n *\n * @param minimized - Optional parameter to explicitly set the minimized state\n *\n */\n toggleMinimize(minimized = !this._isMinimized()) {\n if (minimized) {\n this.savedWidth = this.width();\n this.width.set(0);\n } else {\n this.width.set(this.savedWidth);\n }\n this._isMinimized.set(minimized);\n }\n\n /**\n * Handles visibility changes of the sidenav component to handle the component state accordingly.\n *\n * @param isVisible - Boolean indicating whether the sidenav is currently visible\n */\n visibleChangeHandler(isVisible: boolean) {\n if (!isVisible) {\n this.width.set(0);\n }\n this._isMinimized.set(!isVisible);\n }\n\n /**\n * Handles changes when the sidenav is resized, to handle the state accordingly.\n *\n * @param isResizing - Whether the sidenav is currently being resized\n */\n resizingChangeHandler(isResizing: boolean) {\n if (isResizing) {\n this._isMinimized.set(false);\n } else {\n if (this._isMinimized()) {\n this.width.set(0);\n } else {\n this.savedWidth = this.width();\n }\n }\n }\n\n // utility to transfer focus from the button when minimized to the search input when uncollapsed\n protected focusSearch() {\n this.toggleMinimize(false);\n setTimeout(() => {\n this.searchInput()?.nativeElement.focus();\n });\n }\n\n /**\n * Method to add the given item to the mobile navigation stack\n * @param itemRef item to be added to the navigation stack\n */\n navigateToChildren(itemRef: DfSidenavItemComponent | null | undefined) {\n const stack = this.mobileNavigationStack();\n this.mobileNavigationStack.set([...stack, itemRef]);\n }\n\n /**\n * Method to navigate back in the mobile navigation stack\n */\n navigateBack() {\n const stack = this.mobileNavigationStack();\n if (stack.length > 0) {\n this.mobileNavigationStack.set(stack.slice(0, -1));\n }\n }\n\n /**\n * Navigates to the active item in the sidenav\n * Expands parent items (desktop) and sets up mobile navigation stack\n */\n private navigateToActiveItem() {\n if (!this.isBrowser) {\n return;\n }\n\n // Find the first active link\n const activeLink = this.allLinks()\n .find((link) => link['mobileInstance']()?.isActiveLink())\n ?.['mobileInstance']();\n if (activeLink && activeLink['parentItem']) {\n // Build the path from root to the active link's parent (inclusive)\n const navigationPath: DfSidenavItemComponent[] = [];\n let current: DfSidenavItemComponent | null = activeLink['parentItem'];\n while (current) {\n navigationPath.unshift(current); // Add to beginning to build path from root\n current = current['parentWrapper'];\n }\n this.mobileNavigationStack.set(navigationPath);\n } else if (activeLink && !activeLink['parentItem']) {\n // Clear navigation stack to show root level\n this.mobileNavigationStack.set([]);\n }\n }\n\n protected readonly contentHasIcons = computed(\n () =>\n this.allItems().some((item) => item['wrapperHasIconContent']()) ||\n this.allLinks().some((link) => link['wrapperHasIconContent']())\n );\n}\n","/**\n * Generated bundle index. Do not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BAAsB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,IAAI,EAAE,0FAC7C,sBAAsB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACpM3F;;AAEG;;;;"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Public API Surface of design-factory
3
+ */
4
+ // empty as components will be imported from their respective entry-points
5
+ const unusedSymbol = true;
6
+
7
+ /**
8
+ * Generated bundle index. Do not edit.
9
+ */
10
+
11
+ export { unusedSymbol };
12
+ //# sourceMappingURL=design-factory-angular.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-factory-angular.mjs","sources":["../../index.ts","../../design-factory-angular.ts"],"sourcesContent":["/**\n * Public API Surface of design-factory\n */\n\n// empty as components will be imported from their respective entry-points\n\nexport const unusedSymbol = true;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG;AAEH;AAEO,MAAM,YAAY,GAAG;;ACN5B;;AAEG;;;;"}
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@design-factory/angular",
3
+ "description": "Amadeus design system Angular implementation",
4
+ "license": "BSD-3-Clause",
5
+ "version": "21.0.0-next.0",
6
+ "dependencies": {
7
+ "tslib": "^2.0.0"
8
+ },
9
+ "peerDependencies": {
10
+ "@agnos-ui/angular-headless": "~0.10.0-next.4",
11
+ "@agnos-ui/core-bootstrap": "~0.10.0-next.4",
12
+ "@angular/common": "^21.0.0",
13
+ "@angular/core": "^21.0.0",
14
+ "@angular/localize": "^21.0.0",
15
+ "@angular/router": "^21.0.0",
16
+ "@design-factory/styles": "21.0.0-next.0"
17
+ },
18
+ "peerDependenciesMeta": {
19
+ "@angular/router": {
20
+ "optional": true
21
+ }
22
+ },
23
+ "schematics": "./schematics/collection.json",
24
+ "ng-add": {
25
+ "save": true
26
+ },
27
+ "module": "fesm2022/design-factory-angular.mjs",
28
+ "typings": "types/design-factory-angular.d.ts",
29
+ "exports": {
30
+ "./package.json": {
31
+ "default": "./package.json"
32
+ },
33
+ ".": {
34
+ "types": "./types/design-factory-angular.d.ts",
35
+ "default": "./fesm2022/design-factory-angular.mjs"
36
+ },
37
+ "./accordion": {
38
+ "types": "./types/design-factory-angular-accordion.d.ts",
39
+ "default": "./fesm2022/design-factory-angular-accordion.mjs"
40
+ },
41
+ "./config": {
42
+ "types": "./types/design-factory-angular-config.d.ts",
43
+ "default": "./fesm2022/design-factory-angular-config.mjs"
44
+ },
45
+ "./drawer": {
46
+ "types": "./types/design-factory-angular-drawer.d.ts",
47
+ "default": "./fesm2022/design-factory-angular-drawer.mjs"
48
+ },
49
+ "./internals": {
50
+ "types": "./types/design-factory-angular-internals.d.ts",
51
+ "default": "./fesm2022/design-factory-angular-internals.mjs"
52
+ },
53
+ "./sidenav": {
54
+ "types": "./types/design-factory-angular-sidenav.d.ts",
55
+ "default": "./fesm2022/design-factory-angular-sidenav.mjs"
56
+ }
57
+ },
58
+ "sideEffects": false
59
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Add design factory angular to the project and install dependencies.",
6
+ "factory": "./ng-add/index",
7
+ "schema": "./ng-add/schema.json"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { Schema } from './schema';
3
+ export default function ngAdd(options: Schema): Rule;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = ngAdd;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
7
+ const workspace_1 = require("@schematics/angular/utility/workspace");
8
+ const path_1 = require("path");
9
+ const fs_1 = require("fs");
10
+ // Explicitly add the peer dependencies as main dependencies.
11
+ function addDependencies() {
12
+ return (tree) => {
13
+ const dfDependencies = JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '..', '..', 'package.json'), { encoding: 'utf-8' })).peerDependencies;
14
+ for (const dependency in dfDependencies) {
15
+ if (Object.prototype.hasOwnProperty.call(dfDependencies, dependency)) {
16
+ (0, dependencies_1.addPackageJsonDependency)(tree, {
17
+ type: dependencies_1.NodeDependencyType.Default,
18
+ name: dependency,
19
+ version: dfDependencies[dependency]
20
+ });
21
+ }
22
+ }
23
+ };
24
+ }
25
+ // Schedule a package install, also installing the dependencies set up in the above step.
26
+ function install() {
27
+ return (tree, context) => {
28
+ context.addTask(new tasks_1.NodePackageInstallTask());
29
+ return tree;
30
+ };
31
+ }
32
+ // Add DF styles to the main styles file. If no styles.scss found, add DF styles to the workspace.
33
+ function addDFStyles(options) {
34
+ return async (tree, context) => {
35
+ const workspace = await (0, workspace_1.getWorkspace)(tree);
36
+ const project = workspace.projects.get(options.project);
37
+ if (!project) {
38
+ throw new schematics_1.SchematicsException(`Project name architect doesn't not exist.`);
39
+ }
40
+ if (project.extensions['projectType'] !== 'application') {
41
+ throw new schematics_1.SchematicsException(`Requires a project type of "application".`);
42
+ }
43
+ const scssStylePath = `${project.sourceRoot ?? ''}/styles.scss`;
44
+ const cssStylePath = `${project.sourceRoot ?? ''}/styles.css`;
45
+ const foundScss = tree.exists(scssStylePath);
46
+ const foundCss = !foundScss && tree.exists(cssStylePath);
47
+ // if the main `styles.scss` is found, append the df styles imports at the end
48
+ if (foundScss || foundCss) {
49
+ const recorder = tree.beginUpdate(foundScss ? scssStylePath : cssStylePath);
50
+ recorder.insertRight(tree.readText(foundScss ? scssStylePath : cssStylePath).length, `
51
+ ${foundCss ? '@import' : '@use'} '@design-factory/styles/bundle';
52
+ `);
53
+ tree.commitUpdate(recorder);
54
+ }
55
+ else {
56
+ context.logger.warn(`Could not find styles.scss or styles.css in the project source root. Please make sure to import Design Factory styles manually.`);
57
+ }
58
+ };
59
+ }
60
+ function ngAdd(options) {
61
+ return (_tree, context) => {
62
+ context.addTask(new tasks_1.RunSchematicTask('@angular/localize', 'ng-add', options.project ? { project: options.project } : {}));
63
+ return (0, schematics_1.chain)([addDependencies(), install(), addDFStyles(options)]);
64
+ };
65
+ }
@@ -0,0 +1,6 @@
1
+ export interface Schema {
2
+ /**
3
+ * Name of the project where design-factory library should be installed
4
+ */
5
+ project?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsNgAdd",
4
+ "title": "Ng Add Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "project": {
8
+ "type": "string",
9
+ "description": "Name of the project",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,47 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ type DfAccordionConfig = {
4
+ /**
5
+ * example prop
6
+ */
7
+ closeOthers: boolean;
8
+ };
9
+ declare const ACCORDION_CONFIG_KEY: "accordion";
10
+ /**
11
+ * Provides the configuration for the accordion component.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * \@Component({
16
+ * providers: [provideDfAccordionConfig({ closeOthers: true })]
17
+ * })
18
+ * export class MyHomeComponent {}
19
+ * ```
20
+ *
21
+ * @param config - Partial configuration or a function that receives the parent configuration and returns a partial configuration.
22
+ */
23
+ declare const provideDfAccordionConfig: (config?: Partial<DfAccordionConfig> | ((prevConfig: Partial<DfAccordionConfig>) => Partial<DfAccordionConfig>) | undefined) => _angular_core.FactoryProvider;
24
+ /**
25
+ * Injects the configuration for the accordion component.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * \@Component({
30
+ * providers: [provideDfAccordionConfig()]
31
+ * })
32
+ * export class MyAccordionComponent {
33
+ * readonly accordionConfig = injectDfAccordionConfig();
34
+ * }
35
+ * ```
36
+ *
37
+ * @returns A writable signal containing the accordion configuration.
38
+ */
39
+ declare const injectDfAccordionConfig: () => _angular_core.WritableSignal<Partial<DfAccordionConfig>>;
40
+
41
+ declare class DfAccordionComponent {
42
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionComponent, never>;
43
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DfAccordionComponent, "ng-component", never, {}, {}, never, never, true, never>;
44
+ }
45
+
46
+ export { ACCORDION_CONFIG_KEY, DfAccordionComponent, injectDfAccordionConfig, provideDfAccordionConfig };
47
+ export type { DfAccordionConfig };
@@ -0,0 +1,24 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { FactoryProvider } from '@angular/core';
3
+ import { Partial2Levels } from '@agnos-ui/angular-headless';
4
+ import { ACCORDION_CONFIG_KEY, DfAccordionConfig } from '@design-factory/angular/accordion';
5
+
6
+ /**
7
+ * The configuration type for config-customizable DF components.
8
+ */
9
+ type DfConfig = {
10
+ [ACCORDION_CONFIG_KEY]: DfAccordionConfig;
11
+ };
12
+ /**
13
+ * TODO write clear and simple doc
14
+ */
15
+ declare const provideDfConfig: (config?: Partial2Levels<DfConfig> | ((parentConfig: Partial2Levels<DfConfig>) => Partial2Levels<DfConfig>)) => FactoryProvider;
16
+ /**
17
+ * TODO write clear and simple doc
18
+ */
19
+ declare const injectDFConfig: () => _angular_core.WritableSignal<Partial<{
20
+ accordion: Partial<DfAccordionConfig>;
21
+ }>>;
22
+
23
+ export { injectDFConfig, provideDfConfig };
24
+ export type { DfConfig };
@@ -0,0 +1,136 @@
1
+ import * as _agnos_ui_angular_headless from '@agnos-ui/angular-headless';
2
+ import { DrawerWidget, NavManagerItemConfig } from '@agnos-ui/angular-headless';
3
+ import * as _angular_core from '@angular/core';
4
+ import { AgnosWidgetDirective } from '@design-factory/angular/internals';
5
+
6
+ declare class DfDrawerComponent extends AgnosWidgetDirective<DrawerWidget> {
7
+ /**
8
+ * CSS classes to be applied on the widget main container
9
+ *
10
+ * @defaultValue ``
11
+ */
12
+ readonly className: _angular_core.InputSignal<string>;
13
+ /**
14
+ * If `true` allows body scrolling when the drawer is open.
15
+ *
16
+ * @defaultValue `false`
17
+ */
18
+ readonly bodyScroll: _angular_core.InputSignal<boolean>;
19
+ /**
20
+ * If `true` displays the backdrop element and disables the body scrolling, otherwise the body of the document is navigable
21
+ *
22
+ * @defaultValue `true`
23
+ */
24
+ readonly backdrop: _angular_core.InputSignal<boolean>;
25
+ /**
26
+ * Which element should contain the drawer and backdrop DOM elements.
27
+ * If it is not null, the drawer and backdrop DOM elements are moved to the specified container.
28
+ * Otherwise, they stay where the widget is located.
29
+ *
30
+ * @defaultValue
31
+ * ```ts
32
+ * typeof window !== 'undefined' ? document.body : null
33
+ * ```
34
+ */
35
+ readonly container: _angular_core.InputSignal<HTMLElement | null>;
36
+ /**
37
+ * The size of the drawer in pixels.
38
+ *
39
+ * @defaultValue `300`
40
+ */
41
+ readonly size: _angular_core.ModelSignal<number | null>;
42
+ /**
43
+ * If `true`, the drawer can be resized by the user.
44
+ *
45
+ * @defaultValue `false`
46
+ */
47
+ readonly resizable: _angular_core.InputSignal<boolean>;
48
+ /**
49
+ * If `true`, the drawer is shown; otherwise, it is hidden.
50
+ *
51
+ * @defaultValue `false`
52
+ */
53
+ readonly visible: _angular_core.InputSignal<boolean>;
54
+ /**
55
+ * An event emitted when the width is changed.
56
+ *
57
+ * Event payload is equal to the newly selected width.
58
+ *
59
+ * @defaultValue
60
+ * ```ts
61
+ * () => {}
62
+ * ```
63
+ */
64
+ readonly sizeChange: _angular_core.OutputEmitterRef<number | null>;
65
+ /**
66
+ * Event to be triggered when the visible property changes.
67
+ *
68
+ * @param visible - new value of the visible propery
69
+ *
70
+ * @defaultValue
71
+ * ```ts
72
+ * () => {}
73
+ * ```
74
+ */
75
+ readonly visibleChange: _angular_core.OutputEmitterRef<boolean>;
76
+ /**
77
+ * Event to be triggered when the minimized state changes.
78
+ *
79
+ * @defaultValue
80
+ * ```ts
81
+ * () => {}
82
+ * ```
83
+ */
84
+ readonly minimizedChange: _angular_core.OutputEmitterRef<boolean>;
85
+ /**
86
+ * Event to be triggered when the maximized state changes.
87
+ *
88
+ * @defaultValue
89
+ * ```ts
90
+ * () => {}
91
+ * ```
92
+ */
93
+ readonly maximizedChange: _angular_core.OutputEmitterRef<boolean>;
94
+ /**
95
+ * Event to be triggered when the user start or stop moving the drawer.
96
+ *
97
+ * @defaultValue
98
+ * ```ts
99
+ * () => {}
100
+ * ```
101
+ */
102
+ readonly resizingChange: _angular_core.OutputEmitterRef<boolean>;
103
+ protected readonly navManager: _agnos_ui_angular_headless.NavManager<unknown>;
104
+ protected readonly navManagerConfig: NavManagerItemConfig;
105
+ /**
106
+ * Event to be triggered when the minimum size is reached.
107
+ *
108
+ * @defaultValue `null`
109
+ */
110
+ readonly minSize: _angular_core.OutputEmitterRef<void>;
111
+ /**
112
+ * Event to be triggered when the maximum size is reached.
113
+ *
114
+ * @defaultValue `null`
115
+ */
116
+ readonly maxSize: _angular_core.OutputEmitterRef<void>;
117
+ protected readonly isSmallScreen: _angular_core.Signal<boolean>;
118
+ protected readonly isMediumScreen: _angular_core.Signal<boolean>;
119
+ protected readonly isLargeUpScreen: _angular_core.Signal<boolean>;
120
+ private readonly isBrowser;
121
+ /**
122
+ * Flag to enable mobile device detection for responsive behavior
123
+ * @default true
124
+ */
125
+ readonly enableMobile: _angular_core.InputSignalWithTransform<boolean, unknown>;
126
+ /**
127
+ * Flag to indicate if the drawer is minimized
128
+ */
129
+ readonly isMinimized: _angular_core.WritableSignal<boolean>;
130
+ protected readonly isMobileDevice: boolean;
131
+ constructor();
132
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfDrawerComponent, never>;
133
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DfDrawerComponent, "df-drawer", never, { "className": { "alias": "className"; "required": false; "isSignal": true; }; "bodyScroll": { "alias": "bodyScroll"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "container": { "alias": "container"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "enableMobile": { "alias": "enableMobile"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "sizeChange": "sizeChange"; "visibleChange": "visibleChange"; "minimizedChange": "minimizedChange"; "maximizedChange": "maximizedChange"; "resizingChange": "resizingChange"; "minSize": "minSize"; "maxSize": "maxSize"; }, never, ["*"], true, never>;
134
+ }
135
+
136
+ export { DfDrawerComponent };