@neeyamoui/my-component-lib
Version:
A reusable Angular component library with common UI elements like buttons.
1 lines • 3.88 kB
Source Map (JSON)
{"version":3,"file":"neeyamoui-my-component-lib.mjs","sources":["../../../projects/my-component-lib/src/lib/my-component-lib.ts","../../../projects/my-component-lib/src/lib/my-button/my-button.ts","../../../projects/my-component-lib/src/lib/my-button/my-button.html","../../../projects/my-component-lib/src/public-api.ts","../../../projects/my-component-lib/src/neeyamoui-my-component-lib.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-my-component-lib',\r\n imports: [],\r\n template: `\r\n <p>\r\n my-component-lib works!\r\n </p>\r\n `,\r\n styles: ``\r\n})\r\nexport class MyComponentLib {\r\n\r\n}\r\n","// projects/my-component-library/src/lib/my-button/my-button.ts\r\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\r\nimport { CommonModule } from '@angular/common'; // Needed for ngIf, ngFor, etc. if used in template\r\nimport { MatIconModule } from '@angular/material/icon'; // Import MatIconModule\r\n@Component({\r\n selector: 'lib-my-button', // Prefix 'lib-' is common for library components\r\n standalone: true, // This component is standalone\r\n imports: [CommonModule,MatIconModule], // Import CommonModule for directives like ngIf, ngFor if needed\r\n templateUrl: './my-button.html', // Updated to match CLI output\r\n styleUrl: './my-button.css' // Updated to match CLI output\r\n})\r\nexport class MyButton { // Updated class name to match CLI output\r\n @Input() backgroundColor: string = 'orange'; // Default blue\r\n @Output() onClick = new EventEmitter<void>();\r\n\r\n constructor() { }\r\n}\r\n","<div class=\"col s12 my-library_emptyFlex\">\r\n <mat-icon> no_sim</mat-icon>\r\n <div class=\"col s12 my-library_noDataText center\">\r\n <ng-content select=\".main-content\"></ng-content>\r\n </div>\r\n <div class=\"col s12 my-library_subNoData center\">\r\n <ng-content select=\".sub-content\"></ng-content>\r\n </div>\r\n</div>","/*\r\n * Public API Surface of my-component-lib\r\n */\r\n\r\nexport * from './lib/my-component-lib'; // Exports the default component and module/service\r\nexport * from './lib/my-button/my-button'; // Export your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