ngx-rs-ant 0.0.2
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 +27 -0
- package/alert/alert.component.d.ts +14 -0
- package/alert/alert.module.d.ts +8 -0
- package/esm2020/alert/alert.component.mjs +28 -0
- package/esm2020/alert/alert.module.mjs +26 -0
- package/esm2020/ngx-rs-ant.mjs +5 -0
- package/esm2020/public-api.mjs +6 -0
- package/fesm2015/ngx-rs-ant.mjs +62 -0
- package/fesm2015/ngx-rs-ant.mjs.map +1 -0
- package/fesm2020/ngx-rs-ant.mjs +62 -0
- package/fesm2020/ngx-rs-ant.mjs.map +1 -0
- package/ngx-rs-ant.d.ts +5 -0
- package/package.json +37 -0
- package/public-api.d.ts +2 -0
- package/rs-ant.scss +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# RsAnt
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project rs-ant` to generate a new component. You can also
|
|
8
|
+
use `ng generate directive|pipe|service|class|guard|interface|enum|module --project rs-ant`.
|
|
9
|
+
> Note: Don't forget to add `--project rs-ant` or else it will be added to the default project in your `angular.json`
|
|
10
|
+
> file.
|
|
11
|
+
|
|
12
|
+
## Build
|
|
13
|
+
|
|
14
|
+
Run `ng build rs-ant` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
15
|
+
|
|
16
|
+
## Publishing
|
|
17
|
+
|
|
18
|
+
After building your library with `ng build rs-ant`, go to the dist folder `cd dist/rs-ant` and run `npm publish`.
|
|
19
|
+
|
|
20
|
+
## Running unit tests
|
|
21
|
+
|
|
22
|
+
Run `ng test rs-ant` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
23
|
+
|
|
24
|
+
## Further help
|
|
25
|
+
|
|
26
|
+
To get more help on the Angular CLI use `ng help` or go check out
|
|
27
|
+
the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AlertType } from 'ng-devui/alert/alert.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AlertComponent implements OnInit {
|
|
5
|
+
type: AlertType;
|
|
6
|
+
message?: string;
|
|
7
|
+
dismissTime: number;
|
|
8
|
+
closed: EventEmitter<void>;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
onClose($event: any): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "rs-alert", never, { "type": "type"; "message": "message"; }, { "closed": "closed"; }, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./alert.component";
|
|
3
|
+
import * as i2 from "ng-devui";
|
|
4
|
+
export declare class AlertModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, [typeof i1.AlertComponent], [typeof i2.AlertModule], [typeof i1.AlertComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "ng-devui";
|
|
4
|
+
export class AlertComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.type = 'info';
|
|
7
|
+
this.dismissTime = 500000;
|
|
8
|
+
this.closed = new EventEmitter();
|
|
9
|
+
}
|
|
10
|
+
ngOnInit() {
|
|
11
|
+
}
|
|
12
|
+
onClose($event) {
|
|
13
|
+
this.closed.emit($event);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
AlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
AlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AlertComponent, selector: "rs-alert", inputs: { type: "type", message: "message" }, outputs: { closed: "closed" }, ngImport: i0, template: "<d-alert [type]=\"type\" [dismissTime]=\"dismissTime\" [closeable]=\"true\"\n (closeEvent)=\"onClose($event)\">{{message}}</d-alert>\n", styles: [""], components: [{ type: i1.AlertComponent, selector: "d-alert", inputs: ["type", "cssClass", "closeable", "content", "showIcon", "dismissTime"], outputs: ["closeEvent"] }] });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: 'rs-alert', template: "<d-alert [type]=\"type\" [dismissTime]=\"dismissTime\" [closeable]=\"true\"\n (closeEvent)=\"onClose($event)\">{{message}}</d-alert>\n", styles: [""] }]
|
|
21
|
+
}], ctorParameters: function () { return []; }, propDecorators: { type: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], message: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], closed: [{
|
|
26
|
+
type: Output
|
|
27
|
+
}] } });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvcnMtYW50L3NyYy9hbGVydC9hbGVydC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wcm9qZWN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FsZXJ0Q29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcbiAgQElucHV0KCkgdHlwZTogQWxlcnRUeXBlID0gJ2luZm8nO1xuICBASW5wdXQoKSBtZXNzYWdlPzogc3RyaW5nO1xuICBkaXNtaXNzVGltZTogbnVtYmVyID0gNTAwMDAwO1xuXG4gIEBPdXRwdXQoKSBjbG9zZWQgPSBuZXcgRXZlbnRFbWl0dGVyPHZvaWQ+KCk7XG5cbiAgY29uc3RydWN0b3IoKSB7XG4gIH1cblxuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgfVxuXG4gIG9uQ2xvc2UoJGV2ZW50OiBhbnkpIHtcbiAgICB0aGlzLmNsb3NlZC5lbWl0KCRldmVudCk7XG4gIH1cbn1cbiIsIjxkLWFsZXJ0IFt0eXBlXT1cInR5cGVcIiBbZGlzbWlzc1RpbWVdPVwiZGlzbWlzc1RpbWVcIiBbY2xvc2VhYmxlXT1cInRydWVcIlxuICAgICAgICAgKGNsb3NlRXZlbnQpPVwib25DbG9zZSgkZXZlbnQpXCI+e3ttZXNzYWdlfX08L2QtYWxlcnQ+XG4iXX0=
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { AlertComponent } from './alert.component';
|
|
3
|
+
import { AlertModule as DevUI_AlertModule } from 'ng-devui';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class AlertModule {
|
|
6
|
+
}
|
|
7
|
+
AlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
AlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, declarations: [AlertComponent], imports: [DevUI_AlertModule], exports: [AlertComponent] });
|
|
9
|
+
AlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, imports: [[
|
|
10
|
+
DevUI_AlertModule
|
|
11
|
+
]] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [
|
|
16
|
+
AlertComponent
|
|
17
|
+
],
|
|
18
|
+
imports: [
|
|
19
|
+
DevUI_AlertModule
|
|
20
|
+
],
|
|
21
|
+
exports: [
|
|
22
|
+
AlertComponent
|
|
23
|
+
]
|
|
24
|
+
}]
|
|
25
|
+
}] });
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvcnMtYW50L3NyYy9hbGVydC9hbGVydC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFDLFdBQVcsSUFBSSxpQkFBaUIsRUFBQyxNQUFNLFVBQVUsQ0FBQzs7QUFhMUQsTUFBTSxPQUFPLFdBQVc7O3lHQUFYLFdBQVc7MEdBQVgsV0FBVyxpQkFUcEIsY0FBYyxhQUdkLGlCQUFpQixhQUdqQixjQUFjOzBHQUdMLFdBQVcsWUFQYjtZQUNQLGlCQUFpQjtTQUNsQjs0RkFLVSxXQUFXO2tCQVh2QixRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRTt3QkFDWixjQUFjO3FCQUNmO29CQUNELE9BQU8sRUFBRTt3QkFDUCxpQkFBaUI7cUJBQ2xCO29CQUNELE9BQU8sRUFBRTt3QkFDUCxjQUFjO3FCQUNmO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge0FsZXJ0Q29tcG9uZW50fSBmcm9tICcuL2FsZXJ0LmNvbXBvbmVudCc7XG5pbXBvcnQge0FsZXJ0TW9kdWxlIGFzIERldlVJX0FsZXJ0TW9kdWxlfSBmcm9tICduZy1kZXZ1aSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIEFsZXJ0Q29tcG9uZW50XG4gIF0sXG4gIGltcG9ydHM6IFtcbiAgICBEZXZVSV9BbGVydE1vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgQWxlcnRDb21wb25lbnRcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBBbGVydE1vZHVsZSB7XG59XG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXJzLWFudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3JzLWFudC9zcmMvbmd4LXJzLWFudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of rs-ant
|
|
3
|
+
*/
|
|
4
|
+
export * from './alert/alert.component';
|
|
5
|
+
export * from './alert/alert.module';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3JzLWFudC9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgcnMtYW50XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9hbGVydC9hbGVydC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9hbGVydC9hbGVydC5tb2R1bGUnO1xuIl19
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from 'ng-devui';
|
|
4
|
+
import { AlertModule as AlertModule$1 } from 'ng-devui';
|
|
5
|
+
|
|
6
|
+
class AlertComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.type = 'info';
|
|
9
|
+
this.dismissTime = 500000;
|
|
10
|
+
this.closed = new EventEmitter();
|
|
11
|
+
}
|
|
12
|
+
ngOnInit() {
|
|
13
|
+
}
|
|
14
|
+
onClose($event) {
|
|
15
|
+
this.closed.emit($event);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
AlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
AlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AlertComponent, selector: "rs-alert", inputs: { type: "type", message: "message" }, outputs: { closed: "closed" }, ngImport: i0, template: "<d-alert [type]=\"type\" [dismissTime]=\"dismissTime\" [closeable]=\"true\"\n (closeEvent)=\"onClose($event)\">{{message}}</d-alert>\n", styles: [""], components: [{ type: i1.AlertComponent, selector: "d-alert", inputs: ["type", "cssClass", "closeable", "content", "showIcon", "dismissTime"], outputs: ["closeEvent"] }] });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'rs-alert', template: "<d-alert [type]=\"type\" [dismissTime]=\"dismissTime\" [closeable]=\"true\"\n (closeEvent)=\"onClose($event)\">{{message}}</d-alert>\n", styles: [""] }]
|
|
23
|
+
}], ctorParameters: function () { return []; }, propDecorators: { type: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], message: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], closed: [{
|
|
28
|
+
type: Output
|
|
29
|
+
}] } });
|
|
30
|
+
|
|
31
|
+
class AlertModule {
|
|
32
|
+
}
|
|
33
|
+
AlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
AlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, declarations: [AlertComponent], imports: [AlertModule$1], exports: [AlertComponent] });
|
|
35
|
+
AlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, imports: [[
|
|
36
|
+
AlertModule$1
|
|
37
|
+
]] });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, decorators: [{
|
|
39
|
+
type: NgModule,
|
|
40
|
+
args: [{
|
|
41
|
+
declarations: [
|
|
42
|
+
AlertComponent
|
|
43
|
+
],
|
|
44
|
+
imports: [
|
|
45
|
+
AlertModule$1
|
|
46
|
+
],
|
|
47
|
+
exports: [
|
|
48
|
+
AlertComponent
|
|
49
|
+
]
|
|
50
|
+
}]
|
|
51
|
+
}] });
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* Public API Surface of rs-ant
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Generated bundle index. Do not edit.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
export { AlertComponent, AlertModule };
|
|
62
|
+
//# sourceMappingURL=ngx-rs-ant.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-rs-ant.mjs","sources":["../../../projects/rs-ant/src/alert/alert.component.ts","../../../projects/rs-ant/src/alert/alert.component.html","../../../projects/rs-ant/src/alert/alert.module.ts","../../../projects/rs-ant/src/public-api.ts","../../../projects/rs-ant/src/ngx-rs-ant.ts"],"sourcesContent":["import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\nimport {AlertType} from 'ng-devui/alert/alert.types';\n\n@Component({\n selector: 'rs-alert',\n templateUrl: './alert.component.html',\n styleUrls: ['./alert.component.scss']\n})\nexport class AlertComponent implements OnInit {\n @Input() type: AlertType = 'info';\n @Input() message?: string;\n dismissTime: number = 500000;\n\n @Output() closed = new EventEmitter<void>();\n\n constructor() {\n }\n\n ngOnInit(): void {\n }\n\n onClose($event: any) {\n this.closed.emit($event);\n }\n}\n","<d-alert [type]=\"type\" [dismissTime]=\"dismissTime\" [closeable]=\"true\"\n (closeEvent)=\"onClose($event)\">{{message}}</d-alert>\n","import {NgModule} from '@angular/core';\nimport {AlertComponent} from './alert.component';\nimport {AlertModule as DevUI_AlertModule} from 'ng-devui';\n\n@NgModule({\n declarations: [\n AlertComponent\n ],\n imports: [\n DevUI_AlertModule\n ],\n exports: [\n AlertComponent\n ]\n})\nexport class AlertModule {\n}\n","/*\n * Public API Surface of rs-ant\n */\n\nexport * from './alert/alert.component';\nexport * from './alert/alert.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DevUI_AlertModule"],"mappings":";;;;;MAQa,cAAc,CAAA;AAOzB,IAAA,WAAA,GAAA;AANS,QAAA,IAAI,CAAA,IAAA,GAAc,MAAM,CAAC;AAElC,QAAA,IAAW,CAAA,WAAA,GAAW,MAAM,CAAC;AAEnB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAQ,CAAC;KAG3C;IAED,QAAQ,GAAA;KACP;AAED,IAAA,OAAO,CAAC,MAAW,EAAA;AACjB,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC1B;;4GAfU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,6HCR3B,gJAEA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,WAAA,EAAA,SAAA,EAAA,UAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;4FDMa,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,SAAS;+BACE,UAAU,EAAA,QAAA,EAAA,gJAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;0EAKX,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBAGI,MAAM,EAAA,CAAA;sBAAf,MAAM;;;MEEI,WAAW,CAAA;;yGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAX,WAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,EATpB,YAAA,EAAA,CAAA,cAAc,CAGd,EAAA,OAAA,EAAA,CAAAA,aAAiB,aAGjB,cAAc,CAAA,EAAA,CAAA,CAAA;AAGL,WAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,EAPb,OAAA,EAAA,CAAA;YACPA,aAAiB;SAClB,CAAA,EAAA,CAAA,CAAA;4FAKU,WAAW,EAAA,UAAA,EAAA,CAAA;kBAXvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACPA,aAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,cAAc;AACf,qBAAA;iBACF,CAAA;;;ACdD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from 'ng-devui';
|
|
4
|
+
import { AlertModule as AlertModule$1 } from 'ng-devui';
|
|
5
|
+
|
|
6
|
+
class AlertComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.type = 'info';
|
|
9
|
+
this.dismissTime = 500000;
|
|
10
|
+
this.closed = new EventEmitter();
|
|
11
|
+
}
|
|
12
|
+
ngOnInit() {
|
|
13
|
+
}
|
|
14
|
+
onClose($event) {
|
|
15
|
+
this.closed.emit($event);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
AlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
AlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AlertComponent, selector: "rs-alert", inputs: { type: "type", message: "message" }, outputs: { closed: "closed" }, ngImport: i0, template: "<d-alert [type]=\"type\" [dismissTime]=\"dismissTime\" [closeable]=\"true\"\n (closeEvent)=\"onClose($event)\">{{message}}</d-alert>\n", styles: [""], components: [{ type: i1.AlertComponent, selector: "d-alert", inputs: ["type", "cssClass", "closeable", "content", "showIcon", "dismissTime"], outputs: ["closeEvent"] }] });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'rs-alert', template: "<d-alert [type]=\"type\" [dismissTime]=\"dismissTime\" [closeable]=\"true\"\n (closeEvent)=\"onClose($event)\">{{message}}</d-alert>\n", styles: [""] }]
|
|
23
|
+
}], ctorParameters: function () { return []; }, propDecorators: { type: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], message: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], closed: [{
|
|
28
|
+
type: Output
|
|
29
|
+
}] } });
|
|
30
|
+
|
|
31
|
+
class AlertModule {
|
|
32
|
+
}
|
|
33
|
+
AlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
AlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, declarations: [AlertComponent], imports: [AlertModule$1], exports: [AlertComponent] });
|
|
35
|
+
AlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, imports: [[
|
|
36
|
+
AlertModule$1
|
|
37
|
+
]] });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AlertModule, decorators: [{
|
|
39
|
+
type: NgModule,
|
|
40
|
+
args: [{
|
|
41
|
+
declarations: [
|
|
42
|
+
AlertComponent
|
|
43
|
+
],
|
|
44
|
+
imports: [
|
|
45
|
+
AlertModule$1
|
|
46
|
+
],
|
|
47
|
+
exports: [
|
|
48
|
+
AlertComponent
|
|
49
|
+
]
|
|
50
|
+
}]
|
|
51
|
+
}] });
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* Public API Surface of rs-ant
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Generated bundle index. Do not edit.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
export { AlertComponent, AlertModule };
|
|
62
|
+
//# sourceMappingURL=ngx-rs-ant.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-rs-ant.mjs","sources":["../../../projects/rs-ant/src/alert/alert.component.ts","../../../projects/rs-ant/src/alert/alert.component.html","../../../projects/rs-ant/src/alert/alert.module.ts","../../../projects/rs-ant/src/public-api.ts","../../../projects/rs-ant/src/ngx-rs-ant.ts"],"sourcesContent":["import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\nimport {AlertType} from 'ng-devui/alert/alert.types';\n\n@Component({\n selector: 'rs-alert',\n templateUrl: './alert.component.html',\n styleUrls: ['./alert.component.scss']\n})\nexport class AlertComponent implements OnInit {\n @Input() type: AlertType = 'info';\n @Input() message?: string;\n dismissTime: number = 500000;\n\n @Output() closed = new EventEmitter<void>();\n\n constructor() {\n }\n\n ngOnInit(): void {\n }\n\n onClose($event: any) {\n this.closed.emit($event);\n }\n}\n","<d-alert [type]=\"type\" [dismissTime]=\"dismissTime\" [closeable]=\"true\"\n (closeEvent)=\"onClose($event)\">{{message}}</d-alert>\n","import {NgModule} from '@angular/core';\nimport {AlertComponent} from './alert.component';\nimport {AlertModule as DevUI_AlertModule} from 'ng-devui';\n\n@NgModule({\n declarations: [\n AlertComponent\n ],\n imports: [\n DevUI_AlertModule\n ],\n exports: [\n AlertComponent\n ]\n})\nexport class AlertModule {\n}\n","/*\n * Public API Surface of rs-ant\n */\n\nexport * from './alert/alert.component';\nexport * from './alert/alert.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DevUI_AlertModule"],"mappings":";;;;;MAQa,cAAc,CAAA;AAOzB,IAAA,WAAA,GAAA;QANS,IAAI,CAAA,IAAA,GAAc,MAAM,CAAC;QAElC,IAAW,CAAA,WAAA,GAAW,MAAM,CAAC;AAEnB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAQ,CAAC;KAG3C;IAED,QAAQ,GAAA;KACP;AAED,IAAA,OAAO,CAAC,MAAW,EAAA;AACjB,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC1B;;4GAfU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,6HCR3B,gJAEA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,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A,aAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,cAAc;AACf,qBAAA;AACF,iBAAA,CAAA;;;ACdD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/ngx-rs-ant.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ngx-rs-ant",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "RsAnt components based on Angular and DevUI",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./rs-ant.scss": {
|
|
8
|
+
"style": "./rs-ant.scss"
|
|
9
|
+
},
|
|
10
|
+
"./package.json": {
|
|
11
|
+
"default": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./ngx-rs-ant.d.ts",
|
|
15
|
+
"esm2020": "./esm2020/ngx-rs-ant.mjs",
|
|
16
|
+
"es2020": "./fesm2020/ngx-rs-ant.mjs",
|
|
17
|
+
"es2015": "./fesm2015/ngx-rs-ant.mjs",
|
|
18
|
+
"node": "./fesm2015/ngx-rs-ant.mjs",
|
|
19
|
+
"default": "./fesm2020/ngx-rs-ant.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"tslib": "^2.3.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@angular/common": "^13.3.0",
|
|
27
|
+
"@angular/core": "^13.3.0",
|
|
28
|
+
"ng-devui": "^13.3.0"
|
|
29
|
+
},
|
|
30
|
+
"module": "fesm2015/ngx-rs-ant.mjs",
|
|
31
|
+
"es2020": "fesm2020/ngx-rs-ant.mjs",
|
|
32
|
+
"esm2020": "esm2020/ngx-rs-ant.mjs",
|
|
33
|
+
"fesm2020": "fesm2020/ngx-rs-ant.mjs",
|
|
34
|
+
"fesm2015": "fesm2015/ngx-rs-ant.mjs",
|
|
35
|
+
"typings": "ngx-rs-ant.d.ts",
|
|
36
|
+
"sideEffects": false
|
|
37
|
+
}
|
package/public-api.d.ts
ADDED
package/rs-ant.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "ng-devui/devui.min.css";
|