@winexist/ngp 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # components
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test components` to execute the unit tests.
@@ -0,0 +1,23 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Component } from '@angular/core';
3
+
4
+ class EmptyComponent {
5
+ title = input('Section is empty.', ...(ngDevMode ? [{ debugName: "title" }] : []));
6
+ message = input('No data available.', ...(ngDevMode ? [{ debugName: "message" }] : []));
7
+ imgSrc = input(...(ngDevMode ? [undefined, { debugName: "imgSrc" }] : []));
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: EmptyComponent, isStandalone: true, selector: "ngp-empty", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, imgSrc: { classPropertyName: "imgSrc", publicName: "imgSrc", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"w-full flex justify-center items-center p-5 h-full\">\n <div class=\"flex items-center gap-3\">\n @if (imgSrc()) {\n <img alt=\"Empty\" [src]=\"imgSrc()\" class=\"w-20\" />\n } @else {\n <div class=\"rounded-md! p-5 bg-slate-100! mb-6\">\n <span class=\"material-icons text-gray-400! text-7xl!\"> search_off </span>\n </div>\n }\n\n <div class=\"flex flex-col\">\n <span class=\"text-gray-900! text-2xl! font-bold!\">{{ title() }}</span>\n @if (message()) {\n <span class=\"text-gray-400! text-base!\">{{ message() }}</span>\n }\n </div>\n </div>\n</div>", styles: [""] });
10
+ }
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EmptyComponent, decorators: [{
12
+ type: Component,
13
+ args: [{ selector: 'ngp-empty', imports: [], template: "<div class=\"w-full flex justify-center items-center p-5 h-full\">\n <div class=\"flex items-center gap-3\">\n @if (imgSrc()) {\n <img alt=\"Empty\" [src]=\"imgSrc()\" class=\"w-20\" />\n } @else {\n <div class=\"rounded-md! p-5 bg-slate-100! mb-6\">\n <span class=\"material-icons text-gray-400! text-7xl!\"> search_off </span>\n </div>\n }\n\n <div class=\"flex flex-col\">\n <span class=\"text-gray-900! text-2xl! font-bold!\">{{ title() }}</span>\n @if (message()) {\n <span class=\"text-gray-400! text-base!\">{{ message() }}</span>\n }\n </div>\n </div>\n</div>" }]
14
+ }], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], imgSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "imgSrc", required: false }] }] } });
15
+
16
+ // export * from './lib/components/components';
17
+
18
+ /**
19
+ * Generated bundle index. Do not edit.
20
+ */
21
+
22
+ export { EmptyComponent };
23
+ //# sourceMappingURL=winexist-ngp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"winexist-ngp.mjs","sources":["../../../packages/src/lib/components/empty/empty.component.ts","../../../packages/src/lib/components/empty/empty.component.html","../../../packages/src/index.ts","../../../packages/src/winexist-ngp.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\n@Component({\n\tselector: 'ngp-empty',\n\timports: [],\n\ttemplateUrl: './empty.component.html',\n\tstyleUrl: './empty.component.css'\n})\nexport class EmptyComponent {\n\ttitle = input<string>('Section is empty.');\n\tmessage = input<string>('No data available.');\n\timgSrc = input<string>();\n\n}\n","<div class=\"w-full flex justify-center items-center p-5 h-full\">\n <div class=\"flex items-center gap-3\">\n @if (imgSrc()) {\n <img alt=\"Empty\" [src]=\"imgSrc()\" class=\"w-20\" />\n } @else {\n <div class=\"rounded-md! p-5 bg-slate-100! mb-6\">\n <span class=\"material-icons text-gray-400! text-7xl!\"> search_off </span>\n </div>\n }\n\n <div class=\"flex flex-col\">\n <span class=\"text-gray-900! text-2xl! font-bold!\">{{ title() }}</span>\n @if (message()) {\n <span class=\"text-gray-400! text-base!\">{{ message() }}</span>\n }\n </div>\n </div>\n</div>","// export * from './lib/components/components';\nexport * from './lib/components/empty/empty.component'","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,cAAc,CAAA;AAC1B,IAAA,KAAK,GAAG,KAAK,CAAS,mBAAmB,iDAAC;AAC1C,IAAA,OAAO,GAAG,KAAK,CAAS,oBAAoB,mDAAC;IAC7C,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;wGAHZ,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,kcCR3B,4mBAiBM,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FDTO,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,WACZ,EAAE,EAAA,QAAA,EAAA,4mBAAA,EAAA;;;AEJZ;;ACAA;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ declare class EmptyComponent {
4
+ title: _angular_core.InputSignal<string>;
5
+ message: _angular_core.InputSignal<string>;
6
+ imgSrc: _angular_core.InputSignal<string | undefined>;
7
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EmptyComponent, never>;
8
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EmptyComponent, "ngp-empty", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "imgSrc": { "alias": "imgSrc"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
10
+
11
+ export { EmptyComponent };
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@winexist/ngp",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^20.3.0",
6
+ "@angular/core": "^20.3.0"
7
+ },
8
+ "sideEffects": false,
9
+ "module": "fesm2022/winexist-ngp.mjs",
10
+ "typings": "index.d.ts",
11
+ "exports": {
12
+ "./package.json": {
13
+ "default": "./package.json"
14
+ },
15
+ ".": {
16
+ "types": "./index.d.ts",
17
+ "default": "./fesm2022/winexist-ngp.mjs"
18
+ }
19
+ },
20
+ "dependencies": {
21
+ "tslib": "^2.3.0"
22
+ }
23
+ }