Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Nov 24, 2023
1 parent 675b586 commit 5f250fc
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 90 deletions.
105 changes: 52 additions & 53 deletions src/app/showcase/doc/calendar/templatesdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,58 @@ import { Component, Input } from '@angular/core';

@Component({
selector: 'templates-doc',
template: `
<div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Name</th>
<th>Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td>header</td>
<td>-</td>
</tr>
<tr>
<td>footer</td>
<td>-</td>
</tr>
<tr>
<td>date</td>
<td>$implicit: Value of the component</td>
</tr>
<tr>
<td>decade</td>
<td>$implicit: An array containing the start and and year of a decade to display at header of the year picker.</td>
</tr>
<tr>
<td>previousicon</td>
<td>-</td>
</tr>
<tr>
<td>nexticon</td>
<td>-</td>
</tr>
<tr>
<td>triggericon</td>
<td>-</td>
</tr>
<tr>
<td>clearicon</td>
<td>-</td>
</tr>
<tr>
<td>incrementicon</td>
<td>-</td>
</tr>
<tr>
<td>decrementicon</td>
<td>-</td>
</tr>
</tbody>
</table>
</div>`
template: ` <div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Name</th>
<th>Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td>header</td>
<td>-</td>
</tr>
<tr>
<td>footer</td>
<td>-</td>
</tr>
<tr>
<td>date</td>
<td>$implicit: Value of the component</td>
</tr>
<tr>
<td>decade</td>
<td>$implicit: An array containing the start and and year of a decade to display at header of the year picker.</td>
</tr>
<tr>
<td>previousicon</td>
<td>-</td>
</tr>
<tr>
<td>nexticon</td>
<td>-</td>
</tr>
<tr>
<td>triggericon</td>
<td>-</td>
</tr>
<tr>
<td>clearicon</td>
<td>-</td>
</tr>
<tr>
<td>incrementicon</td>
<td>-</td>
</tr>
<tr>
<td>decrementicon</td>
<td>-</td>
</tr>
</tbody>
</table>
</div>`
})
export class TemplatesDoc {
@Input() id: string;
Expand Down
3 changes: 1 addition & 2 deletions src/app/showcase/doc/cascadeselect/accessibilitydoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Code } from '../../domain/code';

@Component({
selector: 'accessibility-doc',
template: `
<app-docsectiontext>
template: ` <app-docsectiontext>
<h3>Screen Reader</h3>
<p>
Value to describe the component can either be provided with <i>ariaLabelledBy</i> or <i>ariaLabel</i> props. The cascadeselect element has a <i>combobox</i> role in addition to <i>aria-haspopup</i> and <i>aria-expanded</i> attributes.
Expand Down
3 changes: 1 addition & 2 deletions src/app/showcase/doc/overlay/appendtodoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Code } from '../../domain/code';

@Component({
selector: 'appendto-doc',
template: `
<app-docsectiontext>
template: ` <app-docsectiontext>
<p>Overlay can be mounted into its location, body or DOM element instance using this option.</p>
</app-docsectiontext>
<app-code [code]="code" [hideToggleCode]="true"></app-code>`
Expand Down
7 changes: 3 additions & 4 deletions src/app/showcase/doc/overlay/autozindexdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { AppDocSectionTextComponent } from '../../layout/doc/app.docsectiontext.

@Component({
selector: 'auto-zindex-doc',
template: `
<app-docsectiontext>
<p>The <i>autoZIndex</i> determines whether to automatically manage layering. Its default value is 'false'.</p>
</app-docsectiontext>`
template: ` <app-docsectiontext>
<p>The <i>autoZIndex</i> determines whether to automatically manage layering. Its default value is 'false'.</p>
</app-docsectiontext>`
})
export class AutoZIndexDoc {}
7 changes: 3 additions & 4 deletions src/app/showcase/doc/overlay/basezindexdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { AppDocSectionTextComponent } from '../../layout/doc/app.docsectiontext.

@Component({
selector: 'base-zindex-doc',
template: `
<app-docsectiontext>
<p>The <i>baseZIndex</i> is base zIndex value to use in layering. Its default value is 0.</p>
</app-docsectiontext>`
template: ` <app-docsectiontext>
<p>The <i>baseZIndex</i> is base zIndex value to use in layering. Its default value is 0.</p>
</app-docsectiontext>`
})
export class BaseZIndexDoc {}
3 changes: 1 addition & 2 deletions src/app/showcase/doc/overlay/basicdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Code } from '../../domain/code';

@Component({
selector: 'basic-doc',
template: `
<app-docsectiontext>
template: ` <app-docsectiontext>
<p>Overlay is a container to display content in an overlay window. All the options mentioned above can be used as props for this component.</p>
</app-docsectiontext>
<div class="card flex justify-content-center">
Expand Down
7 changes: 3 additions & 4 deletions src/app/showcase/doc/overlay/hideonescapedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { AppDocSectionTextComponent } from '../../layout/doc/app.docsectiontext.

@Component({
selector: 'hide-on-escape-doc',
template: `
<app-docsectiontext>
<p>The <i>hideOnEscape</i> determines to hide the overlay when escape key pressed. Accepts boolean, default value is <i>false</i>.</p>
</app-docsectiontext>`
template: ` <app-docsectiontext>
<p>The <i>hideOnEscape</i> determines to hide the overlay when escape key pressed. Accepts boolean, default value is <i>false</i>.</p>
</app-docsectiontext>`
})
export class HideOnEscapeDoc {}
3 changes: 1 addition & 2 deletions src/app/showcase/doc/overlay/importdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Code } from '../../domain/code';

@Component({
selector: 'import-doc',
template: `
<app-code [code]="code" [hideToggleCode]="true"></app-code>`
template: ` <app-code [code]="code" [hideToggleCode]="true"></app-code>`
})
export class ImportDoc {
@Input() id: string;
Expand Down
4 changes: 1 addition & 3 deletions src/app/showcase/doc/overlay/modedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Code } from '../../domain/code';

@Component({
selector: 'mode-doc',
template: `
<app-docsectiontext>
template: ` <app-docsectiontext>
<p>
It has two valid values; <i>overlay</i> and <i>modal</i>. In overlay mode, a container element is opened like overlaypanel or dropdown's panel. In modal mode, the container element behaves like popup. This behaviour is similar to a
dialog component.
Expand All @@ -13,7 +12,6 @@ import { Code } from '../../domain/code';
<app-code [code]="code" [hideToggleCode]="true"></app-code>`
})
export class ModeDoc {

code: Code = {
typescript: `
import { PrimeNGConfig, OverlayOptions } from 'primeng/api';
Expand Down
3 changes: 1 addition & 2 deletions src/app/showcase/doc/overlay/responsivedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { AppDocSectionTextComponent } from '../../layout/doc/app.docsectiontext.

@Component({
selector: 'responsive-doc',
template: `
<app-docsectiontext>
template: ` <app-docsectiontext>
<p>It is the option used to determine in which mode it should appear according to the given <i>media</i> or <i>breakpoint</i>.</p>
</app-docsectiontext>
<app-code [code]="code" [hideToggleCode]="true"></app-code>
Expand Down
7 changes: 3 additions & 4 deletions src/app/showcase/doc/overlay/styledoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { Component, Input, ViewChild } from '@angular/core';

@Component({
selector: 'style-doc',
template: `
<app-docsectiontext>
<p>The <i>style</i> and <i>styleClass</i> are used to define styles that will be added to all overlay components. In addition, it can be used in <i>contentStyle</i> and <i>contentStyleClass</i> classes.</p>
</app-docsectiontext>`
template: ` <app-docsectiontext>
<p>The <i>style</i> and <i>styleClass</i> are used to define styles that will be added to all overlay components. In addition, it can be used in <i>contentStyle</i> and <i>contentStyleClass</i> classes.</p>
</app-docsectiontext>`
})
export class StyleDoc {}
3 changes: 1 addition & 2 deletions src/app/showcase/doc/overlay/targetdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Code } from '../../domain/code';

@Component({
selector: 'target-doc',
template: `
<app-docsectiontext>
template: ` <app-docsectiontext>
<p>The <i>target</i> is used to detect the element that will be used to position the overlay. Valid values would be;</p>
</app-docsectiontext>
<div class="card">
Expand Down
3 changes: 1 addition & 2 deletions src/app/showcase/doc/overlay/templatedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Code } from '../../domain/code';

@Component({
selector: 'overlay-template-demo',
template: `
<app-docsectiontext>
template: ` <app-docsectiontext>
<p>Content can be customized with the <i>content</i> template.</p>
</app-docsectiontext>
<div class="card flex justify-content-center">
Expand Down
7 changes: 3 additions & 4 deletions src/app/showcase/doc/overlay/transitionoptionsdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { AppDocSectionTextComponent } from '../../layout/doc/app.docsectiontext.

@Component({
selector: 'transition-options-doc',
template: `
<app-docsectiontext>
<p>Transition options of the show or hide animation. The default value of <i>showTransitionOptions</i> is '.12s cubic-bezier(0, 0, 0.2, 1)' and the default value of <i>hideTransitionOptions</i> is '.1s linear'.</p>
</app-docsectiontext>`
template: ` <app-docsectiontext>
<p>Transition options of the show or hide animation. The default value of <i>showTransitionOptions</i> is '.12s cubic-bezier(0, 0, 0.2, 1)' and the default value of <i>hideTransitionOptions</i> is '.1s linear'.</p>
</app-docsectiontext>`
})
export class TransitionOptionsDoc {}

1 comment on commit 5f250fc

@vercel
Copy link

@vercel vercel bot commented on 5f250fc Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.