brainloper-ui 14.0.3 → 14.0.5
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 +36 -2
- package/esm2020/src/app/modules/brainloper-ui/components/bread-crumb/bread-crumb.component.mjs +3 -4
- package/fesm2015/brainloper-ui.mjs +2 -2
- package/fesm2015/brainloper-ui.mjs.map +1 -1
- package/fesm2020/brainloper-ui.mjs +2 -2
- package/fesm2020/brainloper-ui.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
## Steps to Publish the Library
|
|
2
2
|
|
|
3
|
-
1.
|
|
3
|
+
1. **Run the publish script**:
|
|
4
|
+
- Open a terminal in the root directory of the project.
|
|
5
|
+
- Execute the following command:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm run publish
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Steps to Test the Library Locally
|
|
12
|
+
|
|
13
|
+
To test the library locally without publishing it, you can use `npm pack`. Follow these steps:
|
|
14
|
+
|
|
15
|
+
1. **Package the library**:
|
|
16
|
+
- Open a terminal in the root directory of the library.
|
|
17
|
+
- Execute the following commands:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm run packagr
|
|
21
|
+
npm pack ./dist/
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
This will generate a `.tgz` file in the root proyect
|
|
25
|
+
|
|
26
|
+
2. **Install the package in your project**:
|
|
27
|
+
- Copy the generated `.tgz` file to the root directory of your project.
|
|
28
|
+
- Open a terminal in the root directory of your project.
|
|
29
|
+
- Execute the following command:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm install ../brainloper-ui/brainloper-ui-14.0.4.tgz --force
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Replace [`../brainloper-ui/brainloper-ui-14.0.4.tgz`] with the correct path to the `.tgz` file.
|
|
36
|
+
|
|
37
|
+
By following these steps, you can test your library locally without needing to publish it to npm.
|
package/esm2020/src/app/modules/brainloper-ui/components/bread-crumb/bread-crumb.component.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "@angular/router";
|
|
4
4
|
import * as i2 from "@angular/common";
|
|
5
|
-
import * as i3 from "@ng-bootstrap/ng-bootstrap";
|
|
6
5
|
export class BreadCrumbComponent {
|
|
7
6
|
constructor(router) {
|
|
8
7
|
this.router = router;
|
|
@@ -18,13 +17,13 @@ export class BreadCrumbComponent {
|
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
BreadCrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BreadCrumbComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
-
BreadCrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: BreadCrumbComponent, selector: "app-bread-crumb", inputs: { menu: "menu" }, outputs: { selectRouter: "selectRouter" }, ngImport: i0, template: "<
|
|
20
|
+
BreadCrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: BreadCrumbComponent, selector: "app-bread-crumb", inputs: { menu: "menu" }, outputs: { selectRouter: "selectRouter" }, ngImport: i0, template: "<ul class=\"nav nav-tabs\">\r\n <li *ngFor=\"let m of menu\" class=\"nav-item\">\r\n <a [class]=\"m.current ? 'nav-link active' : 'nav-link'\" aria-current=\"page\" href=\"#\" (click)=\"handlerRouter(m)\">{{m.name}}</a>\r\n </li>\r\n</ul>\r\n", styles: [".breadcrumb{background-color:#b7b9bb!important}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
22
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BreadCrumbComponent, decorators: [{
|
|
23
22
|
type: Component,
|
|
24
|
-
args: [{ selector: 'app-bread-crumb', template: "<
|
|
23
|
+
args: [{ selector: 'app-bread-crumb', template: "<ul class=\"nav nav-tabs\">\r\n <li *ngFor=\"let m of menu\" class=\"nav-item\">\r\n <a [class]=\"m.current ? 'nav-link active' : 'nav-link'\" aria-current=\"page\" href=\"#\" (click)=\"handlerRouter(m)\">{{m.name}}</a>\r\n </li>\r\n</ul>\r\n", styles: [".breadcrumb{background-color:#b7b9bb!important}\n"] }]
|
|
25
24
|
}], ctorParameters: function () { return [{ type: i1.Router }]; }, propDecorators: { menu: [{
|
|
26
25
|
type: Input
|
|
27
26
|
}], selectRouter: [{
|
|
28
27
|
type: Output
|
|
29
28
|
}] } });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWQtY3J1bWIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9tb2R1bGVzL2JyYWlubG9wZXItdWkvY29tcG9uZW50cy9icmVhZC1jcnVtYi9icmVhZC1jcnVtYi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvYnJhaW5sb3Blci11aS9jb21wb25lbnRzL2JyZWFkLWNydW1iL2JyZWFkLWNydW1iLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFRL0UsTUFBTSxPQUFPL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ZW50cyBPbkluaXQge1xyXG4gIEBJbnB1dCgpIG1lbnU6QXJyYXk8YW55PiA9IFtdXHJcbiAgQE91dHB1dCgpIHNlbGVjdFJvdXRlciA9IG5ldyBFdmVudEVtaXR0ZXI8YW55PigpO1xyXG5cclxuICBjb25zdHJ1Y3RvcihcclxuICAgIHB1YmxpYyByb3V0ZXIgOiBSb3V0ZXJcclxuICApIHsgfVxyXG5cclxuICBuZ09uSW5pdCgpOiB2b2lkIHtcclxuICB9XHJcblxyXG4gIHB1YmxpYyBoYW5kbGVyUm91dGVyKG1lbnU6YW55KXtcclxuICAgIGlmKG1lbnUucm91dGVyICE9IG51bGwpIHRoaXMucm91dGVyLm5hdmlnYXRlKFttZW51LnJvdXRlcl0pXHJcbiAgICB0aGlzLnNlbGVjdFJvdXRlci5lbWl0KG1lbnUpXHJcbiAgfVxyXG5cclxufVxyXG5cclxuXHJcblxyXG4iLCI8dWwgY2xhc3M9XCJuYXYgbmF2LXRhYnNcIj5cclxuICA8bGkgKm5nRm9yPVwibGV0IG0gb2YgbWVudVwiIGNsYXNzPVwibmF2LWl0ZW1cIj5cclxuICAgIDxhIFtjbGFzc109XCJtLmN1cnJlbnQgPyAnbmF2LWxpbmsgYWN0aXZlJyA6ICduYXYtbGluaydcIiBhcmlhLWN1cnJlbnQ9XCJwYWdlXCIgaHJlZj1cIiNcIiAoY2xpY2spPVwiaGFuZGxlclJvdXRlcihtKVwiPnt7bS5uYW1lfX08L2E+XHJcbiAgPC9saT5cclxuPC91bD5cclxuIl19
|
|
@@ -958,10 +958,10 @@ class BreadCrumbComponent {
|
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
BreadCrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BreadCrumbComponent, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
961
|
-
BreadCrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: BreadCrumbComponent, selector: "app-bread-crumb", inputs: { menu: "menu" }, outputs: { selectRouter: "selectRouter" }, ngImport: i0, template: "<
|
|
961
|
+
BreadCrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: BreadCrumbComponent, selector: "app-bread-crumb", inputs: { menu: "menu" }, outputs: { selectRouter: "selectRouter" }, ngImport: i0, template: "<ul class=\"nav nav-tabs\">\r\n <li *ngFor=\"let m of menu\" class=\"nav-item\">\r\n <a [class]=\"m.current ? 'nav-link active' : 'nav-link'\" aria-current=\"page\" href=\"#\" (click)=\"handlerRouter(m)\">{{m.name}}</a>\r\n </li>\r\n</ul>\r\n", styles: [".breadcrumb{background-color:#b7b9bb!important}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
962
962
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BreadCrumbComponent, decorators: [{
|
|
963
963
|
type: Component,
|
|
964
|
-
args: [{ selector: 'app-bread-crumb', template: "<
|
|
964
|
+
args: [{ selector: 'app-bread-crumb', template: "<ul class=\"nav nav-tabs\">\r\n <li *ngFor=\"let m of menu\" class=\"nav-item\">\r\n <a [class]=\"m.current ? 'nav-link active' : 'nav-link'\" aria-current=\"page\" href=\"#\" (click)=\"handlerRouter(m)\">{{m.name}}</a>\r\n </li>\r\n</ul>\r\n", styles: [".breadcrumb{background-color:#b7b9bb!important}\n"] }]
|
|
965
965
|
}], ctorParameters: function () { return [{ type: i1$3.Router }]; }, propDecorators: { menu: [{
|
|
966
966
|
type: Input
|
|
967
967
|
}], selectRouter: [{
|