diff --git a/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 2.zip b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 2.zip
new file mode 100644
index 0000000..3e9e1e5
Binary files /dev/null and b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 2.zip differ
diff --git a/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 3.zip b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 3.zip
new file mode 100644
index 0000000..b312836
Binary files /dev/null and b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 3.zip differ
diff --git a/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 4.zip b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 4.zip
new file mode 100644
index 0000000..3a8f3b9
Binary files /dev/null and b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder 4.zip differ
diff --git a/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder/Design_lbrary/Design_lbrary.component.html b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder/Design_lbrary/Design_lbrary.component.html
index 1e3c430..f1ae359 100644
--- a/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder/Design_lbrary/Design_lbrary.component.html
+++ b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder/Design_lbrary/Design_lbrary.component.html
@@ -50,6 +50,9 @@
+ Html
+
+
htmljson
@@ -91,7 +94,9 @@
-
+
+
@@ -128,8 +133,8 @@
-
-
+
+ Preview
@@ -359,6 +364,10 @@
+
Json
diff --git a/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder/Design_lbrary/Design_lbrary.component.ts b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder/Design_lbrary/Design_lbrary.component.ts
index 4f6d789..f49ca07 100644
--- a/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder/Design_lbrary/Design_lbrary.component.ts
+++ b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/fnd/SiteTreeBuilder/Design_lbrary/Design_lbrary.component.ts
@@ -9,6 +9,8 @@ import { Design_lbrarycardvariable } from './Design_lbrary_cardvariable';
import { UserInfoService } from 'src/app/services/user-info.service';
import { SiteTreeservice } from '../SiteBuilderGrid/SiteTree.service';
import { COMMON_CSS } from '../WireframesUi/common-css';
+import { Download_Css } from '../WireframesUi/download-css';
+// import { Download_Css } from '../WireframesUi/download-css';
declare var JsBarcode: any;
@Component({
selector: 'app-Design_lbrary',
@@ -79,11 +81,13 @@ export class Design_lbraryComponent implements OnInit {
htmljson: [null],
css: [null],
- templatetype:[null],
- uitype:[null],
+ templatetype: [null],
+ uitype: [null],
javacode: [null],
typerender: [null],
techstack: [null],
+ html: [null],
+
@@ -352,12 +356,16 @@ export class Design_lbraryComponent implements OnInit {
// this.modalHtmlPreview = true;
// });
// }
-
openHtmlPreview(id: number): void {
console.log('preview html start..');
this.siteTreeService.generateHtmlwithcss(id).subscribe((response: any) => {
const bodyContent = response.msg || '
Empty
'; // fallback
+
+ // Store raw content for download/copy
+ const rawHtmlContent = bodyContent;
+
+ // Full HTML with styles and controls
const fullHtml = `
@@ -366,38 +374,204 @@ export class Design_lbraryComponent implements OnInit {
HTML Preview
- ${bodyContent}
+
+ Download HTML
+ Copy to Clipboard
+ View Source
+
+
+
Copied to clipboard!
+
+
+ ${bodyContent}
+
+
+
+
+