Skip to content

Commit

Permalink
Set new version & code format
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Oct 16, 2024
1 parent 62d6ff1 commit da1be35
Show file tree
Hide file tree
Showing 86 changed files with 4,131 additions and 4,025 deletions.
7,600 changes: 3,800 additions & 3,800 deletions api-generator/themedoc.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primeng",
"version": "18.0.0-beta.2",
"version": "18.0.0-beta.3",
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"ng": "ng",
Expand Down
21 changes: 10 additions & 11 deletions src/app/components/editor/editor.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
import { CommonModule, isPlatformServer } from '@angular/common';
import {
AfterContentInit,
afterNextRender,
ChangeDetectionStrategy,
Component,
ContentChild,
ContentChildren,
ElementRef,
EventEmitter,
Inject,
forwardRef,
inject,
Input,
NgModule,
Output,
PLATFORM_ID,
QueryList,
TemplateRef,
ViewEncapsulation,
afterNextRender,
forwardRef,
inject,
} from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Header, PrimeTemplate, SharedModule } from 'primeng/api';
Expand Down Expand Up @@ -225,7 +222,9 @@ export class Editor extends BaseComponent implements AfterContentInit, ControlVa
if (this.quill) {
if (value) {
const command = (): void => {
this.quill.setContents(this.quill.clipboard.convert(this.dynamicQuill.version.startsWith('2') ? { html: this.value } : this.value));
this.quill.setContents(
this.quill.clipboard.convert(this.dynamicQuill.version.startsWith('2') ? { html: this.value } : this.value),
);
};

if (this.isAttachedQuillEditorToDOM) {
Expand Down Expand Up @@ -294,7 +293,7 @@ export class Editor extends BaseComponent implements AfterContentInit, ControlVa
formats: this.formats,
bounds: this.bounds,
debug: this.debug,
scrollingContainer: this.scrollingContainer
scrollingContainer: this.scrollingContainer,
});

const isQuill2 = this.dynamicQuill.version.startsWith('2');
Expand All @@ -315,7 +314,7 @@ export class Editor extends BaseComponent implements AfterContentInit, ControlVa
htmlValue: html,
textValue: text,
delta: delta,
source: source
source: source,
});

this.onModelChange(html);
Expand All @@ -327,12 +326,12 @@ export class Editor extends BaseComponent implements AfterContentInit, ControlVa
this.onSelectionChange.emit({
range: range,
oldRange: oldRange,
source: source
source: source,
});
});

this.onInit.emit({
editor: this.quill
editor: this.quill,
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/components/floatlabel/style/floatlabelstyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const classes = {
{
'p-floatlabel-over': props.variant === 'over',
'p-floatlabel-on': props.variant === 'on',
'p-floatlabel-in': props.variant === 'in'
}
'p-floatlabel-in': props.variant === 'in',
},
],
};

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/iftalabel/style/iftalabelstyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const theme = ({ dt }) => `
`;

const classes = {
root: 'p-iftalabel'
root: 'p-iftalabel',
};

@Injectable()
Expand Down
18 changes: 10 additions & 8 deletions src/app/components/image/image.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
import { AnimationEvent, animate, style, transition, trigger } from '@angular/animations';
import { CommonModule, DOCUMENT } from '@angular/common';
import { animate, AnimationEvent, style, transition, trigger } from '@angular/animations';
import { CommonModule } from '@angular/common';
import {
AfterContentInit,
booleanAttribute,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChildren,
ElementRef,
EventEmitter,
HostListener,
Inject,
inject,
Input,
NgModule,
Output,
QueryList,
TemplateRef,
ViewChild,
ViewEncapsulation,
booleanAttribute,
inject,
} from '@angular/core';
import { SafeUrl } from '@angular/platform-browser';
import { PrimeNGConfig, PrimeTemplate, SharedModule } from 'primeng/api';
import { PrimeTemplate, SharedModule } from 'primeng/api';
import { DomHandler } from 'primeng/dom';
import { EyeIcon } from 'primeng/icons/eye';
import { RefreshIcon } from 'primeng/icons/refresh';
Expand Down Expand Up @@ -159,7 +157,11 @@ import { BaseComponent } from 'primeng/basecomponent';
<ng-container
*ngTemplateOutlet="
previewTemplate;
context: { class:'p-image-original' ,style: imagePreviewStyle(), previewCallback: onPreviewImageClick.bind(this) }
context: {
class: 'p-image-original',
style: imagePreviewStyle(),
previewCallback: onPreviewImageClick.bind(this),
}
"
>
</ng-container>
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/inputicon/inputicon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import { InputIconStyle } from './style/inputiconstyle';
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [InputIconStyle],
host:{
host: {
'[class]': 'styleClass',
'[class.p-inputicon]': 'true',
}
},
})
export class InputIcon extends BaseComponent {
/**
Expand Down
15 changes: 8 additions & 7 deletions src/app/components/orderlist/orderlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ import { CdkDragDrop, DragDropModule, moveItemInArray } from '@angular/cdk/drag-
import { CommonModule, isPlatformBrowser } from '@angular/common';
import {
AfterContentInit,
booleanAttribute,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChildren,
ElementRef,
EventEmitter,
inject,
Input,
NgModule,
numberAttribute,
Output,
QueryList,
TemplateRef,
ViewChild,
ViewEncapsulation,
booleanAttribute,
inject,
numberAttribute,
} from '@angular/core';
import { FilterService, PrimeNGConfig, PrimeTemplate, SharedModule } from 'primeng/api';
import { ButtonModule, ButtonProps } from 'primeng/button';
Expand All @@ -35,6 +35,7 @@ import { OrderListStyle } from './style/orderliststyle';
import { BaseComponent } from 'primeng/basecomponent';
import { Listbox, ListboxModule } from 'primeng/listbox';
import { FormsModule } from '@angular/forms';

/**
* OrderList is used to managed the order of a collection.
* @group Components
Expand Down Expand Up @@ -310,7 +311,7 @@ export class OrderList extends BaseComponent implements AfterContentInit {
get value(): any[] | undefined {
return this._value;
}

/**
* Used to pass all properties of the ButtonProps to the Button component.
* @group Props
Expand All @@ -327,19 +328,19 @@ export class OrderList extends BaseComponent implements AfterContentInit {
* Used to pass all properties of the ButtonProps to the move top button inside the component.
* @group Props
*/
@Input() moveTopButtonProps : ButtonProps;
@Input() moveTopButtonProps: ButtonProps;

/**
* Used to pass all properties of the ButtonProps to the move down button inside the component.
* @group Props
*/
@Input() moveDownButtonProps : ButtonProps;
@Input() moveDownButtonProps: ButtonProps;

/**
* Used to pass all properties of the ButtonProps to the move bottom button inside the component.
* @group Props
*/
@Input() moveBottomButtonProps : ButtonProps;
@Input() moveBottomButtonProps: ButtonProps;

/**
* Callback to invoke on selection change.
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primeng",
"version": "18.0.0-beta.2",
"version": "18.0.0-beta.3",
"repository": {
"type": "git",
"url": "https://github.com/primefaces/primeng"
Expand Down
16 changes: 7 additions & 9 deletions src/app/components/panelmenu/panelmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ import { animate, state, style, transition, trigger } from '@angular/animations'
import { CommonModule } from '@angular/common';
import {
AfterContentInit,
booleanAttribute,
ChangeDetectionStrategy,
Component,
computed,
ContentChildren,
ElementRef,
EventEmitter,
forwardRef,
Inject,
inject,
Input,
NgModule,
numberAttribute,
OnChanges,
Output,
QueryList,
signal,
SimpleChanges,
TemplateRef,
ViewChild,
ViewEncapsulation,
booleanAttribute,
computed,
forwardRef,
inject,
numberAttribute,
signal,
} from '@angular/core';
import { RouterModule } from '@angular/router';
import { MenuItem, PrimeTemplate, SharedModule } from 'primeng/api';
Expand Down Expand Up @@ -578,9 +578,7 @@ export class PanelMenuList implements OnChanges {
}

// Recreate processedItems with updated 'expanded' states
this.processedItems.set(
this.createProcessedItems(this.items || [], 0, {}, '')
);
this.processedItems.set(this.createProcessedItems(this.items || [], 0, {}, ''));

// Update activeItemPath
const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== processedItem.parentKey);
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/rating/rating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ export class Rating extends BaseComponent implements OnInit, ControlValueAccesso

onOptionSelect(event, value) {
if (this.focusedOptionIndex === value || value === this.value) {
this.focusedOptionIndex.set(-1)
this.focusedOptionIndex.set(-1);
this.updateModel(event, null);
} else {
this.focusedOptionIndex.set(value)
this.focusedOptionIndex.set(value);
this.updateModel(event, value || null);
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/app/components/speeddial/speeddial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ import { CommonModule, isPlatformBrowser } from '@angular/common';
import {
AfterContentInit,
AfterViewInit,
booleanAttribute,
ChangeDetectionStrategy,
Component,
ContentChildren,
ElementRef,
EventEmitter,
inject,
Input,
NgModule,
numberAttribute,
OnDestroy,
Output,
QueryList,
signal,
TemplateRef,
ViewChild,
ViewEncapsulation,
booleanAttribute,
inject,
numberAttribute,
signal,
} from '@angular/core';
import { RouterModule } from '@angular/router';
import { MenuItem, PrimeTemplate, SharedModule, TooltipOptions } from 'primeng/api';
Expand Down Expand Up @@ -405,7 +405,7 @@ export class SpeedDial extends BaseComponent implements AfterViewInit, AfterCont
if (item.command) {
item.command({ originalEvent: e, item });
}

this.hide();

this.isItemClicked = true;
Expand Down
1 change: 0 additions & 1 deletion src/app/components/themes/aura/aura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ import virtualscroller from './virtualscroller';
import tooltip from './tooltip';
import ripple from './ripple';


export const Aura = {
primitive: {
borderRadius: {
Expand Down
20 changes: 10 additions & 10 deletions src/app/components/themes/aura/floatlabel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ export default {
fontWeight: '500',
active: {
fontSize: '0.75rem',
fontWeight: '400'
}
fontWeight: '400',
},
},
over: {
active: {
top: '-1.25rem'
}
top: '-1.25rem',
},
},
in: {
input: {
paddingTop: '1.5rem'
paddingTop: '1.5rem',
},
active: {
top: '{form.field.padding.y}'
}
top: '{form.field.padding.y}',
},
},
on: {
borderRadius: '{border.radius.xs}',
active: {
background: '{form.field.background}',
padding: '0 0.125rem'
}
}
padding: '0 0.125rem',
},
},
};
6 changes: 3 additions & 3 deletions src/app/components/themes/aura/iftalabel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export default {
positionX: '{form.field.padding.x}',
top: '{form.field.padding.y}',
fontSize: '0.75rem',
fontWeight: '400'
fontWeight: '400',
},
input: {
paddingTop: '1.5rem'
}
paddingTop: '1.5rem',
},
};
Loading

0 comments on commit da1be35

Please sign in to comment.