Skip to content

Commit

Permalink
feat(design)!: shard link set component (#2677)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `DaffLinkSetModule` has moved to its own package. Update imports to `@daffodil/design/link-set`
  • Loading branch information
xelaint committed Dec 20, 2023
1 parent bfd8cc5 commit 43edf2d
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { By } from '@angular/platform-browser';
import { RouterTestingModule } from '@angular/router/testing';

import { DaffLinkSetModule } from '@daffodil/design';
import { DaffLinkSetModule } from '@daffodil/design/link-set';

import { DaffioDocsTableOfContentsComponent } from './table-of-contents.component';
import { DaffioDoc } from '../../models/doc';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import {
DaffListModule,
DaffLinkSetModule,
} from '@daffodil/design';
import { DaffListModule } from '@daffodil/design';
import { DaffAccordionModule } from '@daffodil/design/accordion';
import { DaffLinkSetModule } from '@daffodil/design/link-set';

import { DaffioDocsTableOfContentsComponent } from './table-of-contents.component';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { By } from '@angular/platform-browser';
import { RouterTestingModule } from '@angular/router/testing';

import { DaffLinkSetModule } from '@daffodil/design';
import { DaffLinkSetModule } from '@daffodil/design/link-set';
import { DaffNavigationTree } from '@daffodil/navigation';
import { DaffNavigationTreeFactory } from '@daffodil/navigation/testing';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { provideMockStore } from '@ngrx/store/testing';
import { of } from 'rxjs';

import { DaffLinkSetModule } from '@daffodil/design';
import { DaffLinkSetModule } from '@daffodil/design/link-set';
import { DaffLoadingIconModule } from '@daffodil/design/loading-icon';
import {
DaffSidebarModule,
Expand Down
3 changes: 1 addition & 2 deletions apps/demo/src/app/core/sidebar/sidebar.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import { DaffLinkSetModule } from '@daffodil/design';
import { DaffLinkSetModule } from '@daffodil/design/link-set';
import { DaffLoadingIconModule } from '@daffodil/design/loading-icon';
import { DaffSidebarModule } from '@daffodil/design/sidebar';
import { DaffNavigationStateModule } from '@daffodil/navigation/state';
Expand All @@ -13,7 +13,6 @@ import { SidebarContainer } from './containers/sidebar/sidebar.component';
import { SidebarViewportContainer } from './containers/sidebar-viewport/sidebar-viewport.component';
import { DemoSidebarStateModule } from './sidebar.state.module';


@NgModule({
imports: [
CommonModule,
Expand Down
2 changes: 1 addition & 1 deletion apps/design-land/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import {
DaffLinkSetModule,
DAFF_THEME_INITIALIZER,
DaffNavbarModule,
} from '@daffodil/design';
import { DaffArticleModule } from '@daffodil/design/article';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffLinkSetModule } from '@daffodil/design/link-set';
import { DaffSidebarModule } from '@daffodil/design/sidebar';
import { DaffThemeSwitchButtonModule } from '@daffodil/theme-switch';

Expand Down
2 changes: 1 addition & 1 deletion apps/design-land/src/app/link-set/link-set.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { DaffLinkSetModule } from '@daffodil/design';
import { DaffLinkSetModule } from '@daffodil/design/link-set';

import { DesignLandLinkSetRoutingModule } from './link-set-routing.module';
import { DesignLandLinkSetComponent } from './link-set.component';
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions libs/design/link-set/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/design/link-set",
"deleteDestPath": false,
"lib": {
"entryFile": "src/index.ts",
"styleIncludePaths": ["../src/scss"]
}
}
1 change: 1 addition & 0 deletions libs/design/link-set/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './public_api';
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '../../../../scss/typography' as t;
@use '../../../../scss/interactions';
@use '../../../scss/typography' as t;
@use '../../../scss/interactions';

.daff-link-set {
display: block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Renderer2,
} from '@angular/core';

import { daffArticleEncapsulatedMixin } from '../../../core/article-encapsulated/public_api';
import { daffArticleEncapsulatedMixin } from '@daffodil/design';

/**
* An _elementRef and an instance of renderer2 are needed for the link set mixins
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { NgModule } from '@angular/core';

import {
DaffNavbarModule,
DaffLinkSetModule,
} from '@daffodil/design';
import { DaffNavbarModule } from '@daffodil/design';
import { DaffLinkSetModule } from '@daffodil/design/link-set';
import { DaffSidebarModule } from '@daffodil/design/sidebar';

import { BasicSidebarComponent } from './basic-sidebar.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import {
DaffNavbarModule,
DaffLinkSetModule,
} from '@daffodil/design';
import { DaffNavbarModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffLinkSetModule } from '@daffodil/design/link-set';
import { DaffSidebarModule } from '@daffodil/design/sidebar';

import { OverandUnderSidebarsComponent } from './over-and-under-sidebars.component';
Expand Down
1 change: 0 additions & 1 deletion libs/design/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export * from './molecules/backdrop/public_api';
export * from './molecules/button-set/public_api';
export * from './molecules/image-gallery/public_api';
export * from './molecules/image-list/public_api';
export * from './molecules/link-set/public_api';
export * from './molecules/list/public_api';
export * from './molecules/media-gallery/public_api';
export * from './molecules/menu/public_api';
Expand Down

0 comments on commit 43edf2d

Please sign in to comment.