@cauca-911/material 21.0.1-beta.1 → 21.0.1-beta.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 +22 -3
- package/fesm2022/cauca-911-material.mjs +18 -10
- package/fesm2022/cauca-911-material.mjs.map +1 -1
- package/package.json +1 -1
- package/assets/i18n/cauca/en-material.json +0 -104
- package/assets/i18n/cauca/es-material.json +0 -104
- package/assets/i18n/cauca/fr-material.json +0 -106
- package/assets/images/loading.gif +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CaucaMaterial
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.6.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project cauca-material` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project cauca-material`.
|
|
8
|
+
> Note: Don't forget to add `--project cauca-material` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build cauca-material` 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 cauca-material`, go to the dist folder `cd dist/cauca-material` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test cauca-material` 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 README](https://github.com/angular/angular-cli/blob/master/README.md).
|
|
@@ -3411,7 +3411,7 @@ function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (
|
|
|
3411
3411
|
i0.ɵɵadvance();
|
|
3412
3412
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ctx_r0.baseCrumb()));
|
|
3413
3413
|
i0.ɵɵadvance(2);
|
|
3414
|
-
i0.ɵɵconditional(ctx_r0.breadcrumbLocation().length > 0 || ctx_r0.currentBreadcrumb() ? 3 : -1);
|
|
3414
|
+
i0.ɵɵconditional(ctx_r0.breadcrumbLocation().length > 0 || ctx_r0.currentBreadcrumb() && ctx_r0.currentBreadcrumb().trim() !== "" ? 3 : -1);
|
|
3415
3415
|
} }
|
|
3416
3416
|
function PageTitleComponent_Conditional_4_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
3417
3417
|
i0.ɵɵelementStart(0, "a", 5);
|
|
@@ -3460,24 +3460,32 @@ function PageTitleComponent_Conditional_4_For_3_Template(rf, ctx) { if (rf & 1)
|
|
|
3460
3460
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
3461
3461
|
i0.ɵɵconditional(location_r2.link ? 0 : location_r2.action ? 1 : 2);
|
|
3462
3462
|
i0.ɵɵadvance(3);
|
|
3463
|
-
i0.ɵɵconditional(!(ɵ$index_19_r4 === ɵ$count_19_r5 - 1) || ctx_r0.currentBreadcrumb() ? 3 : -1);
|
|
3463
|
+
i0.ɵɵconditional(!(ɵ$index_19_r4 === ɵ$count_19_r5 - 1) || ctx_r0.currentBreadcrumb() && ctx_r0.currentBreadcrumb().trim() !== "" ? 3 : -1);
|
|
3464
|
+
} }
|
|
3465
|
+
function PageTitleComponent_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
3466
|
+
i0.ɵɵelementStart(0, "span", 3);
|
|
3467
|
+
i0.ɵɵtext(1);
|
|
3468
|
+
i0.ɵɵpipe(2, "translate");
|
|
3469
|
+
i0.ɵɵelementEnd();
|
|
3470
|
+
} if (rf & 2) {
|
|
3471
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
3472
|
+
i0.ɵɵadvance();
|
|
3473
|
+
i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(2, 1, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
|
|
3464
3474
|
} }
|
|
3465
3475
|
function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
3466
3476
|
i0.ɵɵelementStart(0, "div", 2);
|
|
3467
3477
|
i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 4, 4);
|
|
3468
3478
|
i0.ɵɵrepeaterCreate(2, PageTitleComponent_Conditional_4_For_3_Template, 4, 2, null, null, i0.ɵɵrepeaterTrackByIdentity);
|
|
3469
|
-
i0.ɵɵ
|
|
3470
|
-
i0.ɵɵ
|
|
3471
|
-
i0.ɵɵpipe(6, "translate");
|
|
3472
|
-
i0.ɵɵelementEnd()();
|
|
3479
|
+
i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Conditional_4_Template, 3, 3, "span", 3);
|
|
3480
|
+
i0.ɵɵelementEnd();
|
|
3473
3481
|
} if (rf & 2) {
|
|
3474
3482
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
3475
3483
|
i0.ɵɵadvance();
|
|
3476
3484
|
i0.ɵɵconditional(ctx_r0.baseCrumb() ? 1 : -1);
|
|
3477
3485
|
i0.ɵɵadvance();
|
|
3478
3486
|
i0.ɵɵrepeater(ctx_r0.breadcrumbLocation());
|
|
3479
|
-
i0.ɵɵadvance(
|
|
3480
|
-
i0.ɵɵ
|
|
3487
|
+
i0.ɵɵadvance(2);
|
|
3488
|
+
i0.ɵɵconditional(ctx_r0.currentBreadcrumb() && ctx_r0.currentBreadcrumb().trim() !== "" ? 4 : -1);
|
|
3481
3489
|
} }
|
|
3482
3490
|
class PageTitleComponent {
|
|
3483
3491
|
constructor() {
|
|
@@ -3499,7 +3507,7 @@ class PageTitleComponent {
|
|
|
3499
3507
|
i0.ɵɵtext(2);
|
|
3500
3508
|
i0.ɵɵpipe(3, "translate");
|
|
3501
3509
|
i0.ɵɵelementEnd();
|
|
3502
|
-
i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template,
|
|
3510
|
+
i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 5, 2, "div", 2);
|
|
3503
3511
|
i0.ɵɵelementEnd();
|
|
3504
3512
|
} if (rf & 2) {
|
|
3505
3513
|
i0.ɵɵadvance(2);
|
|
@@ -3510,7 +3518,7 @@ class PageTitleComponent {
|
|
|
3510
3518
|
}
|
|
3511
3519
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
|
|
3512
3520
|
type: Component,
|
|
3513
|
-
args: [{ selector: 'cauca-page-title', imports: [TranslateModule, RouterModule], template: "<div class=\"title-section\">\r\n\r\n <h4 class=\"title-label\">{{caption() | translate }}</h4>\r\n\r\n @if (displayBreadcrumb()) {\r\n <div class=\"breadcrumb\">\r\n\r\n @if (baseCrumb()) {\r\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\r\n @if (breadcrumbLocation().length > 0 || currentBreadcrumb()) {\r\n <span>/</span>\r\n }\r\n }\r\n\r\n @for(location of breadcrumbLocation(); track location) {\r\n @if (location.link) {\r\n <a class=\"basecrumb\" [href]=\"location.link\" [routerLink]=\"location.link\">{{location.title| translate }}</a>\r\n } @else if (location.action) {\r\n <span class=\"basecrumb crumb-link\" (click)=\"location.action()\">{{ location.translate ? (location.title | translate) : location.title}}</span>\r\n } @else {\r\n <span class=\"basecrumb\">{{location.title}}</span>\r\n }\r\n @if (!$last || currentBreadcrumb()) {\r\n <span>/</span>\r\n }\r\n }\r\n\r\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\r\n\r\n </div>\r\n }\r\n\r\n</div>", styles: [".title-section{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb{display:flex;align-items:center;gap:8px}h4{padding:0}a{text-decoration:none}a:visited{color:inherit}.basecrumb{color:#12101499}.crumb-link{cursor:pointer}@media(max-width:500px){.title-section{padding:16px}}\n"] }]
|
|
3521
|
+
args: [{ selector: 'cauca-page-title', imports: [TranslateModule, RouterModule], template: "<div class=\"title-section\">\r\n\r\n <h4 class=\"title-label\">{{caption() | translate }}</h4>\r\n\r\n @if (displayBreadcrumb()) {\r\n <div class=\"breadcrumb\">\r\n\r\n @if (baseCrumb()) {\r\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\r\n @if (breadcrumbLocation().length > 0 || (currentBreadcrumb() && currentBreadcrumb().trim() !== '')) {\r\n <span>/</span>\r\n }\r\n }\r\n\r\n @for(location of breadcrumbLocation(); track location) {\r\n @if (location.link) {\r\n <a class=\"basecrumb\" [href]=\"location.link\" [routerLink]=\"location.link\">{{location.title| translate }}</a>\r\n } @else if (location.action) {\r\n <span class=\"basecrumb crumb-link\" (click)=\"location.action()\">{{ location.translate ? (location.title | translate) : location.title}}</span>\r\n } @else {\r\n <span class=\"basecrumb\">{{location.title}}</span>\r\n }\r\n @if (!$last || (currentBreadcrumb() && currentBreadcrumb().trim() !== '')) {\r\n <span>/</span>\r\n }\r\n }\r\n\r\n @if (currentBreadcrumb() && currentBreadcrumb().trim() !== '') {\r\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\r\n }\r\n\r\n </div>\r\n }\r\n\r\n</div>", styles: [".title-section{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb{display:flex;align-items:center;gap:8px}h4{padding:0}a{text-decoration:none}a:visited{color:inherit}.basecrumb{color:#12101499}.crumb-link{cursor:pointer}@media(max-width:500px){.title-section{padding:16px}}\n"] }]
|
|
3514
3522
|
}], null, { caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], showBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBreadcrumb", required: false }] }], location: [{ type: i0.Input, args: [{ isSignal: true, alias: "location", required: false }] }], breadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumb", required: false }] }], baseCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseCrumb", required: false }] }], translateBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateBreadcrumb", required: false }] }] }); })();
|
|
3515
3523
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 13 }); })();
|
|
3516
3524
|
|