From bcfdff50a7c2baf55607962e7be43c4214462f0b Mon Sep 17 00:00:00 2001 From: rowa-audil Date: Tue, 5 May 2020 11:59:22 +0200 Subject: [PATCH] feat(cta-card): Removes component. BREAKING CHANGE: Use dt-empty-state instead. --- .github/CODEOWNERS | 3 - angular.json | 40 ------ apps/dev/src/app.module.ts | 4 +- .../src/cta-card/cta-card-demo.component.html | 56 --------- .../src/cta-card/cta-card-demo.component.scss | 3 - .../src/cta-card/cta-card-demo.component.ts | 24 ---- apps/dev/src/devapp-routing.module.ts | 2 - apps/dev/src/devapp.component.ts | 1 - apps/dev/src/dt-components.module.ts | 2 - .../dev/src/empty-state/empty-state-demo.html | 35 ------ libs/barista-components/cta-card/README.md | 41 ------ libs/barista-components/cta-card/barista.json | 36 ------ libs/barista-components/cta-card/index.ts | 18 --- .../cta-card/jest.config.js | 10 -- libs/barista-components/cta-card/package.json | 7 -- .../cta-card/src/cta-card-module.ts | 42 ------- .../cta-card/src/cta-card.html | 19 --- .../cta-card/src/cta-card.scss | 26 ---- .../cta-card/src/cta-card.ts | 119 ------------------ .../cta-card/src/test-setup.ts | 17 --- .../barista-components/cta-card/tsconfig.json | 7 -- .../cta-card/tsconfig.lib.json | 20 --- .../cta-card/tsconfig.spec.json | 10 -- libs/barista-components/cta-card/tslint.json | 7 -- .../cta-card-closable-example.html | 31 ----- .../cta-card-closable-example.ts | 23 ---- .../cta-card-default-example.html | 22 ---- .../cta-card-default-example.ts | 23 ---- .../src/cta-card/cta-card-examples.module.ts | 33 ----- libs/examples/src/cta-card/index.ts | 19 --- libs/examples/src/examples.module.ts | 2 - libs/examples/src/index.ts | 7 -- nx.json | 4 - tsconfig.json | 3 - 34 files changed, 1 insertion(+), 715 deletions(-) delete mode 100644 apps/dev/src/cta-card/cta-card-demo.component.html delete mode 100644 apps/dev/src/cta-card/cta-card-demo.component.scss delete mode 100644 apps/dev/src/cta-card/cta-card-demo.component.ts delete mode 100644 libs/barista-components/cta-card/README.md delete mode 100644 libs/barista-components/cta-card/barista.json delete mode 100644 libs/barista-components/cta-card/index.ts delete mode 100644 libs/barista-components/cta-card/jest.config.js delete mode 100644 libs/barista-components/cta-card/package.json delete mode 100644 libs/barista-components/cta-card/src/cta-card-module.ts delete mode 100644 libs/barista-components/cta-card/src/cta-card.html delete mode 100644 libs/barista-components/cta-card/src/cta-card.scss delete mode 100644 libs/barista-components/cta-card/src/cta-card.ts delete mode 100644 libs/barista-components/cta-card/src/test-setup.ts delete mode 100644 libs/barista-components/cta-card/tsconfig.json delete mode 100644 libs/barista-components/cta-card/tsconfig.lib.json delete mode 100644 libs/barista-components/cta-card/tsconfig.spec.json delete mode 100644 libs/barista-components/cta-card/tslint.json delete mode 100644 libs/examples/src/cta-card/cta-card-closable-example/cta-card-closable-example.html delete mode 100644 libs/examples/src/cta-card/cta-card-closable-example/cta-card-closable-example.ts delete mode 100644 libs/examples/src/cta-card/cta-card-default-example/cta-card-default-example.html delete mode 100644 libs/examples/src/cta-card/cta-card-default-example/cta-card-default-example.ts delete mode 100644 libs/examples/src/cta-card/cta-card-examples.module.ts delete mode 100644 libs/examples/src/cta-card/index.ts diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 562dcd9697..ffe8d547ab 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -17,7 +17,6 @@ /libs/barista-components/container-breakpoint-observer/** @thomaspink /libs/barista-components/context-dialog/** @ffriedl89 @NinaKammerlander /libs/barista-components/copy-to-clipboard/** @ffriedl89 @moertenschlag -/libs/barista-components/cta-card/** @thomaspink /libs/barista-components/drawer/** @lukasholzer @rowa-audil /libs/barista-components/empty-state/** @lukasholzer @heartdisease /libs/barista-components/event-chart/** @thomaspink @tomheller @@ -115,7 +114,6 @@ /apps/dev/src/container-breakpoint-observer/** @thomaspink /apps/dev/src/context-dialog/** @ffriedl89 @NinaKammerlander /apps/dev/src/copy-to-clipboard/** @ffriedl89 @moertenschlag -/apps/dev/src/cta-card/** @thomaspink /apps/dev/src/drawer/** @lukasholzer @rowa-audil /apps/dev/src/empty-state/** @lukasholzer @heartdisease /apps/dev/src/event-chart/** @thomaspink @tomheller @@ -187,7 +185,6 @@ /libs/examples/src/container-breakpoint-observer/** @thomaspink /libs/examples/src/context-dialog/** @ffriedl89 @NinaKammerlander /libs/examples/src/copy-to-clipboard/** @ffriedl89 @moertenschlag -/libs/examples/src/cta-card/** @thomaspink /libs/examples/src/drawer/** @lukasholzer @rowa-audil /libs/examples/src/empty-state/** @lukasholzer @heartdisease /libs/examples/src/event-chart/** @thomaspink @tomheller diff --git a/angular.json b/angular.json index 599a90f754..c10682f58e 100644 --- a/angular.json +++ b/angular.json @@ -1743,46 +1743,6 @@ }, "schematics": {} }, - "cta-card": { - "projectType": "library", - "root": "libs/barista-components/cta-card", - "sourceRoot": "libs/barista-components/cta-card/src", - "prefix": "dt", - "architect": { - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/barista-components/cta-card/tsconfig.lib.json", - "libs/barista-components/cta-card/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**", - "!libs/barista-components/cta-card/**" - ] - } - }, - "lint-styles": { - "builder": "./dist/libs/workspace:stylelint", - "options": { - "stylelintConfig": ".stylelintrc", - "reportFile": "dist/stylelint/report.xml", - "exclude": ["**/node_modules/**"], - "files": ["libs/barista-components/cta-card/**/*.scss"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "libs/barista-components/cta-card/jest.config.js", - "tsConfig": "libs/barista-components/cta-card/tsconfig.spec.json", - "setupFile": "libs/barista-components/cta-card/src/test-setup.ts", - "passWithNoTests": true - } - } - }, - "schematics": {} - }, "drawer": { "projectType": "library", "root": "libs/barista-components/drawer", diff --git a/apps/dev/src/app.module.ts b/apps/dev/src/app.module.ts index 671a0226c5..0f25f280bf 100644 --- a/apps/dev/src/app.module.ts +++ b/apps/dev/src/app.module.ts @@ -28,7 +28,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { DevAppRoutingModule } from './devapp-routing.module'; import { DevApp } from './devapp.component'; import { DevAppDynatraceModule } from './dt-components.module'; - import { AlertDemo } from './alert/alert-demo.component'; import { AutocompleteDemo } from './autocomplete/autocomplete-demo.component'; import { BarIndicatorDemo } from './bar-indicator/bar-indicator-demo.component'; @@ -43,7 +42,6 @@ import { ConsumptionDemo } from './consumption/consumption-demo.component'; import { ContainerBreakpointObserverDemo } from './container-breakpoint-observer/container-breakpoint-observer-demo.component'; import { ContextDialogDemo } from './context-dialog/context-dialog-demo.component'; import { CopyToClipboardDemo } from './copy-to-clipboard/copy-to-clipboard-demo.component'; -import { CtaCardDemo } from './cta-card/cta-card-demo.component'; import { DrawerDemo } from './drawer/drawer-demo.component'; import { DrawerTableDemo } from './drawer-table/drawer-table-demo.component'; import { EmptyStateDemo } from './empty-state/empty-state-demo'; @@ -123,7 +121,7 @@ export class NoopRouteComponent {} ConfirmationDialogDemo, ContextDialogDemo, CopyToClipboardDemo, - CtaCardDemo, + DrawerDemo, DrawerTableDemo, ExpandablePanelDemo, diff --git a/apps/dev/src/cta-card/cta-card-demo.component.html b/apps/dev/src/cta-card/cta-card-demo.component.html deleted file mode 100644 index a73e22337d..0000000000 --- a/apps/dev/src/cta-card/cta-card-demo.component.html +++ /dev/null @@ -1,56 +0,0 @@ -
- - - Start monitoring your Cloud Foundry foundation VMs - - - - - - - Deploy Dynatrace OneAgent via the Dynatrace OneAgent BOSH release to your - Cloud Foundry foundation VMs. Get monitoring insights into all Cloud - Foundry components including Diego cells, Gorouters, and more. Benefit - from automatic monitoring of Cloud Foundry applications, down to the code - and query level, thanks to built-in auto-injection for Garden-runC - containers. - - Read more... - - View release - More info - - -
- -
- -
- - - Start monitoring your Cloud Foundry foundation VMs - - - - - - - - - Deploy Dynatrace OneAgent via the Dynatrace OneAgent BOSH release to - your Cloud Foundry foundation VMs. Get monitoring insights into all - Cloud Foundry components including Diego cells, Gorouters, and more. - Benefit from automatic monitoring of Cloud Foundry applications, down to - the code and query level, thanks to built-in auto-injection for - Garden-runC containers. - Read more... - - - - - - - -
diff --git a/apps/dev/src/cta-card/cta-card-demo.component.scss b/apps/dev/src/cta-card/cta-card-demo.component.scss deleted file mode 100644 index 5d4e87f30f..0000000000 --- a/apps/dev/src/cta-card/cta-card-demo.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -:host { - display: block; -} diff --git a/apps/dev/src/cta-card/cta-card-demo.component.ts b/apps/dev/src/cta-card/cta-card-demo.component.ts deleted file mode 100644 index 3da4cf96e4..0000000000 --- a/apps/dev/src/cta-card/cta-card-demo.component.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component } from '@angular/core'; - -@Component({ - selector: 'cta-card-dev-app-demo', - templateUrl: './cta-card-demo.component.html', - styleUrls: ['./cta-card-demo.component.scss'], -}) -export class CtaCardDemo {} diff --git a/apps/dev/src/devapp-routing.module.ts b/apps/dev/src/devapp-routing.module.ts index e33e16f29e..a7c78e3504 100644 --- a/apps/dev/src/devapp-routing.module.ts +++ b/apps/dev/src/devapp-routing.module.ts @@ -31,7 +31,6 @@ import { ConsumptionDemo } from './consumption/consumption-demo.component'; import { ContainerBreakpointObserverDemo } from './container-breakpoint-observer/container-breakpoint-observer-demo.component'; import { ContextDialogDemo } from './context-dialog/context-dialog-demo.component'; import { CopyToClipboardDemo } from './copy-to-clipboard/copy-to-clipboard-demo.component'; -import { CtaCardDemo } from './cta-card/cta-card-demo.component'; import { DrawerDemo } from './drawer/drawer-demo.component'; import { DrawerTableDemo } from './drawer-table/drawer-table-demo.component'; import { EmptyStateDemo } from './empty-state/empty-state-demo'; @@ -92,7 +91,6 @@ const routes: Routes = [ { path: 'context-dialog', component: ContextDialogDemo }, { path: 'confirmation-dialog', component: ConfirmationDialogDemo }, { path: 'copy-to-clipboard', component: CopyToClipboardDemo }, - { path: 'cta-card', component: CtaCardDemo }, { path: 'drawer', component: DrawerDemo }, { path: 'drawer-table', component: DrawerTableDemo }, { path: 'empty-state', component: EmptyStateDemo }, diff --git a/apps/dev/src/devapp.component.ts b/apps/dev/src/devapp.component.ts index 6dba1e2ac3..39156bc0df 100644 --- a/apps/dev/src/devapp.component.ts +++ b/apps/dev/src/devapp.component.ts @@ -57,7 +57,6 @@ export class DevApp implements AfterContentInit, OnDestroy { }, { name: 'Context-dialog', route: '/context-dialog' }, { name: 'Copy-to-clipboard', route: '/copy-to-clipboard' }, - { name: 'Cta-card', route: '/cta-card' }, { name: 'Drawer', route: '/drawer' }, { name: 'Drawer-table', route: '/drawer-table' }, { name: 'Empty-state', route: '/empty-state' }, diff --git a/apps/dev/src/dt-components.module.ts b/apps/dev/src/dt-components.module.ts index 12b83c9179..75c7a3715c 100644 --- a/apps/dev/src/dt-components.module.ts +++ b/apps/dev/src/dt-components.module.ts @@ -30,7 +30,6 @@ import { DtConsumptionModule } from '@dynatrace/barista-components/consumption'; import { DtContainerBreakpointObserverModule } from '@dynatrace/barista-components/container-breakpoint-observer'; import { DtContextDialogModule } from '@dynatrace/barista-components/context-dialog'; import { DtCopyToClipboardModule } from '@dynatrace/barista-components/copy-to-clipboard'; -import { DtCtaCardModule } from '@dynatrace/barista-components/cta-card'; import { DtDrawerModule } from '@dynatrace/barista-components/drawer'; import { DtDrawerTableModule } from '@dynatrace/barista-components/experimental/drawer-table'; import { DtEmptyStateModule } from '@dynatrace/barista-components/empty-state'; @@ -93,7 +92,6 @@ import { DtTreeTableModule } from '@dynatrace/barista-components/tree-table'; DtConfirmationDialogModule, DtContextDialogModule, DtCopyToClipboardModule, - DtCtaCardModule, DtDrawerModule, DtDrawerTableModule, DtExpandablePanelModule, diff --git a/apps/dev/src/empty-state/empty-state-demo.html b/apps/dev/src/empty-state/empty-state-demo.html index ff4c15ed2d..9eda31f2bb 100644 --- a/apps/dev/src/empty-state/empty-state-demo.html +++ b/apps/dev/src/empty-state/empty-state-demo.html @@ -148,41 +148,6 @@

[ CTA card using dt-card and dt-empty-state with only one item ]


-

[ cta-card (deprecated) ]

- -
- - - Start monitoring your Cloud Foundry foundation VMs - - - - - - - - - - Deploy Dynatrace OneAgent via the Dynatrace OneAgent BOSH release to your - Cloud Foundry foundation VMs. Get monitoring insights into all Cloud - Foundry components including Diego cells, Gorouters, and more. Benefit - from automatic monitoring of Cloud Foundry applications, down to the code - and query level, thanks to built-in auto-injection for Garden-runC - containers. - - Read more... - - - View release - More info - - -
- -
-

[ table empty state ]

diff --git a/libs/barista-components/cta-card/README.md b/libs/barista-components/cta-card/README.md deleted file mode 100644 index 626e9ef3d0..0000000000 --- a/libs/barista-components/cta-card/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# Cta Card - -**DEPRECATED – will be removed with version 6.0.0** Please use -`` in combination with `` instead. See the -[empty state](/components/empty-state) and the [card](/components/card) for more -details. - -The `` is a specific type of card showing a call to action content, -defined by a title, an image, a teaser text and an action button. In addition to -the custom content, the cta card can hold some special sections: - -- `` - The title of the cta card -- `` - Image to be shown within the illustration region of - the cta card -- `` - Action buttons, displayed below the text. For - the regular cases there should only be one primary cta styled dt-button. -- `` - Buttons displayed next to the title. Should be - a secondary styled dt-button showing an image. - - - -## Imports - -You have to import the `DtCtaCardModule` when you want to use the `dt-cta-card`: - -```typescript -@NgModule({ - imports: [DtCtaCardModule], -}) -class MyModule {} -``` - -Please note that you should not use the cta-card's elements like title to hold -any arbitrary content just for spacing purposes, make sure to put only the cards -title inside the `` element and not controls like buttons. - -## Variants - -### Closeable Card - - diff --git a/libs/barista-components/cta-card/barista.json b/libs/barista-components/cta-card/barista.json deleted file mode 100644 index a0db768bb3..0000000000 --- a/libs/barista-components/cta-card/barista.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "title": "CTA card", - "description": "The CTA card is a specific type of card, showing a call to action content.", - "postid": "cta-card", - "identifier": "Ca", - "category": "components", - "public": true, - "properties": ["deprecated"], - "contributors": { - "dev": [ - { - "name": "Christoph Matscheko", - "githubuser": "heartdisease" - }, - { - "name": "Alexander Lagler", - "githubuser": "alexlagler" - } - ], - "ux": [ - { - "name": "Raphaela Raudaschl", - "githubuser": "rrcaptain" - } - ] - }, - "tags": [ - "call to action", - "cta", - "section", - "card", - "component", - "illustration" - ], - "related": ["empty-state", "card"] -} diff --git a/libs/barista-components/cta-card/index.ts b/libs/barista-components/cta-card/index.ts deleted file mode 100644 index 05671a559f..0000000000 --- a/libs/barista-components/cta-card/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export * from './src/cta-card-module'; -export * from './src/cta-card'; diff --git a/libs/barista-components/cta-card/jest.config.js b/libs/barista-components/cta-card/jest.config.js deleted file mode 100644 index 293a561875..0000000000 --- a/libs/barista-components/cta-card/jest.config.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = { - name: 'cta-card', - preset: '../../../jest.config.js', - coverageDirectory: '../../../coverage/components/cta-card', - snapshotSerializers: [ - 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', - 'jest-preset-angular/build/AngularSnapshotSerializer.js', - 'jest-preset-angular/build/HTMLCommentSerializer.js', - ], -}; diff --git a/libs/barista-components/cta-card/package.json b/libs/barista-components/cta-card/package.json deleted file mode 100644 index dedb72ce9c..0000000000 --- a/libs/barista-components/cta-card/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "ngPackage": { - "lib": { - "entryFile": "index.ts" - } - } -} diff --git a/libs/barista-components/cta-card/src/cta-card-module.ts b/libs/barista-components/cta-card/src/cta-card-module.ts deleted file mode 100644 index a1874884fc..0000000000 --- a/libs/barista-components/cta-card/src/cta-card-module.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { NgModule } from '@angular/core'; - -import { DtCardModule } from '@dynatrace/barista-components/card'; - -import { - DtCtaCard, - DtCtaCardFooterActions, - DtCtaCardImage, - DtCtaCardTitle, - DtCtaCardTitleActions, -} from './cta-card'; - -const CTA_CARD_DIRECTIVES = [ - DtCtaCard, // tslint:disable-line:deprecation - DtCtaCardFooterActions, // tslint:disable-line:deprecation - DtCtaCardTitleActions, // tslint:disable-line:deprecation - DtCtaCardTitle, // tslint:disable-line:deprecation - DtCtaCardImage, // tslint:disable-line:deprecation -]; - -@NgModule({ - declarations: CTA_CARD_DIRECTIVES, - exports: CTA_CARD_DIRECTIVES, - imports: [DtCardModule], -}) -export class DtCtaCardModule {} diff --git a/libs/barista-components/cta-card/src/cta-card.html b/libs/barista-components/cta-card/src/cta-card.html deleted file mode 100644 index 685c9da1ee..0000000000 --- a/libs/barista-components/cta-card/src/cta-card.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - -
- -
-

- -

- -
-
-
diff --git a/libs/barista-components/cta-card/src/cta-card.scss b/libs/barista-components/cta-card/src/cta-card.scss deleted file mode 100644 index d2a674547b..0000000000 --- a/libs/barista-components/cta-card/src/cta-card.scss +++ /dev/null @@ -1,26 +0,0 @@ -@import '../../core/src/style/button'; - -.dt-cta-card-flex-container { - display: flex; - flex-wrap: wrap; -} - -:host ::ng-deep img { - max-width: 152px; - max-height: 128px; - margin-right: 20px; -} - -.dt-cta-card-flex-box { - flex: 1 1 180px; -} - -.dt-cta-card-text-wrapper { - max-width: 580px; - margin: 0 0 16px; -} - -:host ::ng-deep .dt-cta-card-title-actions, -:host ::ng-deep .dt-cta-card-footer-actions { - @include dt-button-child-button-spacing(); -} diff --git a/libs/barista-components/cta-card/src/cta-card.ts b/libs/barista-components/cta-card/src/cta-card.ts deleted file mode 100644 index 03e7078ed3..0000000000 --- a/libs/barista-components/cta-card/src/cta-card.ts +++ /dev/null @@ -1,119 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - ChangeDetectionStrategy, - Component, - Directive, - ViewEncapsulation, -} from '@angular/core'; - -/** - * Title of the cta card. - * - * @deprecated Use `` in combination with `` instead. - * @breaking-change To be removed with 6.0.0. - */ -@Directive({ - selector: 'dt-cta-card-title', - exportAs: 'dtCtaCardTitle', - host: { - class: 'dt-cta-card-title', - }, -}) -export class DtCtaCardTitle {} - -/** - * The image content that is placed into the illustration region of the cta card. - * - * @deprecated Use `` in combination with `` instead. - * @breaking-change To be removed with 6.0.0. - */ -@Directive({ - selector: 'dt-cta-card-image', - exportAs: 'dtCtaCardImage', - host: { - class: 'dt-cta-card-image', - }, -}) -export class DtCtaCardImage {} - -/** - * The action button that is placed below the text of the cta card (must be one cta styled primary button). - * - * @deprecated Use `` in combination with `` instead. - * @breaking-change To be removed with 6.0.0. - */ -@Directive({ - selector: 'dt-cta-card-footer-actions', - exportAs: 'dtCtaCardFooterActions', - host: { - class: 'dt-cta-card-footer-actions', - }, -}) -export class DtCtaCardFooterActions {} - -/** - * The action button that is placed on the top right corner of the cta card (must be one cta styled secondary button with icon). - * - * @deprecated Use `` in combination with `` instead. - * @breaking-change To be removed with 6.0.0. - */ -@Directive({ - selector: 'dt-cta-card-title-actions', - exportAs: 'dtCtaCardTitleActions', - host: { - class: 'dt-cta-card-title-actions', - }, -}) -export class DtCtaCardTitleActions {} - -/** - * @deprecated Use `` in combination with `` instead. - * Example: - * ``` - * - * Some title - * - * - * - * - * No agent - * - * - * Some Heading - * - * Lorem ipsum dolor sit amet, consetetur sadipscing elitr. - * - * - * - * - * - * - * - * ``` - * @breaking-change To be removed with 6.0.0. - */ -@Component({ - selector: 'dt-cta-card', - exportAs: 'dtCtaCard', - templateUrl: 'cta-card.html', - styleUrls: ['cta-card.scss'], - encapsulation: ViewEncapsulation.Emulated, - preserveWhitespaces: false, - changeDetection: ChangeDetectionStrategy.OnPush, -}) -export class DtCtaCard {} diff --git a/libs/barista-components/cta-card/src/test-setup.ts b/libs/barista-components/cta-card/src/test-setup.ts deleted file mode 100644 index 3c66e43d72..0000000000 --- a/libs/barista-components/cta-card/src/test-setup.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import 'jest-preset-angular'; diff --git a/libs/barista-components/cta-card/tsconfig.json b/libs/barista-components/cta-card/tsconfig.json deleted file mode 100644 index 08c7db8c96..0000000000 --- a/libs/barista-components/cta-card/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "types": ["node", "jest"] - }, - "include": ["**/*.ts"] -} diff --git a/libs/barista-components/cta-card/tsconfig.lib.json b/libs/barista-components/cta-card/tsconfig.lib.json deleted file mode 100644 index 1c600457d3..0000000000 --- a/libs/barista-components/cta-card/tsconfig.lib.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../dist/out-tsc", - "target": "es2015", - "declaration": true, - "inlineSources": true, - "types": [], - "lib": ["dom", "es2018"] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "enableResourceInlining": true - }, - "exclude": ["src/test-setup.ts", "**/*.spec.ts"] -} diff --git a/libs/barista-components/cta-card/tsconfig.spec.json b/libs/barista-components/cta-card/tsconfig.spec.json deleted file mode 100644 index fd405a65ef..0000000000 --- a/libs/barista-components/cta-card/tsconfig.spec.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "files": ["src/test-setup.ts"], - "include": ["**/*.spec.ts", "**/*.d.ts"] -} diff --git a/libs/barista-components/cta-card/tslint.json b/libs/barista-components/cta-card/tslint.json deleted file mode 100644 index 95392b22f1..0000000000 --- a/libs/barista-components/cta-card/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../../tslint.json", - "rules": {}, - "linterOptions": { - "exclude": ["!**/*"] - } -} diff --git a/libs/examples/src/cta-card/cta-card-closable-example/cta-card-closable-example.html b/libs/examples/src/cta-card/cta-card-closable-example/cta-card-closable-example.html deleted file mode 100644 index 1dff525957..0000000000 --- a/libs/examples/src/cta-card/cta-card-closable-example/cta-card-closable-example.html +++ /dev/null @@ -1,31 +0,0 @@ -
- - - You're missing out on log analytics! - - - Enable log analysis - - - - - - - - Placeholder image that shows that no agent is installed on the current host. - - - Enable Dynatrace log analytics to automatically correlate host-process log - data with problems detected in your environment. Search log files and - create pattern-detection rules that trigger custom events. - - -
diff --git a/libs/examples/src/cta-card/cta-card-closable-example/cta-card-closable-example.ts b/libs/examples/src/cta-card/cta-card-closable-example/cta-card-closable-example.ts deleted file mode 100644 index d87fa7a15e..0000000000 --- a/libs/examples/src/cta-card/cta-card-closable-example/cta-card-closable-example.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component } from '@angular/core'; - -@Component({ - selector: 'dt-example-cta-card-closable', - templateUrl: 'cta-card-closable-example.html', -}) -export class DtExampleCtaCardClosable {} diff --git a/libs/examples/src/cta-card/cta-card-default-example/cta-card-default-example.html b/libs/examples/src/cta-card/cta-card-default-example/cta-card-default-example.html deleted file mode 100644 index 65e05ddb98..0000000000 --- a/libs/examples/src/cta-card/cta-card-default-example/cta-card-default-example.html +++ /dev/null @@ -1,22 +0,0 @@ -
- - - Start monitoring your Cloud Foundry foundation VMs - - - View release - - - no agent svg - - Deploy Dynatrace OneAgent via the Dynatrace OneAgent BOSH release to your - Cloud Foundry foundation VMs. Get monitoring insights into all Cloud Foundry - components including Diego cells, Gorouters, and more. Benefit from - automatic monitoring of Cloud Foundry applications, down to the code and - query level, thanks to built-in auto-injection for Garden-runC containers. - Read more... - -
diff --git a/libs/examples/src/cta-card/cta-card-default-example/cta-card-default-example.ts b/libs/examples/src/cta-card/cta-card-default-example/cta-card-default-example.ts deleted file mode 100644 index 9b285209f1..0000000000 --- a/libs/examples/src/cta-card/cta-card-default-example/cta-card-default-example.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component } from '@angular/core'; - -@Component({ - selector: 'dt-example-cta-card-default', - templateUrl: 'cta-card-default-example.html', -}) -export class DtExampleCtaCardDefault {} diff --git a/libs/examples/src/cta-card/cta-card-examples.module.ts b/libs/examples/src/cta-card/cta-card-examples.module.ts deleted file mode 100644 index b4a4fc6b31..0000000000 --- a/libs/examples/src/cta-card/cta-card-examples.module.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { NgModule } from '@angular/core'; -import { DtCtaCardModule } from '@dynatrace/barista-components/cta-card'; -import { DtIconModule } from '@dynatrace/barista-components/icon'; -import { DtButtonModule } from '@dynatrace/barista-components/button'; -import { DtExampleCtaCardClosable } from './cta-card-closable-example/cta-card-closable-example'; -import { DtExampleCtaCardDefault } from './cta-card-default-example/cta-card-default-example'; - -export const DT_CTA_CARD_EXAMPLES = [ - DtExampleCtaCardClosable, - DtExampleCtaCardDefault, -]; - -@NgModule({ - imports: [DtCtaCardModule, DtIconModule, DtButtonModule], - declarations: [...DT_CTA_CARD_EXAMPLES], - entryComponents: [...DT_CTA_CARD_EXAMPLES], -}) -export class DtCtaCardExamplesModule {} diff --git a/libs/examples/src/cta-card/index.ts b/libs/examples/src/cta-card/index.ts deleted file mode 100644 index 0abbd9ac3b..0000000000 --- a/libs/examples/src/cta-card/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @license - * Copyright 2020 Dynatrace LLC - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export * from './cta-card-closable-example/cta-card-closable-example'; -export * from './cta-card-default-example/cta-card-default-example'; -export * from './cta-card-examples.module'; diff --git a/libs/examples/src/examples.module.ts b/libs/examples/src/examples.module.ts index 9a32edd2e0..9d92cdb232 100644 --- a/libs/examples/src/examples.module.ts +++ b/libs/examples/src/examples.module.ts @@ -35,7 +35,6 @@ import { DtConsumptionExamplesModule } from './consumption/consumption-examples. import { DtContainerBreakpointObserverExamplesModule } from './container-breakpoint-observer/container-breakpoint-observer-examples.module'; import { DtContextDialogExamplesModule } from './context-dialog/context-dialog-examples.module'; import { DtCopyToClipboardExamplesModule } from './copy-to-clipboard/copy-to-clipboard-examples.module'; -import { DtCtaCardExamplesModule } from './cta-card/cta-card-examples.module'; import { DtDrawerExamplesModule } from './drawer/drawer-examples.module'; import { DtDrawerTableExamplesModule } from './drawer-table/drawer-table-examples.module'; import { DtEmptyStateExamplesModule } from './empty-state/empty-state-examples.module'; @@ -102,7 +101,6 @@ import { DtExamplesTreeTableModule } from './tree-table/tree-table-examples.modu DtContainerBreakpointObserverExamplesModule, DtContextDialogExamplesModule, DtCopyToClipboardExamplesModule, - DtCtaCardExamplesModule, DtDrawerExamplesModule, DtDrawerTableExamplesModule, DtEmptyStateExamplesModule, diff --git a/libs/examples/src/index.ts b/libs/examples/src/index.ts index f90c290ec8..777f00cb8b 100644 --- a/libs/examples/src/index.ts +++ b/libs/examples/src/index.ts @@ -107,8 +107,6 @@ import { DtExampleCopyToClipboardDefault } from './copy-to-clipboard/copy-to-cli import { DtExampleCopyToClipboardError } from './copy-to-clipboard/copy-to-clipboard-error-example/copy-to-clipboard-error-example'; import { DtExampleCopyToClipboardSecondaryButton } from './copy-to-clipboard/copy-to-clipboard-secondary-button-example/copy-to-clipboard-secondary-button-example'; import { DtExampleCopyToClipboardTextarea } from './copy-to-clipboard/copy-to-clipboard-textarea-example/copy-to-clipboard-textarea-example'; -import { DtExampleCtaCardClosable } from './cta-card/cta-card-closable-example/cta-card-closable-example'; -import { DtExampleCtaCardDefault } from './cta-card/cta-card-default-example/cta-card-default-example'; import { DtExampleDrawerDefault } from './drawer/drawer-default-example/drawer-default-example'; import { DtExampleDrawerDynamic } from './drawer/drawer-dynamic-example/drawer-dynamic-example'; import { DtExampleDrawerNested } from './drawer/drawer-nested-example/drawer-nested-example'; @@ -334,7 +332,6 @@ export { DtConsumptionExamplesModule } from './consumption/consumption-examples. export { DtContainerBreakpointObserverExamplesModule } from './container-breakpoint-observer/container-breakpoint-observer-examples.module'; export { DtContextDialogExamplesModule } from './context-dialog/context-dialog-examples.module'; export { DtCopyToClipboardExamplesModule } from './copy-to-clipboard/copy-to-clipboard-examples.module'; -export { DtCtaCardExamplesModule } from './cta-card/cta-card-examples.module'; export { DtDrawerExamplesModule } from './drawer/drawer-examples.module'; export { DtDrawerTableExamplesModule } from './drawer-table/drawer-table-examples.module'; export { DtEmptyStateExamplesModule } from './empty-state/empty-state-examples.module'; @@ -467,8 +464,6 @@ export { DtExampleCopyToClipboardError, DtExampleCopyToClipboardSecondaryButton, DtExampleCopyToClipboardTextarea, - DtExampleCtaCardClosable, - DtExampleCtaCardDefault, DtExampleDrawerDefault, DtExampleDrawerDynamic, DtExampleDrawerNested, @@ -785,8 +780,6 @@ export const EXAMPLES_MAP = new Map>([ DtExampleCopyToClipboardSecondaryButton, ], ['DtExampleCopyToClipboardTextarea', DtExampleCopyToClipboardTextarea], - ['DtExampleCtaCardClosable', DtExampleCtaCardClosable], - ['DtExampleCtaCardDefault', DtExampleCtaCardDefault], ['DtExampleDrawerDefault', DtExampleDrawerDefault], ['DtExampleDrawerDynamic', DtExampleDrawerDynamic], ['DtExampleDrawerNested', DtExampleDrawerNested], diff --git a/nx.json b/nx.json index db8fdaa668..11421e7a47 100644 --- a/nx.json +++ b/nx.json @@ -81,7 +81,6 @@ "context-dialog", "copy-to-clipboard", "core", - "cta-card", "drawer", "drawer-table", "empty-state", @@ -177,9 +176,6 @@ "core": { "tags": ["scope:components", "type:library"] }, - "cta-card": { - "tags": ["scope:components", "type:library"] - }, "drawer": { "tags": ["scope:components", "type:library"] }, diff --git a/tsconfig.json b/tsconfig.json index c2f88f75f3..fca0b6139d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -65,9 +65,6 @@ "@dynatrace/barista-components/core": [ "libs/barista-components/core/index.ts" ], - "@dynatrace/barista-components/cta-card": [ - "libs/barista-components/cta-card/index.ts" - ], "@dynatrace/barista-components/drawer": [ "libs/barista-components/drawer/index.ts" ],