Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/primefaces/primeng
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Nov 27, 2023
2 parents 832dadc + 64b4b05 commit bcc46b0
Show file tree
Hide file tree
Showing 21 changed files with 18,428 additions and 773 deletions.
50 changes: 8 additions & 42 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,40 +33,13 @@
"outputPath": "dist/primeng/browser",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.png",
"src/assets",
"src/showcase",
"src/upload.php",
"src/versions.json",
"src/.htaccess"
],
"styles": [
"src/styles.scss",
"node_modules/primeicons/primeicons.css"
],
"scripts": [
"./node_modules/prismjs/prism.js",
"./node_modules/prismjs/components/prism-typescript.js",
"./node_modules/prismjs/components/prism-scss.js",
"./node_modules/prismjs/components/prism-bash.js"
],
"allowedCommonJsDependencies": [
"chart.js",
"xlsx",
"jspdf-autotable",
"file-saver",
"jspdf",
"quill",
"core-js",
"raf",
"rgbcolor"
]
"assets": ["src/favicon.png", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": ["./node_modules/prismjs/prism.js", "./node_modules/prismjs/components/prism-typescript.js", "./node_modules/prismjs/components/prism-scss.js", "./node_modules/prismjs/components/prism-bash.js"],
"allowedCommonJsDependencies": ["chart.js", "xlsx", "jspdf-autotable", "file-saver", "jspdf", "quill", "core-js", "raf", "rgbcolor"]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -119,15 +92,8 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.png",
"src/assets",
"src/upload.php"
],
"styles": [
"src/styles.scss",
"src/assets/components/themes/lara-light-blue/theme.css"
],
"assets": ["src/favicon.png", "src/assets"],
"styles": ["src/styles.scss", "src/assets/components/themes/lara-light-blue/theme.css"],
"scripts": []
}
},
Expand Down Expand Up @@ -156,4 +122,4 @@
}
}
}
}
}
24 changes: 2 additions & 22 deletions src/app/showcase/doc/colors/surfacesdoc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Subscription } from 'rxjs';
import { AppConfig } from '../../domain/appconfig';
import { AppConfigService } from '../../service/appconfigservice';
import { Component } from '@angular/core';

@Component({
selector: 'surfaces-doc',
Expand Down Expand Up @@ -75,25 +72,8 @@ import { AppConfigService } from '../../service/appconfigservice';
`
]
})
export class SurfacesDoc implements OnInit, OnDestroy {
export class SurfacesDoc {
colors: string[] = ['blue', 'green', 'yellow', 'cyan', 'pink', 'indigo', 'red', 'teal', 'orange', 'bluegray', 'purple', 'gray', 'primary'];

shades: number[] = [0, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900];

config: AppConfig;

subscription: Subscription;

constructor(private configService: AppConfigService) {}

ngOnInit() {
this.config = this.configService.config;
this.subscription = this.configService.configUpdate$.subscribe((config) => (this.config = config));
}

ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}
6 changes: 5 additions & 1 deletion src/app/showcase/layout/app.main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { AppTopBarComponent } from './topbar/app.topbar.component';
@Component({
selector: 'app-main',
template: `
<div class="layout-wrapper" [ngClass]="containerClass">
<div class="layout-wrapper" [ngClass]="containerClass" [attr.data-p-theme]="theme">
<app-news></app-news>
<app-topbar (onDarkModeSwitch)="toggleDarkMode()"></app-topbar>
<app-config (onDarkModeSwitch)="toggleDarkMode()"></app-config>
Expand Down Expand Up @@ -52,6 +52,10 @@ export class AppMainComponent {
return this.configService.state.menuActive;
}

get theme(): string {
return this.configService.config.theme;
}

get containerClass() {
return {
'layout-news-active': this.isNewsActive,
Expand Down
Loading

1 comment on commit bcc46b0

@vercel
Copy link

@vercel vercel bot commented on bcc46b0 Nov 27, 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.