@cauca-911/material 21.0.1-beta.1 → 21.0.1-beta.3

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 CHANGED
@@ -1,5 +1,24 @@
1
- # @cauca-911/material
1
+ # CaucaMaterial
2
2
 
3
- Run `npm install @cauca-911/material --save` to add this library to your project
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.6.
4
4
 
5
- ## To use this library, you need to import the module with specific configuration
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).
@@ -3395,26 +3395,23 @@ class SectionFieldComponent {
3395
3395
  }], null, { autoTranslateLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoTranslateLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }], fieldName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldName", required: false }] }], showLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLink", required: false }] }], linkClick: [{ type: i0.Output, args: ["linkClick"] }], splitEqually: [{ type: i0.Input, args: [{ isSignal: true, alias: "splitEqually", required: false }] }] }); })();
3396
3396
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionFieldComponent, { className: "SectionFieldComponent", filePath: "lib/components/layout/sections/section-field/section-field.component.ts", lineNumber: 12 }); })();
3397
3397
 
3398
- function PageTitleComponent_Conditional_4_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3399
- i0.ɵɵelementStart(0, "span");
3400
- i0.ɵɵtext(1, "/");
3401
- i0.ɵɵelementEnd();
3402
- } }
3403
3398
  function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3404
- i0.ɵɵelementStart(0, "div", 4);
3399
+ i0.ɵɵelementStart(0, "div", 3);
3405
3400
  i0.ɵɵtext(1);
3406
3401
  i0.ɵɵpipe(2, "translate");
3407
3402
  i0.ɵɵelementEnd();
3408
- i0.ɵɵconditionalCreate(3, PageTitleComponent_Conditional_4_Conditional_1_Conditional_3_Template, 2, 0, "span");
3409
3403
  } if (rf & 2) {
3410
3404
  const ctx_r0 = i0.ɵɵnextContext(2);
3411
3405
  i0.ɵɵadvance();
3412
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ctx_r0.baseCrumb()));
3413
- i0.ɵɵadvance(2);
3414
- i0.ɵɵconditional(ctx_r0.breadcrumbLocation().length > 0 || ctx_r0.currentBreadcrumb() ? 3 : -1);
3406
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.baseCrumb()));
3415
3407
  } }
3416
3408
  function PageTitleComponent_Conditional_4_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3417
- i0.ɵɵelementStart(0, "a", 5);
3409
+ i0.ɵɵelementStart(0, "span");
3410
+ i0.ɵɵtext(1, "/");
3411
+ i0.ɵɵelementEnd();
3412
+ } }
3413
+ function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3414
+ i0.ɵɵelementStart(0, "a", 4);
3418
3415
  i0.ɵɵtext(1);
3419
3416
  i0.ɵɵpipe(2, "translate");
3420
3417
  i0.ɵɵelementEnd();
@@ -3424,10 +3421,10 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_0_Template(rf, ctx)
3424
3421
  i0.ɵɵadvance();
3425
3422
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, location_r2.title));
3426
3423
  } }
3427
- function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3424
+ function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3428
3425
  const _r3 = i0.ɵɵgetCurrentView();
3429
- i0.ɵɵelementStart(0, "span", 7);
3430
- i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r3); const location_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r2.action()); });
3426
+ i0.ɵɵelementStart(0, "span", 6);
3427
+ i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r3); const location_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r2.action()); });
3431
3428
  i0.ɵɵtext(1);
3432
3429
  i0.ɵɵpipe(2, "translate");
3433
3430
  i0.ɵɵelementEnd();
@@ -3436,8 +3433,8 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template(rf, ctx)
3436
3433
  i0.ɵɵadvance();
3437
3434
  i0.ɵɵtextInterpolate(location_r2.translate ? i0.ɵɵpipeBind1(2, 1, location_r2.title) : location_r2.title);
3438
3435
  } }
3439
- function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3440
- i0.ɵɵelementStart(0, "span", 4);
3436
+ function PageTitleComponent_Conditional_4_For_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3437
+ i0.ɵɵelementStart(0, "span", 3);
3441
3438
  i0.ɵɵtext(1);
3442
3439
  i0.ɵɵelementEnd();
3443
3440
  } if (rf & 2) {
@@ -3445,39 +3442,48 @@ function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx)
3445
3442
  i0.ɵɵadvance();
3446
3443
  i0.ɵɵtextInterpolate(location_r2.title);
3447
3444
  } }
3448
- function PageTitleComponent_Conditional_4_For_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3445
+ function PageTitleComponent_Conditional_4_For_3_Template(rf, ctx) { if (rf & 1) {
3446
+ i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_For_3_Conditional_0_Template, 2, 0, "span");
3447
+ i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_For_3_Conditional_1_Template, 3, 5, "a", 4)(2, PageTitleComponent_Conditional_4_For_3_Conditional_2_Template, 3, 3, "span", 5)(3, PageTitleComponent_Conditional_4_For_3_Conditional_3_Template, 2, 1, "span", 3);
3448
+ } if (rf & 2) {
3449
+ const location_r2 = ctx.$implicit;
3450
+ const ɵ$index_15_r4 = ctx.$index;
3451
+ const ctx_r0 = i0.ɵɵnextContext(2);
3452
+ i0.ɵɵconditional(ctx_r0.baseCrumb() || !(ɵ$index_15_r4 === 0) ? 0 : -1);
3453
+ i0.ɵɵadvance();
3454
+ i0.ɵɵconditional(location_r2.link ? 1 : location_r2.action ? 2 : 3);
3455
+ } }
3456
+ function PageTitleComponent_Conditional_4_Conditional_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3449
3457
  i0.ɵɵelementStart(0, "span");
3450
3458
  i0.ɵɵtext(1, "/");
3451
3459
  i0.ɵɵelementEnd();
3452
3460
  } }
3453
- function PageTitleComponent_Conditional_4_For_3_Template(rf, ctx) { if (rf & 1) {
3454
- i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_For_3_Conditional_0_Template, 3, 5, "a", 5)(1, PageTitleComponent_Conditional_4_For_3_Conditional_1_Template, 3, 3, "span", 6)(2, PageTitleComponent_Conditional_4_For_3_Conditional_2_Template, 2, 1, "span", 4);
3455
- i0.ɵɵconditionalCreate(3, PageTitleComponent_Conditional_4_For_3_Conditional_3_Template, 2, 0, "span");
3461
+ function PageTitleComponent_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3462
+ i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_Conditional_4_Conditional_0_Template, 2, 0, "span");
3463
+ i0.ɵɵelementStart(1, "span", 7);
3464
+ i0.ɵɵtext(2);
3465
+ i0.ɵɵpipe(3, "translate");
3466
+ i0.ɵɵelementEnd();
3456
3467
  } if (rf & 2) {
3457
- const location_r2 = ctx.$implicit;
3458
- const ɵ$index_19_r4 = ctx.$index;
3459
- const ɵ$count_19_r5 = ctx.$count;
3460
3468
  const ctx_r0 = i0.ɵɵnextContext(2);
3461
- i0.ɵɵconditional(location_r2.link ? 0 : location_r2.action ? 1 : 2);
3462
- i0.ɵɵadvance(3);
3463
- i0.ɵɵconditional(!(ɵ$index_19_r4 === ɵ$count_19_r5 - 1) || ctx_r0.currentBreadcrumb() ? 3 : -1);
3469
+ i0.ɵɵconditional(ctx_r0.baseCrumb() || ctx_r0.breadcrumbLocation().length > 0 ? 0 : -1);
3470
+ i0.ɵɵadvance(2);
3471
+ i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(3, 2, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
3464
3472
  } }
3465
3473
  function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3466
3474
  i0.ɵɵelementStart(0, "div", 2);
3467
- i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 4, 4);
3475
+ i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 3, 3, "div", 3);
3468
3476
  i0.ɵɵrepeaterCreate(2, PageTitleComponent_Conditional_4_For_3_Template, 4, 2, null, null, i0.ɵɵrepeaterTrackByIdentity);
3469
- i0.ɵɵelementStart(4, "span", 3);
3470
- i0.ɵɵtext(5);
3471
- i0.ɵɵpipe(6, "translate");
3472
- i0.ɵɵelementEnd()();
3477
+ i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Conditional_4_Template, 4, 4);
3478
+ i0.ɵɵelementEnd();
3473
3479
  } if (rf & 2) {
3474
3480
  const ctx_r0 = i0.ɵɵnextContext();
3475
3481
  i0.ɵɵadvance();
3476
3482
  i0.ɵɵconditional(ctx_r0.baseCrumb() ? 1 : -1);
3477
3483
  i0.ɵɵadvance();
3478
3484
  i0.ɵɵrepeater(ctx_r0.breadcrumbLocation());
3479
- i0.ɵɵadvance(3);
3480
- i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(6, 2, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
3485
+ i0.ɵɵadvance(2);
3486
+ i0.ɵɵconditional(ctx_r0.currentBreadcrumb() && ctx_r0.currentBreadcrumb().trim() !== "" ? 4 : -1);
3481
3487
  } }
3482
3488
  class PageTitleComponent {
3483
3489
  constructor() {
@@ -3494,12 +3500,12 @@ class PageTitleComponent {
3494
3500
  this.breadcrumbService = inject(BreadcrumbService, { optional: true });
3495
3501
  }
3496
3502
  static { this.ɵfac = function PageTitleComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageTitleComponent)(); }; }
3497
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageTitleComponent, selectors: [["cauca-page-title"]], inputs: { caption: [1, "caption"], showBreadcrumb: [1, "showBreadcrumb"], location: [1, "location"], breadcrumb: [1, "breadcrumb"], baseCrumb: [1, "baseCrumb"], translateBreadcrumb: [1, "translateBreadcrumb"] }, decls: 5, vars: 4, consts: [[1, "title-section"], [1, "title-label"], [1, "breadcrumb"], [1, "breadcrumb-current"], [1, "basecrumb"], [1, "basecrumb", 3, "href", "routerLink"], [1, "basecrumb", "crumb-link"], [1, "basecrumb", "crumb-link", 3, "click"]], template: function PageTitleComponent_Template(rf, ctx) { if (rf & 1) {
3503
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageTitleComponent, selectors: [["cauca-page-title"]], inputs: { caption: [1, "caption"], showBreadcrumb: [1, "showBreadcrumb"], location: [1, "location"], breadcrumb: [1, "breadcrumb"], baseCrumb: [1, "baseCrumb"], translateBreadcrumb: [1, "translateBreadcrumb"] }, decls: 5, vars: 4, consts: [[1, "title-section"], [1, "title-label"], [1, "breadcrumb"], [1, "basecrumb"], [1, "basecrumb", 3, "href", "routerLink"], [1, "basecrumb", "crumb-link"], [1, "basecrumb", "crumb-link", 3, "click"], [1, "breadcrumb-current"]], template: function PageTitleComponent_Template(rf, ctx) { if (rf & 1) {
3498
3504
  i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
3499
3505
  i0.ɵɵtext(2);
3500
3506
  i0.ɵɵpipe(3, "translate");
3501
3507
  i0.ɵɵelementEnd();
3502
- i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 7, 4, "div", 2);
3508
+ i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 5, 2, "div", 2);
3503
3509
  i0.ɵɵelementEnd();
3504
3510
  } if (rf & 2) {
3505
3511
  i0.ɵɵadvance(2);
@@ -3510,7 +3516,7 @@ class PageTitleComponent {
3510
3516
  }
3511
3517
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
3512
3518
  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"] }]
3519
+ 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 }\r\n\r\n @for(location of breadcrumbLocation(); track location) {\r\n @if (baseCrumb() || !$first) {\r\n <span>/</span>\r\n }\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 }\r\n\r\n @if (currentBreadcrumb() && currentBreadcrumb().trim() !== '') {\r\n @if (baseCrumb() || breadcrumbLocation().length > 0) {\r\n <span>/</span>\r\n }\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
3520
  }], 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
3521
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 13 }); })();
3516
3522