Skip to content

Commit

Permalink
formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
SoyDiego committed Nov 29, 2023
1 parent cf35ca4 commit 46742de
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 57 deletions.
19 changes: 7 additions & 12 deletions src/app/components/slidemenu/slidemenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy {
const focusedItemInfo = this.focusedItemInfo();

if (grouped) {
this.focusedItemInfo.set({...focusedItemInfo,
index : -1,
level : focusedItemInfo.level + 1,
parentKey : processedItem.key,
item : processedItem.item
})
this.focusedItemInfo.set({ ...focusedItemInfo, index: -1, level: focusedItemInfo.level + 1, parentKey: processedItem.key, item: processedItem.item });
this.animate('right');
} else {
this.onItemChange(event);
Expand Down Expand Up @@ -802,7 +797,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy {
...focusedItemInfo,
index: -1,
item: null
})
});
break;
default:
break;
Expand Down Expand Up @@ -917,7 +912,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy {
...focusedItemInfo,
index: this.findLastFocusedItemIndex(),
item: null
})
});

event.preventDefault();
}
Expand Down Expand Up @@ -952,7 +947,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy {
...focusedItemInfo,
index: processedItem.index,
item: processedItem.item
})
});
}
}

Expand Down Expand Up @@ -984,7 +979,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy {
}

if (this.focusedItemInfo().index === -1 && this.left < 0) {
this.focusedItemInfo.set({...this.focusedItemInfo(), index: 0})
this.focusedItemInfo.set({ ...this.focusedItemInfo(), index: 0 });
}

if (this.focusedItemInfo().index === -1 && !this.left) {
Expand All @@ -1000,7 +995,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy {
...this.focusedItemInfo(),
index: -1,
item: null
})
});
}
this.searchValue = '';
!this.popup && this.unbindOutsideClickListener();
Expand Down Expand Up @@ -1226,7 +1221,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy {

changeFocusedItemIndex(event: any, index: number) {
if (this.focusedItemInfo().index !== index) {
this.focusedItemInfo.set({...this.focusedItemInfo(), index});
this.focusedItemInfo.set({ ...this.focusedItemInfo(), index });
this.scrollInView();
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4300,8 +4300,7 @@ export class EditableColumn implements OnChanges, AfterViewInit, OnDestroy {
DomHandler.invokeElementMethod(event.target, 'blur');
DomHandler.invokeElementMethod(targetCell, 'click');
event.preventDefault();
}
else{
} else {
if (this.dt.isEditingCellValid()) {
this.closeEditingCell(true, event);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/showcase/doc/inputgroup/inputgroupddoc.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { InputGroupModule } from 'primeng/inputgroup';
import { InputGroupAddonModule } from 'primeng/inputgroupaddon';

@NgModule({
imports: [CommonModule, RouterModule, AppCodeModule, AppDocModule, FormsModule, InputTextModule, ButtonModule, CheckboxModule, RadioButtonModule,InputGroupModule,InputGroupAddonModule],
imports: [CommonModule, RouterModule, AppCodeModule, AppDocModule, FormsModule, InputTextModule, ButtonModule, CheckboxModule, RadioButtonModule, InputGroupModule, InputGroupAddonModule],
exports: [AppDocModule],
declarations: [ImportDoc, BasicDoc, MultipleDoc, ButtonDoc, CheckboxDoc]
})
Expand Down
6 changes: 2 additions & 4 deletions src/app/showcase/doc/ripple/accessibilitydoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ import { Component } from '@angular/core';
@Component({
selector: 'accessibility-doc',
template: ` <app-docsectiontext>
<h3>Screen Reader</h3>
<h3>Screen Reader</h3>
<p>Ripple element has the <i>aria-hidden</i> attribute as true so that it gets ignored by the screen readers.</p>
<h3>Keyboard Support</h3>
<p>Component does not include any interactive elements.</p>
</app-docsectiontext>`
})
export class AccessibilityDoc {

}
export class AccessibilityDoc {}
6 changes: 5 additions & 1 deletion src/app/showcase/layout/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ import { provideAnimationsAsync } from '@angular/platform-browser/animations/asy
import { provideHttpClient, withFetch } from '@angular/common/http';

export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes, withInMemoryScrolling({ anchorScrolling: 'enabled', scrollPositionRestoration: 'enabled' }), withEnabledBlockingInitialNavigation(), withViewTransitions()), provideHttpClient(withFetch()), provideAnimationsAsync()]
providers: [
provideRouter(routes, withInMemoryScrolling({ anchorScrolling: 'enabled', scrollPositionRestoration: 'enabled' }), withEnabledBlockingInitialNavigation(), withViewTransitions()),
provideHttpClient(withFetch()),
provideAnimationsAsync()
]
};
2 changes: 1 addition & 1 deletion src/app/showcase/layout/config/app.config.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SidebarModule } from 'primeng/sidebar';
import { AppConfigComponent } from './app.config.component';
import { SelectButtonModule } from 'primeng/selectbutton';
@NgModule({
imports: [CommonModule, FormsModule, SidebarModule, InputSwitchModule, ButtonModule, RadioButtonModule,SelectButtonModule],
imports: [CommonModule, FormsModule, SidebarModule, InputSwitchModule, ButtonModule, RadioButtonModule, SelectButtonModule],
exports: [AppConfigComponent],
declarations: [AppConfigComponent]
})
Expand Down
68 changes: 33 additions & 35 deletions src/app/showcase/layout/doc/codeeditor/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,42 @@ const PrimeNG = {
};

const demoDependencies = [
"@angular-devkit/build-angular",
"@angular/animations",
"@angular/cdk",
"@angular/cli",
"@angular/common",
"@angular/compiler",
"@angular/compiler-cli",
"@angular/core",
"@angular/forms",
"@angular/material",
"@angular/material-moment-adapter",
"@angular/platform-browser",
"@angular/platform-browser-dynamic",
"@angular/platform-server",
"@angular/router",
"@nguniversal/builders",
"@nguniversal/common",
"@nguniversal/express-engine",
"quill",
"primeflex",
"chart.js",
"primeicons",
"rxjs",
"tslib",
"zone.js"
'@angular-devkit/build-angular',
'@angular/animations',
'@angular/cdk',
'@angular/cli',
'@angular/common',
'@angular/compiler',
'@angular/compiler-cli',
'@angular/core',
'@angular/forms',
'@angular/material',
'@angular/material-moment-adapter',
'@angular/platform-browser',
'@angular/platform-browser-dynamic',
'@angular/platform-server',
'@angular/router',
'@nguniversal/builders',
'@nguniversal/common',
'@nguniversal/express-engine',
'quill',
'primeflex',
'chart.js',
'primeicons',
'rxjs',
'tslib',
'zone.js'
];

const getAppDependencies = () => {
const dependencies = {};
for (const key in app_dependencies) {
if (demoDependencies.includes(key)) {
dependencies[key] = app_dependencies[key];
}
}
const dependencies = {};
for (const key in app_dependencies) {
if (demoDependencies.includes(key)) {
dependencies[key] = app_dependencies[key];
}
}

return dependencies;
return dependencies;
};

const getDependencies = () => {
Expand Down Expand Up @@ -479,8 +479,6 @@ Firefox ESR
not ios_saf 15.2-15.3
not safari 15.2-15.3`;



const getAngularApp = (props: Props = {}) => {
const { code, extFiles, routeFiles, selector } = props;
const dependencies = getDependencies();
Expand Down Expand Up @@ -730,7 +728,7 @@ export class AppModule {}`;
'src/index.html': { content: index_html },
'src/karma.conf.js': { content: karma_conf_js },
'src/styles.scss': { content: staticStyles.global },
'src/flags.css': { content: staticStyles.flags },
'src/flags.css': { content: staticStyles.flags }
};

const files = {
Expand Down
1 change: 0 additions & 1 deletion src/app/showcase/pages/landing/userssection.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,4 @@ export class UsersSectionComponent {
get isDarkMode() {
return this.configService.config.darkMode;
}

}

0 comments on commit 46742de

Please sign in to comment.