@cauca-911/material 18.0.0 → 18.0.1-beta2

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.
Files changed (81) hide show
  1. package/esm2022/lib/buttons/base-button.mjs +33 -0
  2. package/esm2022/lib/buttons/basic-button/basic-button.component.mjs +64 -0
  3. package/esm2022/lib/buttons/flat-button/flat-button.component.mjs +64 -0
  4. package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +28 -0
  5. package/esm2022/lib/buttons/menu-item/menu-item.component.mjs +68 -0
  6. package/esm2022/lib/buttons/raised-button/raised-button.component.mjs +64 -0
  7. package/esm2022/lib/buttons/stroked-button/stroked-button.component.mjs +71 -0
  8. package/esm2022/lib/cauca-material.component.mjs +6 -5
  9. package/esm2022/lib/cauca-material.module.mjs +14 -52
  10. package/esm2022/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +14 -10
  11. package/esm2022/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs +16 -8
  12. package/esm2022/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs +14 -10
  13. package/esm2022/lib/cauca-slideshow/cauca-slideshow.component.mjs +6 -6
  14. package/esm2022/lib/dialogs/alert-dialog/alert-dialog.component.mjs +57 -0
  15. package/esm2022/lib/dialogs/confirm-dialog/confirm-dialog.component.mjs +69 -0
  16. package/esm2022/lib/dialogs/services/dialog.service.mjs +52 -0
  17. package/esm2022/lib/inputs/cauca-date-time-picker/cauca-date-time-picker.component.mjs +137 -0
  18. package/esm2022/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/desktop-time-picker/desktop-time-picker.component.mjs +2 -2
  19. package/esm2022/lib/inputs/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +358 -0
  20. package/esm2022/lib/inputs/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +74 -0
  21. package/esm2022/lib/inputs/cauca-date-time-picker/models/dialog-date-time-picker-data.mjs +2 -0
  22. package/esm2022/lib/inputs/cauca-input-file/cauca-input-file.component.mjs +147 -0
  23. package/esm2022/lib/inputs/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +99 -0
  24. package/esm2022/lib/inputs/password/models/password-validation.mjs +13 -0
  25. package/esm2022/lib/inputs/password/password-criteria/password-criteria.component.mjs +49 -0
  26. package/esm2022/lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component.mjs +29 -0
  27. package/esm2022/lib/inputs/password/password-input/password-input.component.mjs +112 -0
  28. package/esm2022/lib/inputs/password/password-selection/password-selection.component.mjs +112 -0
  29. package/esm2022/lib/inputs/password/validators/password-validator.mjs +19 -0
  30. package/esm2022/lib/inputs/select-with-search/select-with-search.component.mjs +157 -0
  31. package/esm2022/lib/layout/expandable-panel/expandable-panel.component.mjs +75 -0
  32. package/esm2022/lib/layout/menu-expandable-panel/menu-expandable-panel.component.mjs +148 -0
  33. package/esm2022/lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.mjs +50 -0
  34. package/esm2022/lib/layout/page-title/page-title.component.mjs +86 -0
  35. package/esm2022/lib/notifications/snack-bar/snack-bar.component.mjs +75 -0
  36. package/esm2022/public-api.mjs +21 -4
  37. package/fesm2022/cauca-911-material.mjs +1988 -648
  38. package/fesm2022/cauca-911-material.mjs.map +1 -1
  39. package/lib/buttons/base-button.d.ts +21 -0
  40. package/lib/buttons/basic-button/basic-button.component.d.ts +6 -0
  41. package/lib/buttons/flat-button/flat-button.component.d.ts +6 -0
  42. package/lib/buttons/icon-button/icon-button.component.d.ts +6 -0
  43. package/lib/buttons/menu-item/menu-item.component.d.ts +9 -0
  44. package/lib/buttons/raised-button/raised-button.component.d.ts +6 -0
  45. package/lib/buttons/stroked-button/stroked-button.component.d.ts +6 -0
  46. package/lib/cauca-material.component.d.ts +1 -1
  47. package/lib/cauca-material.module.d.ts +4 -14
  48. package/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.d.ts +1 -1
  49. package/lib/cauca-menu-vertical/cauca-menu-vertical.component.d.ts +1 -1
  50. package/lib/cauca-simple-dialog/cauca-simple-dialog.component.d.ts +1 -1
  51. package/lib/cauca-slideshow/cauca-slideshow.component.d.ts +1 -1
  52. package/lib/dialogs/alert-dialog/alert-dialog.component.d.ts +18 -0
  53. package/lib/dialogs/confirm-dialog/confirm-dialog.component.d.ts +17 -0
  54. package/lib/dialogs/services/dialog.service.d.ts +26 -0
  55. package/lib/{cauca-input-file → inputs/cauca-input-file}/cauca-input-file.component.d.ts +1 -1
  56. package/lib/{cauca-input-multiple-langue → inputs/cauca-input-multiple-langue}/cauca-input-multiple-langue.component.d.ts +1 -1
  57. package/lib/inputs/password/models/password-validation.d.ts +9 -0
  58. package/lib/inputs/password/password-criteria/password-criteria.component.d.ts +9 -0
  59. package/lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component.d.ts +9 -0
  60. package/lib/inputs/password/password-input/password-input.component.d.ts +25 -0
  61. package/lib/inputs/password/password-selection/password-selection.component.d.ts +20 -0
  62. package/lib/inputs/password/validators/password-validator.d.ts +9 -0
  63. package/lib/inputs/select-with-search/select-with-search.component.d.ts +32 -0
  64. package/lib/layout/expandable-panel/expandable-panel.component.d.ts +10 -0
  65. package/lib/layout/menu-expandable-panel/menu-expandable-panel.component.d.ts +29 -0
  66. package/lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.d.ts +13 -0
  67. package/lib/layout/page-title/page-title.component.d.ts +11 -0
  68. package/lib/notifications/snack-bar/snack-bar.component.d.ts +17 -0
  69. package/package.json +3 -2
  70. package/public-api.d.ts +20 -3
  71. package/esm2022/lib/cauca-date-time-picker/cauca-date-time-picker.component.mjs +0 -137
  72. package/esm2022/lib/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +0 -357
  73. package/esm2022/lib/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +0 -74
  74. package/esm2022/lib/cauca-date-time-picker/models/dialog-date-time-picker-data.mjs +0 -2
  75. package/esm2022/lib/cauca-input-file/cauca-input-file.component.mjs +0 -148
  76. package/esm2022/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +0 -87
  77. /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/cauca-date-time-picker.component.d.ts +0 -0
  78. /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/desktop-time-picker/desktop-time-picker.component.d.ts +0 -0
  79. /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/dialog-date-time-picker/dialog-date-time-picker.component.d.ts +0 -0
  80. /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/mobile-time-picker/mobile-time-picker.component.d.ts +0 -0
  81. /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/models/dialog-date-time-picker-data.d.ts +0 -0
@@ -0,0 +1,21 @@
1
+ import { InputSignal, OutputEmitterRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class BaseButton {
4
+ color: InputSignal<string>;
5
+ icon: InputSignal<string>;
6
+ iconAlignment: InputSignal<'left' | 'right'>;
7
+ isDisabled: InputSignal<boolean>;
8
+ isInProgress: InputSignal<boolean>;
9
+ showIcon: import("@angular/core").Signal<boolean>;
10
+ iconToShow: import("@angular/core").Signal<string>;
11
+ buttonDisabled: import("@angular/core").Signal<boolean>;
12
+ buttonClick: OutputEmitterRef<void>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseButton, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseButton, never, never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconAlignment": { "alias": "iconAlignment"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "isInProgress": { "alias": "isInProgress"; "required": false; "isSignal": true; }; }, { "buttonClick": "buttonClick"; }, never, never, false, never>;
15
+ }
16
+ export declare abstract class BaseButtonWithLabel extends BaseButton {
17
+ translateLabel: InputSignal<boolean>;
18
+ label: InputSignal<string>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseButtonWithLabel, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseButtonWithLabel, never, never, { "translateLabel": { "alias": "translateLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
21
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseButtonWithLabel } from '../base-button';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BasicButtonComponent extends BaseButtonWithLabel {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasicButtonComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasicButtonComponent, "app-basic-button", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseButtonWithLabel } from '../base-button';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FlatButtonComponent extends BaseButtonWithLabel {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlatButtonComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlatButtonComponent, "app-flat-button", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseButton } from '../base-button';
2
+ import * as i0 from "@angular/core";
3
+ export declare class IconButtonComponent extends BaseButton {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "app-icon-button", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { InputSignal } from '@angular/core';
2
+ import { BaseButtonWithLabel } from '../base-button';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MenuItemComponent extends BaseButtonWithLabel {
5
+ translateLabel: InputSignal<boolean>;
6
+ trigger: InputSignal<any>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "app-menu-item", never, { "translateLabel": { "alias": "translateLabel"; "required": false; "isSignal": true; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseButtonWithLabel } from '../base-button';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RaisedButtonComponent extends BaseButtonWithLabel {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RaisedButtonComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<RaisedButtonComponent, "app-raised-button", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseButtonWithLabel } from '../base-button';
2
+ import * as i0 from "@angular/core";
3
+ export declare class StrokedButtonComponent extends BaseButtonWithLabel {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<StrokedButtonComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<StrokedButtonComponent, "app-stroked-button", never, {}, {}, never, never, true, never>;
6
+ }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class CaucaMaterialComponent {
3
3
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMaterialComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMaterialComponent, "cauca-material", never, {}, {}, never, never, false, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMaterialComponent, "cauca-material", never, {}, {}, never, never, true, never>;
5
5
  }
@@ -1,23 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./cauca-material.component";
3
- import * as i2 from "./cauca-input-file/cauca-input-file.component";
4
- import * as i3 from "./cauca-input-multiple-langue/cauca-input-multiple-langue.component";
2
+ import * as i1 from "./inputs/cauca-input-file/cauca-input-file.component";
3
+ import * as i2 from "./cauca-material.component";
4
+ import * as i3 from "./inputs/cauca-input-multiple-langue/cauca-input-multiple-langue.component";
5
5
  import * as i4 from "./cauca-menu-sidebar/cauca-menu-sidebar.component";
6
6
  import * as i5 from "./cauca-menu-vertical/cauca-menu-vertical.component";
7
7
  import * as i6 from "./cauca-simple-dialog/cauca-simple-dialog.component";
8
8
  import * as i7 from "./cauca-slideshow/cauca-slideshow.component";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "@cauca-911/core";
11
- import * as i10 from "@fortawesome/angular-fontawesome";
12
- import * as i11 from "@angular/forms";
13
- import * as i12 from "@angular/material/button";
14
- import * as i13 from "@angular/material/form-field";
15
- import * as i14 from "@angular/material/icon";
16
- import * as i15 from "@angular/material/input";
17
- import * as i16 from "@angular/material/tabs";
18
- import * as i17 from "@angular/material/dialog";
19
9
  export declare class CaucaMaterialModule {
20
10
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMaterialModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<CaucaMaterialModule, [typeof i1.CaucaMaterialComponent, typeof i2.CaucaInputFileComponent, typeof i3.CaucaInputMultipleLangueComponent, typeof i4.CaucaMenuSidebarComponent, typeof i5.CaucaMenuVerticalComponent, typeof i6.CaucaSimpleDialogComponent, typeof i7.CaucaSlideshowComponent], [typeof i8.CommonModule, typeof i9.CaucaCoreForChildModule, typeof i10.FontAwesomeModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatButtonModule, typeof i13.MatFormFieldModule, typeof i14.MatIconModule, typeof i15.MatInputModule, typeof i16.MatTabsModule, typeof i17.MatDialogModule], [typeof i1.CaucaMaterialComponent, typeof i2.CaucaInputFileComponent, typeof i3.CaucaInputMultipleLangueComponent, typeof i4.CaucaMenuSidebarComponent, typeof i5.CaucaMenuVerticalComponent, typeof i6.CaucaSimpleDialogComponent, typeof i7.CaucaSlideshowComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CaucaMaterialModule, never, [typeof i1.CaucaInputFileComponent, typeof i2.CaucaMaterialComponent, typeof i3.CaucaInputMultipleLangueComponent, typeof i4.CaucaMenuSidebarComponent, typeof i5.CaucaMenuVerticalComponent, typeof i6.CaucaSimpleDialogComponent, typeof i7.CaucaSlideshowComponent], [typeof i2.CaucaMaterialComponent, typeof i1.CaucaInputFileComponent, typeof i3.CaucaInputMultipleLangueComponent, typeof i4.CaucaMenuSidebarComponent, typeof i5.CaucaMenuVerticalComponent, typeof i6.CaucaSimpleDialogComponent, typeof i7.CaucaSlideshowComponent]>;
22
12
  static ɵinj: i0.ɵɵInjectorDeclaration<CaucaMaterialModule>;
23
13
  }
@@ -18,5 +18,5 @@ export declare class CaucaMenuSidebarComponent {
18
18
  private onExpandedMenu;
19
19
  private onCollapseMenu;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMenuSidebarComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuSidebarComponent, "cauca-menu-sidebar", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "version": { "alias": "version"; "required": false; }; }, {}, never, ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"], false, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuSidebarComponent, "cauca-menu-sidebar", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "version": { "alias": "version"; "required": false; }; }, {}, never, ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"], true, never>;
22
22
  }
@@ -10,5 +10,5 @@ export declare class CaucaMenuVerticalComponent {
10
10
  goTo(path: string, e: any): void;
11
11
  private selectActiveRoute;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMenuVerticalComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuVerticalComponent, "cauca-menu-vertical", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuVerticalComponent, "cauca-menu-vertical", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
14
14
  }
@@ -7,5 +7,5 @@ export declare class CaucaSimpleDialogComponent {
7
7
  constructor(dialogRef: MatDialogRef<CaucaSimpleDialogComponent>, data: SimpleDialogData);
8
8
  onClick(buttonIndex: number): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaSimpleDialogComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSimpleDialogComponent, "cauca-simple-dialog", never, {}, {}, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSimpleDialogComponent, "cauca-simple-dialog", never, {}, {}, never, never, true, never>;
11
11
  }
@@ -16,5 +16,5 @@ export declare class CaucaSlideshowComponent implements OnInit {
16
16
  next(): void;
17
17
  private changed;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaSlideshowComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSlideshowComponent, "cauca-slideshow", never, { "height": { "alias": "height"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSlideshowComponent, "cauca-slideshow", never, { "height": { "alias": "height"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never, true, never>;
20
20
  }
@@ -0,0 +1,18 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { ConfirmationOptions } from '../services/dialog.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AlertDialogComponent {
5
+ dialogRef: MatDialogRef<AlertDialogComponent>;
6
+ data: AlertDialogData;
7
+ title: string;
8
+ message: string;
9
+ constructor(dialogRef: MatDialogRef<AlertDialogComponent>, data: AlertDialogData);
10
+ closeClick(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertDialogComponent, "app-alert-dialog", never, {}, {}, never, never, true, never>;
13
+ }
14
+ export interface AlertDialogData {
15
+ title: string;
16
+ message: string;
17
+ options: ConfirmationOptions;
18
+ }
@@ -0,0 +1,17 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { AlertDialogData } from '../alert-dialog/alert-dialog.component';
3
+ import { ConfirmationOptions } from '../services/dialog.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ConfirmDialogComponent {
6
+ dialogRef: MatDialogRef<ConfirmDialogComponent>;
7
+ data: AlertDialogData;
8
+ title: string;
9
+ message: string;
10
+ options: ConfirmationOptions;
11
+ constructor(dialogRef: MatDialogRef<ConfirmDialogComponent>, data: AlertDialogData);
12
+ noClick(): void;
13
+ yesClick(): void;
14
+ cancelClick(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "app-confirm-dialog", never, {}, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,26 @@
1
+ import { MatDialog } from '@angular/material/dialog';
2
+ import { Observable } from 'rxjs';
3
+ import { ComponentType } from '@angular/cdk/portal';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DialogService {
6
+ private dialog;
7
+ private defaultConfirmationOptions;
8
+ constructor(dialog: MatDialog);
9
+ showDialog(title: string, message: string): Promise<any>;
10
+ showCustomDialog(component: ComponentType<unknown>, args: any, options?: any): Promise<Observable<any>>;
11
+ askForConfirmation(title: string, message: string, args?: Partial<ConfirmationOptions>, options?: any): Promise<ConfirmationResult>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
14
+ }
15
+ export interface ConfirmationOptions {
16
+ noText: string;
17
+ noColor: string;
18
+ yesText: string;
19
+ yesColor: string;
20
+ messageArgs: any;
21
+ }
22
+ export declare enum ConfirmationResult {
23
+ Cancel = 0,
24
+ Yes = 1,
25
+ No = 2
26
+ }
@@ -19,5 +19,5 @@ export declare class CaucaInputFileComponent implements OnInit {
19
19
  private onError;
20
20
  private onReadEnd;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaInputFileComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputFileComponent, "cauca-input-file", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "readend": "readend"; }, never, never, false, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputFileComponent, "cauca-input-file", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "readend": "readend"; }, never, never, true, never>;
23
23
  }
@@ -15,5 +15,5 @@ export declare class CaucaInputMultipleLangueComponent implements OnInit {
15
15
  getErrorMessage(index: any): string;
16
16
  private initializeForms;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaInputMultipleLangueComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputMultipleLangueComponent, "cauca-input-multiple-langue", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputMultipleLangueComponent, "cauca-input-multiple-langue", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
19
19
  }
@@ -0,0 +1,9 @@
1
+ export declare class PasswordValidation {
2
+ hasMinimumCharacters: boolean;
3
+ hasMinimumNumeric: boolean;
4
+ hasLowerAndUppercase: boolean;
5
+ hasSpecialCharacter: boolean;
6
+ hasIdenticalPassword: boolean;
7
+ constructor(hasMinimumCharacters?: boolean, hasMinimumNumeric?: boolean, hasLowerAndUppercase?: boolean, hasSpecialCharacter?: boolean, hasIdenticalPassword?: boolean);
8
+ isValid(): boolean;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { InputSignal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PasswordCriteriaComponent {
4
+ label: InputSignal<string>;
5
+ condition: InputSignal<boolean>;
6
+ disabled: InputSignal<boolean>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordCriteriaComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordCriteriaComponent, "app-password-criteria", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "condition": { "alias": "condition"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { InputSignal } from '@angular/core';
2
+ import { PasswordValidation } from '../models/password-validation';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PasswordCriteriaViewerComponent {
5
+ passwordValidation: InputSignal<PasswordValidation>;
6
+ disabled: InputSignal<boolean>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordCriteriaViewerComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordCriteriaViewerComponent, "app-password-criteria-viewer", never, { "passwordValidation": { "alias": "passwordValidation"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,25 @@
1
+ import { InputSignal, WritableSignal } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PasswordInputComponent implements ControlValueAccessor {
5
+ autocomplete: InputSignal<string>;
6
+ translateLabel: InputSignal<boolean>;
7
+ label: InputSignal<string>;
8
+ translatePlaceholder: InputSignal<boolean>;
9
+ placeholder: InputSignal<string>;
10
+ required: InputSignal<boolean>;
11
+ enterKeyDown: import("@angular/core").OutputEmitterRef<void>;
12
+ passwordControl: FormControl;
13
+ disabled: WritableSignal<boolean>;
14
+ showPassword: WritableSignal<boolean>;
15
+ inputType: import("@angular/core").Signal<"password" | "text">;
16
+ constructor();
17
+ writeValue(value: string): void;
18
+ registerOnChange(fn: any): void;
19
+ registerOnTouched(fn: any): void;
20
+ setDisabledState?(isDisabled: boolean): void;
21
+ onChange: (value: string) => string;
22
+ onTouched: () => void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordInputComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordInputComponent, "app-password-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "translateLabel": { "alias": "translateLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "translatePlaceholder": { "alias": "translatePlaceholder"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "enterKeyDown": "enterKeyDown"; }, never, never, true, never>;
25
+ }
@@ -0,0 +1,20 @@
1
+ import { ControlValueAccessor, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
2
+ import { PasswordValidation } from '../models/password-validation';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PasswordSelectionComponent implements ControlValueAccessor {
5
+ form: UntypedFormGroup;
6
+ passwordValidation: PasswordValidation;
7
+ disabled: boolean;
8
+ direction: 'row' | 'column';
9
+ formWidth: string;
10
+ private lastPasswordValidationSent;
11
+ constructor(formBuilder: UntypedFormBuilder);
12
+ writeValue(value: string): void;
13
+ registerOnChange(fn: any): void;
14
+ registerOnTouched(fn: any): void;
15
+ setDisabledState?(isDisabled: boolean): void;
16
+ onChange: (value: string) => string;
17
+ onTouched: () => void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordSelectionComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordSelectionComponent, "app-password-selection", never, { "direction": { "alias": "direction"; "required": false; }; "formWidth": { "alias": "formWidth"; "required": false; }; }, {}, never, ["*"], true, never>;
20
+ }
@@ -0,0 +1,9 @@
1
+ import { UntypedFormGroup } from '@angular/forms';
2
+ import { PasswordValidation } from '../models/password-validation';
3
+ export declare class PasswordValidator {
4
+ static readonly passwordMinLength = 13;
5
+ static validate(formGroup: UntypedFormGroup): PasswordValidation;
6
+ static hasLowerCaseAndUpperCase(password: string): boolean;
7
+ static hasNumeric(password: any): boolean;
8
+ static hasSpecialCharacter(password: any): boolean;
9
+ }
@@ -0,0 +1,32 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { MatSelect } from '@angular/material/select';
4
+ import { ReplaySubject, Subject } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export interface Option {
7
+ id: string;
8
+ name: string;
9
+ }
10
+ export declare class SelectWithSearchComponent implements OnInit, OnDestroy {
11
+ label: string;
12
+ selectFirstOptionByDefault: boolean;
13
+ optionFilterControl: FormControl<string>;
14
+ filteredOptions: ReplaySubject<Option[]>;
15
+ singleSelect: MatSelect;
16
+ isDisabled: boolean;
17
+ valueChanged: EventEmitter<any>;
18
+ protected _onDestroy: Subject<void>;
19
+ private selectedOptionId;
20
+ private allOptions;
21
+ set options(newOptions: Option[]);
22
+ get options(): Option[];
23
+ set value(newValue: string);
24
+ get value(): string;
25
+ ngOnInit(): void;
26
+ ngOnDestroy(): void;
27
+ private filterCities;
28
+ private setInitialSelectedOption;
29
+ private selectFirstOption;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectWithSearchComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectWithSearchComponent, "app-select-with-search", never, { "label": { "alias": "label"; "required": true; }; "selectFirstOptionByDefault": { "alias": "selectFirstOptionByDefault"; "required": false; }; "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, ["*"], true, never>;
32
+ }
@@ -0,0 +1,10 @@
1
+ import { InputSignal, ModelSignal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ExpandablePanelComponent {
4
+ isCollapsed: ModelSignal<boolean>;
5
+ title: InputSignal<string>;
6
+ subTitle: InputSignal<string>;
7
+ changeState(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExpandablePanelComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExpandablePanelComponent, "app-expandable-panel", never, { "isCollapsed": { "alias": "isCollapsed"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subTitle": { "alias": "subTitle"; "required": false; "isSignal": true; }; }, { "isCollapsed": "isCollapsedChange"; }, never, ["*"], true, never>;
10
+ }
@@ -0,0 +1,29 @@
1
+ import { InputSignal, WritableSignal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MenuExpandablePanelComponent {
4
+ title: InputSignal<string>;
5
+ isSubItem: InputSignal<boolean>;
6
+ subTitle: InputSignal<string>;
7
+ menuIcon: InputSignal<string>;
8
+ showExpansionIcon: InputSignal<boolean>;
9
+ addTopBorderRadius: InputSignal<boolean>;
10
+ bottomBorder: InputSignal<boolean>;
11
+ addBottomBorderRadius: InputSignal<boolean>;
12
+ route: InputSignal<string[]>;
13
+ items: InputSignal<{
14
+ icon: string;
15
+ title: string;
16
+ route?: string[];
17
+ action?: () => void;
18
+ }[]>;
19
+ opened: WritableSignal<boolean>;
20
+ private readonly router;
21
+ get topLeftRadius(): string;
22
+ get topRightRadius(): string;
23
+ get bottomLeftRadius(): string;
24
+ get bottomRightRadius(): string;
25
+ get bottomBorderClass(): boolean;
26
+ handleClick(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuExpandablePanelComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuExpandablePanelComponent, "app-menu-expandable-panel", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "isSubItem": { "alias": "isSubItem"; "required": false; "isSignal": true; }; "subTitle": { "alias": "subTitle"; "required": false; "isSignal": true; }; "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "showExpansionIcon": { "alias": "showExpansionIcon"; "required": false; "isSignal": true; }; "addTopBorderRadius": { "alias": "addTopBorderRadius"; "required": false; "isSignal": true; }; "bottomBorder": { "alias": "bottomBorder"; "required": false; "isSignal": true; }; "addBottomBorderRadius": { "alias": "addBottomBorderRadius"; "required": false; "isSignal": true; }; "route": { "alias": "route"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
29
+ }
@@ -0,0 +1,13 @@
1
+ import { InputSignal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MenuExpandablePanelItemComponent {
4
+ icon: InputSignal<string>;
5
+ title: InputSignal<string>;
6
+ route: InputSignal<string[]>;
7
+ isSubItem: InputSignal<boolean>;
8
+ action: InputSignal<() => void | null>;
9
+ private readonly router;
10
+ openRoute(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuExpandablePanelItemComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuExpandablePanelItemComponent, "app-menu-expandable-panel-item", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "route": { "alias": "route"; "required": false; "isSignal": true; }; "isSubItem": { "alias": "isSubItem"; "required": false; "isSignal": true; }; "action": { "alias": "action"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class PageTitleComponent {
3
+ title: import("@angular/core").InputSignal<string>;
4
+ currentLocation: import("@angular/core").InputSignal<string[]>;
5
+ currentLocationLink: import("@angular/core").InputSignal<any>;
6
+ breadcrumb: import("@angular/core").InputSignal<string>;
7
+ showBreadcrumb: import("@angular/core").InputSignal<boolean>;
8
+ translateBreadcrumb: import("@angular/core").InputSignal<boolean>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageTitleComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageTitleComponent, "app-page-title", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "currentLocation": { "alias": "currentLocation"; "required": false; "isSignal": true; }; "currentLocationLink": { "alias": "currentLocationLink"; "required": false; "isSignal": true; }; "breadcrumb": { "alias": "breadcrumb"; "required": false; "isSignal": true; }; "showBreadcrumb": { "alias": "showBreadcrumb"; "required": false; "isSignal": true; }; "translateBreadcrumb": { "alias": "translateBreadcrumb"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, InputSignal, Signal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SnackBarComponent {
4
+ icon: InputSignal<string>;
5
+ title: InputSignal<string>;
6
+ showButton: InputSignal<boolean>;
7
+ buttonLabel: InputSignal<string>;
8
+ showCloseButton: InputSignal<boolean>;
9
+ type: InputSignal<'info' | 'success' | 'warning' | 'error'>;
10
+ variant: InputSignal<'filled' | 'outlined' | 'standard'>;
11
+ appearanceClasses: Signal<string>;
12
+ buttonColor: Signal<string>;
13
+ closeClick: EventEmitter<void>;
14
+ buttonClick: EventEmitter<void>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SnackBarComponent, "app-snackbar", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "showButton": { "alias": "showButton"; "required": false; "isSignal": true; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "closeClick": "closeClick"; "buttonClick": "buttonClick"; }, never, ["*"], true, never>;
17
+ }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@cauca-911/material",
3
- "version": "18.0.0",
3
+ "version": "18.0.1-beta2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
7
7
  "@angular/material": ">=18.0.0",
8
8
  "@fortawesome/angular-fontawesome": ">=0.15.0",
9
9
  "@fortawesome/fontawesome-svg-core": ">=6.5.0",
10
- "@cauca-911/core": ">=18.0.0"
10
+ "@cauca-911/core": ">=18.0.0",
11
+ "ngx-mat-select-search": "^7.0.6"
11
12
  },
12
13
  "homepage": "https://cauca.ca",
13
14
  "license": "SEE LICENSE IN LICENSE",
package/public-api.d.ts CHANGED
@@ -1,11 +1,28 @@
1
1
  export * from './lib/cauca-material.service';
2
2
  export * from './lib/cauca-material.component';
3
3
  export * from './lib/cauca-material.module';
4
- export * from './lib/cauca-date-time-picker/cauca-date-time-picker.component';
5
- export * from './lib/cauca-input-file/cauca-input-file.component';
6
- export * from './lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component';
7
4
  export * from './lib/cauca-menu-sidebar/cauca-menu-sidebar.component';
8
5
  export * from './lib/cauca-menu-vertical/cauca-menu-vertical.component';
9
6
  export * from './lib/cauca-simple-dialog/cauca-simple-dialog.component';
10
7
  export * from './lib/cauca-slideshow/cauca-slideshow.component';
8
+ export * from './lib/buttons/basic-button/basic-button.component';
9
+ export * from './lib/buttons/flat-button/flat-button.component';
10
+ export * from './lib/buttons/stroked-button/stroked-button.component';
11
+ export * from './lib/buttons/raised-button/raised-button.component';
12
+ export * from './lib/buttons/icon-button/icon-button.component';
13
+ export * from './lib/buttons/menu-item/menu-item.component';
14
+ export * from './lib/layout/expandable-panel/expandable-panel.component';
15
+ export * from './lib/layout/menu-expandable-panel/menu-expandable-panel.component';
16
+ export * from './lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component';
17
+ export * from './lib/layout/page-title/page-title.component';
18
+ export * from './lib/inputs/cauca-input-file/cauca-input-file.component';
19
+ export * from './lib/inputs/cauca-input-multiple-langue/cauca-input-multiple-langue.component';
20
+ export * from './lib/inputs/password/password-criteria/password-criteria.component';
21
+ export * from './lib/inputs/password/password-input/password-input.component';
22
+ export * from './lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component';
23
+ export * from './lib/inputs/password/password-selection/password-selection.component';
24
+ export * from './lib/inputs/select-with-search/select-with-search.component';
25
+ export * from './lib/inputs/cauca-date-time-picker/cauca-date-time-picker.component';
26
+ export * from './lib/notifications/snack-bar/snack-bar.component';
27
+ export * from './lib/dialogs/services/dialog.service';
11
28
  export { MenuItem } from './lib/shared/models/menu-item';