Skip to content

Commit

Permalink
New documentation
Browse files Browse the repository at this point in the history
cagataycivici committed Mar 16, 2023
1 parent 986a6b5 commit f5129d8
Showing 2,162 changed files with 117,091 additions and 69,558 deletions.
27 changes: 20 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -26,20 +26,33 @@
"style": "camelCase"
}
],
"arrow-body-style": ["error", "as-needed"],
"curly": "error",
"@typescript-eslint/member-ordering": [
"@angular-eslint/component-class-suffix": [
"error",
{
"default": ["public-static-field", "static-field", "instance-field", "public-instance-method", "public-static-field"]
"suffixes": [""]
}
],
"no-console": [
"@angular-eslint/template/eqeqeq": [
"error",
{
"allow": ["debug", "info", "time", "timeEnd", "trace"]
"allowNullOrUndefined": true
}
]
],
"@angular-eslint/no-host-metadata-property": "off",
"@angular-eslint/no-output-on-prefix": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"arrow-body-style": ["error", "as-needed"],
"curly": 0,
"@typescript-eslint/member-ordering": [
"error",
{
"default": ["public-static-field", "static-field", "instance-field", "public-instance-method", "public-static-field"]
}
],
"no-console": 0,
"prefer-const": 0
}
},
{
5 changes: 4 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
@@ -61,7 +61,10 @@
"jspdf-autotable",
"file-saver",
"jspdf",
"quill"
"quill",
"core-js",
"raf",
"rgbcolor"
]
},
"configurations": {
69 changes: 37 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
@@ -22,43 +22,51 @@
"url": "https://github.com/primefaces/primeng.git"
},
"devDependencies": {
"@angular-devkit/build-angular": "~15.1.0",
"@angular/animations": "^15.1.0",
"@angular/cdk": "^15.1.0",
"@angular/cli": "^15.1.0",
"@angular/common": "^15.1.0",
"@angular/compiler": "^15.1.0",
"@angular/compiler-cli": "^15.1.0",
"@angular/core": "^15.1.0",
"@angular/forms": "^15.1.0",
"@angular/platform-browser": "^15.1.0",
"@angular/platform-browser-dynamic": "^15.1.0",
"@angular-eslint/eslint-plugin": "15.1.0",
"@angular-eslint/eslint-plugin-template": "15.1.0",
"@angular-eslint/schematics": "15.1.0",
"@angular-eslint/template-parser": "15.1.0",
"@angular/router": "^15.1.0",
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"@angular-devkit/build-angular": "~15.2.1",
"@angular-eslint/eslint-plugin": "15.2.1",
"@angular-eslint/eslint-plugin-template": "15.2.1",
"@angular-eslint/schematics": "15.2.1",
"@angular-eslint/template-parser": "15.2.1",
"@angular/animations": "^15.2.1",
"@angular/cdk": "^15.2.1",
"@angular/cli": "^15.2.1",
"@angular/common": "^15.2.1",
"@angular/compiler": "^15.2.1",
"@angular/compiler-cli": "^15.2.1",
"@angular/core": "^15.2.1",
"@angular/forms": "^15.2.1",
"@angular/platform-browser": "^15.2.1",
"@angular/platform-browser-dynamic": "^15.2.1",
"@angular/router": "^15.2.1",
"@fullcalendar/angular": "^6.0.3",
"@fullcalendar/core": "^6.0.3",
"@fullcalendar/daygrid": "^6.0.3",
"@fullcalendar/interaction": "^6.0.3",
"@fullcalendar/timegrid": "^6.0.3",
"@stackblitz/sdk": "1.8.1",
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "5.47.1",
"@typescript-eslint/parser": "5.47.1",
"chart.js": "3.3.2",
"codelyzer": "^6.0.0",
"codelyzer": "^0.0.28",
"del": "^2.2.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "latest",
"eslint-plugin-jsdoc": "latest",
"eslint-plugin-prefer-arrow": "latest",
"file-saver": "^2.0.2",
"gulp": "^4.0.2",
"gulp": "^3.9.1",
"gulp-concat": "^2.6.0",
"gulp-flatten": "^0.4.0",
"gulp-rename": "^2.0.0",
"gulp-uglify": "^3.0.2",
"gulp-uglifycss": "^1.0.6",
"jasmine-core": "~4.1.0",
"jasmine-spec-reporter": "~5.0.0",
"jspdf": "1.5.3",
"jspdf-autotable": "3.2.5",
"jspdf": "^2.5.1",
"jspdf-autotable": "^3.5.28",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.2.0",
@@ -68,20 +76,17 @@
"prettier": "2.7.1",
"primeflex": "^3.3.0",
"primeicons": "^6.0.1",
"prismjs": "1.20.0",
"prismjs": "^1.29.0",
"quill": "1.3.7",
"rxjs": "~7.5.0",
"ts-node": "~8.3.0",
"tslib": "^2.3.0",
"typescript": "~4.8.4",
"xlsx": "^0.15.1",
"zone.js": "~0.11.4",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "latest",
"eslint-plugin-jsdoc": "latest",
"eslint-plugin-prefer-arrow": "latest",
"@typescript-eslint/eslint-plugin": "5.47.1",
"@typescript-eslint/parser": "5.47.1"
"xlsx": "^0.18.5",
"zone.js": "~0.11.4"
},
"dependencies": {
"@docsearch/js": "^3.3.3",
"@types/react": "^18.0.28"
}
}
1 change: 1 addition & 0 deletions src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
@@ -3070,6 +3070,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
this.unbindDocumentResizeListener();
this.unbindScrollListener();
this.overlay = null;
this.onModelTouched();
}

ngOnDestroy() {
6 changes: 3 additions & 3 deletions src/app/components/inplace/inplace.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NgModule, Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, AfterContentInit, TemplateRef, QueryList, ContentChildren } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ButtonModule } from 'primeng/button';
import { PrimeTemplate } from 'primeng/api';
import { PrimeTemplate, SharedModule } from 'primeng/api';

@Component({
selector: 'p-inplaceDisplay',
@@ -120,8 +120,8 @@ export class Inplace implements AfterContentInit {
}

@NgModule({
imports: [CommonModule, ButtonModule],
exports: [Inplace, InplaceDisplay, InplaceContent, ButtonModule],
imports: [CommonModule, ButtonModule, SharedModule],
exports: [Inplace, InplaceDisplay, InplaceContent, ButtonModule, SharedModule],
declarations: [Inplace, InplaceDisplay, InplaceContent]
})
export class InplaceModule {}
3 changes: 3 additions & 0 deletions src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
@@ -907,6 +907,9 @@ export class InputNumber implements OnInit, ControlValueAccessor {

handleOnInput(event, currentValue, newValue) {
if (this.isValueChanged(currentValue, newValue)) {
this.input.nativeElement.value = this.formatValue(newValue);
this.input.nativeElement.setAttribute('aria-valuenow', newValue);
this.updateModel(event, newValue);
this.onInput.emit({ originalEvent: event, value: newValue, formattedValue: currentValue });
}
}
5 changes: 5 additions & 0 deletions src/app/components/megamenu/megamenu.css
Original file line number Diff line number Diff line change
@@ -96,4 +96,9 @@

.p-megamenu-col-12 {
width: 100%;
}

.p-megamenu-horizontal .p-megamenu-end {
margin-left: auto;
align-self: center;
}
26 changes: 11 additions & 15 deletions src/app/components/megamenu/megamenu.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NgModule, Component, ElementRef, Input, Renderer2, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, AfterContentInit, ContentChildren, QueryList, TemplateRef } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MegaMenuItem, MenuItem, PrimeTemplate } from 'primeng/api';
import { MegaMenuItem, MenuItem, PrimeTemplate, SharedModule } from 'primeng/api';
import { RouterModule } from '@angular/router';
import { RippleModule } from 'primeng/ripple';
import { TooltipModule } from 'primeng/tooltip';
@@ -137,15 +137,15 @@ import { TooltipModule } from 'primeng/tooltip';
</div>
</li>
</ng-template>
<div class="p-megamenu-end" *ngIf="endTemplate; else legacy">
<ng-container *ngTemplateOutlet="endTemplate"></ng-container>
</div>
<ng-template #legacy>
<div class="p-megamenu-end">
<ng-content></ng-content>
</div>
</ng-template>
</ul>
<div class="p-megamenu-end" *ngIf="endTemplate; else legacy">
<ng-container *ngTemplateOutlet="endTemplate"></ng-container>
</div>
<ng-template #legacy>
<div class="p-megamenu-end">
<ng-content></ng-content>
</div>
</ng-template>
</div>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -164,10 +164,6 @@ export class MegaMenu implements AfterContentInit {

@Input() orientation: string = 'horizontal';

@Input() autoZIndex: boolean = true;

@Input() baseZIndex: number = 0;

@ContentChildren(PrimeTemplate) templates: QueryList<any>;

activeItem: any;
@@ -304,8 +300,8 @@ export class MegaMenu implements AfterContentInit {
}

@NgModule({
imports: [CommonModule, RouterModule, RippleModule, TooltipModule],
exports: [MegaMenu, RouterModule, TooltipModule],
imports: [CommonModule, RouterModule, RippleModule, TooltipModule, SharedModule],
exports: [MegaMenu, RouterModule, TooltipModule, SharedModule],
declarations: [MegaMenu]
})
export class MegaMenuModule {}
9 changes: 4 additions & 5 deletions src/app/components/overlay/overlay.ts
Original file line number Diff line number Diff line change
@@ -93,10 +93,10 @@ export class Overlay implements AfterContentInit, OnDestroy {
}
set visible(value: boolean) {
this._visible = value;
}

if (this._visible && !this.modalVisible) {
this.modalVisible = true;
}
get modalVisible(): boolean {
return !this.visible && this.modal ? false : true;
}

@Input() get mode(): OverlayModeType | string {
@@ -254,7 +254,7 @@ export class Overlay implements AfterContentInit, OnDestroy {

_options: OverlayOptions | undefined;

modalVisible: boolean = false;
_modalVisible: boolean = false;

isOverlayClicked: boolean = false;

@@ -419,7 +419,6 @@ export class Overlay implements AfterContentInit, OnDestroy {

DomHandler.appendOverlay(this.overlayEl, this.targetEl, this.appendTo);
ZIndexUtils.clear(container);
this.modalVisible = false;

break;
}
4 changes: 3 additions & 1 deletion src/app/components/overlaypanel/overlaypanel.ts
Original file line number Diff line number Diff line change
@@ -202,6 +202,7 @@ export class OverlayPanel implements AfterContentInit, OnDestroy {
}

show(event, target?) {
target && event.stopPropagation();
if (this.isOverlayAnimationInProgress) {
return;
}
@@ -251,10 +252,11 @@ export class OverlayPanel implements AfterContentInit, OnDestroy {

const containerOffset = DomHandler.getOffset(this.container);
const targetOffset = DomHandler.getOffset(this.target);
const borderRadius = getComputedStyle(this.container).getPropertyValue('border-radius');
let arrowLeft = 0;

if (containerOffset.left < targetOffset.left) {
arrowLeft = targetOffset.left - containerOffset.left;
arrowLeft = targetOffset.left - containerOffset.left - parseFloat(borderRadius) * 2;
}
this.container.style.setProperty('--overlayArrowLeft', `${arrowLeft}px`);

6 changes: 3 additions & 3 deletions src/app/components/package.json
Original file line number Diff line number Diff line change
@@ -18,9 +18,9 @@
"module": "primeng.js",
"typings": "primeng.d.ts",
"peerDependencies": {
"@angular/core": "^15.1.0",
"@angular/common": "^15.1.0",
"@angular/forms": "^15.1.0",
"@angular/core": "^15.2.1",
"@angular/common": "^15.2.1",
"@angular/forms": "^15.2.1",
"rxjs": "^6.0.0 || ^7.5.0",
"zone.js": "^0.10.2 || ^0.11.0 || ^0.12.0",
"primeicons": "^6.0.1"
2 changes: 0 additions & 2 deletions src/app/components/scrollpanel/scrollpanel.css
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@
width: 100%;
height: 100%;
position: relative;
z-index: 1;
float: left;
}

@@ -20,7 +19,6 @@
position: relative;
background: #c1c1c1;
border-radius: 3px;
z-index: 2;
cursor: pointer;
opacity: 0;
transition: opacity 0.25s linear;
6 changes: 3 additions & 3 deletions src/app/components/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ import {
TemplateRef,
ViewEncapsulation
} from '@angular/core';
import { PrimeNGConfig, PrimeTemplate } from 'primeng/api';
import { PrimeNGConfig, PrimeTemplate, SharedModule } from 'primeng/api';
import { DomHandler } from 'primeng/dom';
import { RippleModule } from 'primeng/ripple';
import { ZIndexUtils } from 'primeng/utils';
@@ -362,8 +362,8 @@ export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy {
}

@NgModule({
imports: [CommonModule, RippleModule],
exports: [Sidebar],
imports: [CommonModule, RippleModule, SharedModule],
exports: [Sidebar, SharedModule],
declarations: [Sidebar]
})
export class SidebarModule {}
6 changes: 3 additions & 3 deletions src/app/components/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"declaration": true,
"module": "es2020",
"target": "es2017",
"module": "es2022",
"target": "es2022",
"baseUrl": ".",
"stripInternal": true,
"emitDecoratorMetadata": false,
@@ -11,7 +11,7 @@
"outDir": "../build",
"rootDir": ".",
"lib": [
"es2020",
"es2022",
"dom"
],
"skipLibCheck": true,
135 changes: 0 additions & 135 deletions src/app/showcase/app-routing.module.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/app/showcase/app.code.component.ts

This file was deleted.

29 changes: 0 additions & 29 deletions src/app/showcase/app.component.spec.ts

This file was deleted.

75 changes: 0 additions & 75 deletions src/app/showcase/app.component.ts

This file was deleted.

591 changes: 0 additions & 591 deletions src/app/showcase/app.config.component.ts

This file was deleted.

59 changes: 0 additions & 59 deletions src/app/showcase/app.demoactions.component.ts

This file was deleted.

27 changes: 0 additions & 27 deletions src/app/showcase/app.footer.component.ts

This file was deleted.

60 changes: 0 additions & 60 deletions src/app/showcase/app.inputstyleswitch.component.ts

This file was deleted.

791 changes: 0 additions & 791 deletions src/app/showcase/app.menu.component.ts

This file was deleted.

85 changes: 0 additions & 85 deletions src/app/showcase/app.module.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/app/showcase/app.news.component.ts

This file was deleted.

553 changes: 0 additions & 553 deletions src/app/showcase/app.topbar.component.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

637 changes: 0 additions & 637 deletions src/app/showcase/components/accordion/accordiondemo.html

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/showcase/components/accordion/accordiondemo.module.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/app/showcase/components/accordion/accordiondemo.ts

This file was deleted.

82 changes: 0 additions & 82 deletions src/app/showcase/components/animate/animatedemo.html

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/showcase/components/animate/animatedemo.module.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/app/showcase/components/animate/animatedemo.ts

This file was deleted.

890 changes: 0 additions & 890 deletions src/app/showcase/components/autocomplete/autocompletedemo.html

This file was deleted.

This file was deleted.

125 changes: 0 additions & 125 deletions src/app/showcase/components/autocomplete/autocompletedemo.ts

This file was deleted.

79 changes: 0 additions & 79 deletions src/app/showcase/components/autofocus/autofocusdemo.component.html

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/showcase/components/autofocus/autofocusdemo.module.ts

This file was deleted.

422 changes: 0 additions & 422 deletions src/app/showcase/components/avatar/avatardemo.html

This file was deleted.

19 changes: 0 additions & 19 deletions src/app/showcase/components/avatar/avatardemo.module.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/app/showcase/components/avatar/avatardemo.ts

This file was deleted.

250 changes: 0 additions & 250 deletions src/app/showcase/components/badge/badgedemo.html

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/showcase/components/badge/badgedemo.module.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/app/showcase/components/badge/badgedemo.ts

This file was deleted.

253 changes: 0 additions & 253 deletions src/app/showcase/components/blockui/blockuidemo.html

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/showcase/components/blockui/blockuidemo.module.ts

This file was deleted.

50 changes: 0 additions & 50 deletions src/app/showcase/components/blockui/blockuidemo.ts

This file was deleted.

198 changes: 0 additions & 198 deletions src/app/showcase/components/breadcrumb/breadcrumbdemo.html

This file was deleted.

14 changes: 0 additions & 14 deletions src/app/showcase/components/breadcrumb/breadcrumbdemo.module.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/app/showcase/components/breadcrumb/breadcrumbdemo.ts

This file was deleted.

695 changes: 0 additions & 695 deletions src/app/showcase/components/button/buttondemo.html

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/showcase/components/button/buttondemo.module.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/app/showcase/components/button/buttondemo.ts

This file was deleted.

1,000 changes: 0 additions & 1,000 deletions src/app/showcase/components/calendar/calendardemo.html

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/showcase/components/calendar/calendardemo.module.ts

This file was deleted.

64 changes: 0 additions & 64 deletions src/app/showcase/components/calendar/calendardemo.ts

This file was deleted.

214 changes: 0 additions & 214 deletions src/app/showcase/components/card/carddemo.html

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/showcase/components/card/carddemo.module.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/app/showcase/components/card/carddemo.scss

This file was deleted.

7 changes: 0 additions & 7 deletions src/app/showcase/components/card/carddemo.ts

This file was deleted.

Loading

0 comments on commit f5129d8

Please sign in to comment.