kivio 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 +24 -0
- package/esm2022/kivio.mjs +5 -0
- package/esm2022/lib/kv-popup/kv-popup.component.mjs +27 -0
- package/esm2022/public-api.mjs +5 -0
- package/fesm2022/kivio.mjs +38 -0
- package/fesm2022/kivio.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/kv-popup/kv-popup.component.d.ts +11 -0
- package/package.json +25 -0
- package/public-api.d.ts +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Kivio
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project Kivio` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project Kivio`.
|
|
8
|
+
> Note: Don't forget to add `--project Kivio` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build Kivio` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build Kivio`, go to the dist folder `cd dist/kivio` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test Kivio` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2l2aW8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9raXZpby9zcmMva2l2aW8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class KvPopupComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.title = '';
|
|
7
|
+
this.description = '';
|
|
8
|
+
this.onAccept = new EventEmitter();
|
|
9
|
+
}
|
|
10
|
+
onAcceptSubmit() {
|
|
11
|
+
this.onAccept.emit();
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: KvPopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: KvPopupComponent, isStandalone: true, selector: "lib-kv-popup", inputs: { title: "title", description: "description" }, outputs: { onAccept: "onAccept" }, ngImport: i0, template: "<div class=\"popup-backdrop\">\r\n <div class=\"popup-container\">\r\n <h2>{{ title }}</h2>\r\n <p>{{ description }}</p>\r\n <button (click)=\"onAcceptSubmit()\">Aceptar</button>\r\n </div>\r\n</div>", styles: [".popup-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center}.popup-container{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 10px #0000001a;text-align:center}button{margin-top:15px;padding:10px 20px;border:none;background:#007bff;color:#fff;border-radius:5px;cursor:pointer}button:hover{background:#0056b3}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: KvPopupComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{ selector: 'lib-kv-popup', standalone: true, imports: [CommonModule], template: "<div class=\"popup-backdrop\">\r\n <div class=\"popup-container\">\r\n <h2>{{ title }}</h2>\r\n <p>{{ description }}</p>\r\n <button (click)=\"onAcceptSubmit()\">Aceptar</button>\r\n </div>\r\n</div>", styles: [".popup-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center}.popup-container{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 10px #0000001a;text-align:center}button{margin-top:15px;padding:10px 20px;border:none;background:#007bff;color:#fff;border-radius:5px;cursor:pointer}button:hover{background:#0056b3}\n"] }]
|
|
19
|
+
}], propDecorators: { title: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}], description: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], onAccept: [{
|
|
24
|
+
type: Output
|
|
25
|
+
}] } });
|
|
26
|
+
export const DESIGN_SYSTEM_COMPONENTS = [KvPopupComponent];
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3YtcG9wdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l2aW8vc3JjL2xpYi9rdi1wb3B1cC9rdi1wb3B1cC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXZpby9zc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//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2tpdmlvL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxtQ0FBbUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXHJcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBraXZpb1xyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2t2LXBvcHVwL2t2LXBvcHVwLmNvbXBvbmVudCc7Il19
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { EventEmitter, Component, Input, Output } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class KvPopupComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.title = '';
|
|
8
|
+
this.description = '';
|
|
9
|
+
this.onAccept = new EventEmitter();
|
|
10
|
+
}
|
|
11
|
+
onAcceptSubmit() {
|
|
12
|
+
this.onAccept.emit();
|
|
13
|
+
}
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: KvPopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: KvPopupComponent, isStandalone: true, selector: "lib-kv-popup", inputs: { title: "title", description: "description" }, outputs: { onAccept: "onAccept" }, ngImport: i0, template: "<div class=\"popup-backdrop\">\r\n <div class=\"popup-container\">\r\n <h2>{{ title }}</h2>\r\n <p>{{ description }}</p>\r\n <button (click)=\"onAcceptSubmit()\">Aceptar</button>\r\n </div>\r\n</div>", styles: [".popup-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center}.popup-container{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 10px #0000001a;text-align:center}button{margin-top:15px;padding:10px 20px;border:none;background:#007bff;color:#fff;border-radius:5px;cursor:pointer}button:hover{background:#0056b3}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
16
|
+
}
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: KvPopupComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{ selector: 'lib-kv-popup', standalone: true, imports: [CommonModule], template: "<div class=\"popup-backdrop\">\r\n <div class=\"popup-container\">\r\n <h2>{{ title }}</h2>\r\n <p>{{ description }}</p>\r\n <button (click)=\"onAcceptSubmit()\">Aceptar</button>\r\n </div>\r\n</div>", styles: [".popup-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center}.popup-container{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 10px #0000001a;text-align:center}button{margin-top:15px;padding:10px 20px;border:none;background:#007bff;color:#fff;border-radius:5px;cursor:pointer}button:hover{background:#0056b3}\n"] }]
|
|
20
|
+
}], propDecorators: { title: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}], description: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}], onAccept: [{
|
|
25
|
+
type: Output
|
|
26
|
+
}] } });
|
|
27
|
+
const DESIGN_SYSTEM_COMPONENTS = [KvPopupComponent];
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Public API Surface of kivio
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Generated bundle index. Do not edit.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
export { DESIGN_SYSTEM_COMPONENTS, KvPopupComponent };
|
|
38
|
+
//# sourceMappingURL=kivio.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kivio.mjs","sources":["../../../projects/kivio/src/lib/kv-popup/kv-popup.component.ts","../../../projects/kivio/src/lib/kv-popup/kv-popup.component.html","../../../projects/kivio/src/public-api.ts","../../../projects/kivio/src/kivio.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-kv-popup',\r\n standalone: true,\r\n imports: [CommonModule],\r\n templateUrl: './kv-popup.component.html',\r\n styleUrl: './kv-popup.component.scss'\r\n})\r\nexport class KvPopupComponent {\r\n\r\n @Input() title: string = '';\r\n @Input() description: string = '';\r\n @Output() onAccept: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n public onAcceptSubmit(): void {\r\n this.onAccept.emit();\r\n }\r\n\r\n}\r\n\r\nexport const DESIGN_SYSTEM_COMPONENTS = [KvPopupComponent];","<div class=\"popup-backdrop\">\r\n <div class=\"popup-container\">\r\n <h2>{{ title }}</h2>\r\n <p>{{ description }}</p>\r\n <button (click)=\"onAcceptSubmit()\">Aceptar</button>\r\n </div>\r\n</div>","/*\r\n * Public API Surface of kivio\r\n */\r\n\r\nexport * from './lib/kv-popup/kv-popup.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAUa,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;QASW,IAAK,CAAA,KAAA,GAAW,EAAE;QAClB,IAAW,CAAA,WAAA,GAAW,EAAE;AACvB,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ;AAMlE;IAJQ,cAAc,GAAA;AACnB,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;;+GAPX,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECV7B,oOAMM,EAAA,MAAA,EAAA,CAAA,yZAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDAM,YAAY,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAP5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EACZ,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,oOAAA,EAAA,MAAA,EAAA,CAAA,yZAAA,CAAA,EAAA;8BAMd,KAAK,EAAA,CAAA;sBAAb;gBACQ,WAAW,EAAA,CAAA;sBAAnB;gBACS,QAAQ,EAAA,CAAA;sBAAjB;;AAQU,MAAA,wBAAwB,GAAG,CAAC,gBAAgB;;AEtBzD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KvPopupComponent {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
onAccept: EventEmitter<void>;
|
|
7
|
+
onAcceptSubmit(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvPopupComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvPopupComponent, "lib-kv-popup", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, { "onAccept": "onAccept"; }, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
export declare const DESIGN_SYSTEM_COMPONENTS: (typeof KvPopupComponent)[];
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "kivio",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^17.3.0",
|
|
6
|
+
"@angular/core": "^17.3.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/kivio.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"esm2022": "./esm2022/kivio.mjs",
|
|
21
|
+
"esm": "./esm2022/kivio.mjs",
|
|
22
|
+
"default": "./fesm2022/kivio.mjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/kv-popup/kv-popup.component';
|