@cauca-911/material 20.2.8 → 20.2.10

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.
@@ -10,5 +10,94 @@
10
10
  "dialogMessage": "Adquisición de datos en curso <img src=\"/assets/images/loading.gif\" alt=\"\" width=\"20\" />",
11
11
  "version": "Versión",
12
12
  "refresh": "Actualizar"
13
+ },
14
+ "ok": "Ok",
15
+ "apply": "Aplicar",
16
+ "cancel": "Cancelar",
17
+ "clear": "Claro",
18
+ "description": "La librería \"@cauca-911/material\" agrega muchos componentes visuales",
19
+ "select": "Seleccionar",
20
+ "dialogTitle": "Adquisición de datos",
21
+ "dialogMessage": "Adquisición de datos en curso <img src=\"/assets/images/loading.gif\" alt=\"\" width=\"20\" />",
22
+ "version": "Versión",
23
+ "refresh": "Actualizar",
24
+ "close": "Cerrar",
25
+ "copyLink": "Copiar enlace",
26
+ "logout": "Cerrar sesión",
27
+ "search": "Buscar",
28
+ "en": "Inglés",
29
+ "fr": "Francés",
30
+ "or": "O",
31
+ "errorTitle": "Error",
32
+ "edit": "Editar",
33
+ "delete": "Eliminar",
34
+ "save": "Guardar",
35
+ "yes": "Sí",
36
+ "no": "No",
37
+ "errorDialog": {
38
+ "titleError": "Error al eliminar",
39
+ "messageError": "Ocurrió un error al eliminar \"{{itemName}}\". Por favor, inténtalo de nuevo más tarde."
40
+ },
41
+ "savingSuccessNotification": {
42
+ "title": "Guardando",
43
+ "message": "El guardado fue exitoso."
44
+ },
45
+ "deleteDialog": {
46
+ "titleFemale": "Eliminar {{itemType}}",
47
+ "titleMale": "Eliminar {{itemType}}",
48
+ "message": "¿Está seguro que desea eliminar \"{{itemName}}\"?",
49
+ "titleError": "No se puede eliminar",
50
+ "messageError": "Ocurrió un error al eliminar el elemento \"{{itemName}}\""
51
+ },
52
+ "cancelEditionDialog": {
53
+ "title": "Confirmación de cancelación",
54
+ "message": "Tiene cambios sin guardar, ¿está seguro que desea deshacerlos?"
55
+ },
56
+ "validationErrorDialog": {
57
+ "title": "Datos inválidos",
58
+ "message": "No puede guardar porque tiene información inválida.",
59
+ "messageNext": "No puede continuar porque tiene información inválida."
60
+ },
61
+ "alertDialog": {
62
+ "errorTitle": "Error",
63
+ "noResult": "Sin resultados",
64
+ "deleteErrorMessage": "Ocurrió un error al eliminar el elemento, por favor intente de nuevo.",
65
+ "genericErrorMessage": "Ocurrió un error, por favor intente de nuevo.",
66
+ "saveErrorMessage": "Ocurrió un error al guardar los datos, por favor intente de nuevo.",
67
+ "loadErrorMessage": "Ocurrió un error al cargar los datos, por favor intente de nuevo."
68
+ },
69
+ "generalError": {
70
+ "errorAlertTitle": "Error",
71
+ "loadingErrorAlertTitle": "Error al cargar",
72
+ "loadingErrorAlertMessage": "Ocurrió una alerta al cargar los datos. Por favor intente de nuevo.",
73
+ "savingErrorAlertTitle": "Error al guardar",
74
+ "savingErrorAlertMessage": "Ocurrió una alerta al guardar los datos. Por favor intente de nuevo.",
75
+ "retryButtonLabel": "Reintentar"
76
+ },
77
+ "error": {
78
+ "requiredField": "Campo obligatorio.",
79
+ "maxLength": "El valor debe tener menos de {{value}} caracteres.",
80
+ "valueMin": "Valor por debajo del mínimo",
81
+ "valueMax": "Valor por encima del máximo",
82
+ "invalidEmail": "Correo electrónico inválido",
83
+ "invalidPhoneNumber": "Número de teléfono inválido",
84
+ "min": "Valor mínimo: {{value}}",
85
+ "max": "Valor máximo: {{value}}",
86
+ "length": "La longitud no debe exceder {{value}} caracteres.",
87
+ "identicalPassword": "Contraseñas iguales",
88
+ "minimumCharacters": "Mínimo 13 caracteres",
89
+ "minimumNumeric": "Mínimo 1 número (0-9)",
90
+ "minimumSpecialCharacter": "Mínimo 1 carácter especial (!, @, $, ...)",
91
+ "minimumUpperAndLowercase": "Mínimo 1 mayúscula y 1 minúscula (A, z)"
92
+ },
93
+ "passwordEdition": {
94
+ "passwordSelection": "Por favor, elija una contraseña.",
95
+ "password": "Contraseña",
96
+ "passwordConfirmation": "Confirmación de contraseña",
97
+ "minimumCharacters": "Mínimo 13 caracteres",
98
+ "minimumOneNumeric": "Mínimo 1 número (0-9)",
99
+ "minimumOneSpecialCharacter": "Mínimo 1 carácter especial (!, @, $, etc.)",
100
+ "needLowerAndUppercase": "Mínimo 1 mayúscula y 1 minúscula (A, z)",
101
+ "equalPasswords": "Contraseñas iguales"
13
102
  }
14
103
  }
@@ -33,9 +33,6 @@ import * as i1$8 from '@angular/material/chips';
33
33
  import { MatChipsModule, MatChipGrid, MatChip, MatChipRemove, MatChipInput } from '@angular/material/chips';
34
34
  import * as i1$9 from '@fortawesome/angular-fontawesome';
35
35
  import { FontAwesomeModule, FaIconComponent } from '@fortawesome/angular-fontawesome';
36
- import { fal, faUsers, faEngineWarning, faCalendarExclamation, faFileAlt, faFileExclamation, faShareAltSquare, faCog, faChartBar, faCommentAltDots, faFolders, faHome, faBell, faFeather, faCalendarDays, faGear, faMessageLines } from '@fortawesome/pro-light-svg-icons';
37
- import { fab } from '@fortawesome/free-brands-svg-icons';
38
- import { fas } from '@fortawesome/free-solid-svg-icons';
39
36
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
40
37
  import * as i2$3 from '@angular/material/autocomplete';
41
38
  import { MatAutocompleteModule, MatAutocompleteTrigger } from '@angular/material/autocomplete';
@@ -1859,6 +1856,30 @@ class BreadcrumbLocation {
1859
1856
  }
1860
1857
  }
1861
1858
 
1859
+ class BreadcrumbService {
1860
+ constructor() {
1861
+ this.showBreadcrumb = computed(() => this.isShown(), ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : []));
1862
+ this.location = signal([], ...(ngDevMode ? [{ debugName: "location" }] : []));
1863
+ this.breadcrumb = signal('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
1864
+ this.translateBreadcrumb = signal(false, ...(ngDevMode ? [{ debugName: "translateBreadcrumb" }] : []));
1865
+ this.isShown = signal(false, ...(ngDevMode ? [{ debugName: "isShown" }] : []));
1866
+ }
1867
+ show(breadcrumb, location = [], translateBreadcrumb = true) {
1868
+ this.isShown.set(true);
1869
+ this.breadcrumb.set(breadcrumb);
1870
+ this.location.set(location);
1871
+ this.translateBreadcrumb.set(translateBreadcrumb);
1872
+ }
1873
+ hide() {
1874
+ this.isShown.set(false);
1875
+ }
1876
+ static { this.ɵfac = function BreadcrumbService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BreadcrumbService)(); }; }
1877
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BreadcrumbService, factory: BreadcrumbService.ɵfac }); }
1878
+ }
1879
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BreadcrumbService, [{
1880
+ type: Injectable
1881
+ }], null, null); })();
1882
+
1862
1883
  class LoadingStateService {
1863
1884
  constructor() {
1864
1885
  this.showLoadingIndicator = computed(() => this.isLoading(), ...(ngDevMode ? [{ debugName: "showLoadingIndicator" }] : []));
@@ -2077,6 +2098,11 @@ function IconComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2077
2098
  i0.ɵɵproperty("src", ctx_r0.image, i0.ɵɵsanitizeUrl);
2078
2099
  } }
2079
2100
  class IconComponent {
2101
+ constructor() {
2102
+ this.isFontAwesome = false;
2103
+ this.faIcon = [];
2104
+ this.image = '';
2105
+ }
2080
2106
  set icon(value) {
2081
2107
  if (value && value.indexOf(' ') > -1) {
2082
2108
  this.isFontAwesome = true;
@@ -2087,14 +2113,7 @@ class IconComponent {
2087
2113
  this.image = value;
2088
2114
  }
2089
2115
  }
2090
- constructor(library) {
2091
- this.isFontAwesome = false;
2092
- this.faIcon = [];
2093
- this.image = '';
2094
- library.addIconPacks(fal, fab, fas);
2095
- library.addIcons(faUsers, faEngineWarning, faCalendarExclamation, faFileAlt, faFileExclamation, faShareAltSquare, faCog, faChartBar, faCommentAltDots, faFolders, faHome, faBell, faFeather, faCalendarDays, faGear, faMessageLines);
2096
- }
2097
- static { this.ɵfac = function IconComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || IconComponent)(i0.ɵɵdirectiveInject(i1$9.FaIconLibrary)); }; }
2116
+ static { this.ɵfac = function IconComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || IconComponent)(); }; }
2098
2117
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconComponent, selectors: [["cauca-icon"]], inputs: { icon: "icon" }, decls: 2, vars: 2, consts: [[1, "icon"], [3, "icon"], ["alt", "icon", 3, "src"]], template: function IconComponent_Template(rf, ctx) { if (rf & 1) {
2099
2118
  i0.ɵɵconditionalCreate(0, IconComponent_Conditional_0_Template, 2, 1, "div", 0);
2100
2119
  i0.ɵɵconditionalCreate(1, IconComponent_Conditional_1_Template, 2, 1, "div", 0);
@@ -2118,10 +2137,10 @@ class IconComponent {
2118
2137
  </div>
2119
2138
  }
2120
2139
  `, styles: ["img{max-height:40px;height:40px}fa-icon{max-height:40px;height:40px}\n"] }]
2121
- }], () => [{ type: i1$9.FaIconLibrary }], { icon: [{
2140
+ }], null, { icon: [{
2122
2141
  type: Input
2123
2142
  }] }); })();
2124
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconComponent, { className: "IconComponent", filePath: "lib/components/presenters/icon/icon.component.ts", lineNumber: 45 }); })();
2143
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconComponent, { className: "IconComponent", filePath: "lib/components/presenters/icon/icon.component.ts", lineNumber: 22 }); })();
2125
2144
 
2126
2145
  function ListPaginatorComponent_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
2127
2146
  i0.ɵɵelementStart(0, "div", 5);
@@ -3399,30 +3418,6 @@ class SectionFieldComponent {
3399
3418
  }], null, null); })();
3400
3419
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionFieldComponent, { className: "SectionFieldComponent", filePath: "lib/components/layout/sections/section-field/section-field.component.ts", lineNumber: 12 }); })();
3401
3420
 
3402
- class BreadcrumbService {
3403
- constructor() {
3404
- this.showBreadcrumb = computed(() => this.isShown(), ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : []));
3405
- this.location = signal([], ...(ngDevMode ? [{ debugName: "location" }] : []));
3406
- this.breadcrumb = signal('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
3407
- this.translateBreadcrumb = signal(false, ...(ngDevMode ? [{ debugName: "translateBreadcrumb" }] : []));
3408
- this.isShown = signal(false, ...(ngDevMode ? [{ debugName: "isShown" }] : []));
3409
- }
3410
- show(breadcrumb, location = [], translateBreadcrumb = true) {
3411
- this.isShown.set(true);
3412
- this.breadcrumb.set(breadcrumb);
3413
- this.location.set(location);
3414
- this.translateBreadcrumb.set(translateBreadcrumb);
3415
- }
3416
- hide() {
3417
- this.isShown.set(false);
3418
- }
3419
- static { this.ɵfac = function BreadcrumbService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BreadcrumbService)(); }; }
3420
- static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BreadcrumbService, factory: BreadcrumbService.ɵfac }); }
3421
- }
3422
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BreadcrumbService, [{
3423
- type: Injectable
3424
- }], null, null); })();
3425
-
3426
3421
  function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3427
3422
  i0.ɵɵelementStart(0, "div", 4);
3428
3423
  i0.ɵɵtext(1);
@@ -4108,7 +4103,6 @@ class CaucaInputFileComponent {
4108
4103
  this.dialog = inject(MatDialog);
4109
4104
  }
4110
4105
  ngOnInit() {
4111
- console.log('transl', this.translateService);
4112
4106
  if (!this.icon && !this.text) {
4113
4107
  this.translateService.get(['material.select', 'material.dialogTitle', 'material.dialogMessage']).subscribe((labels) => {
4114
4108
  this.labels = labels;
@@ -4733,5 +4727,5 @@ class CaucaSlideshowComponent {
4733
4727
  * Generated bundle index. Do not edit.
4734
4728
  */
4735
4729
 
4736
- export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, BreadcrumbLocation, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ColorPickerComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, ExpandablePanelComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuExpandablePanelComponent, MenuExpandablePanelItemComponent, MenuItem, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SelectWithSearchComponent, SnackBarComponent, StrokedButtonComponent, provideCaucaMaterial };
4730
+ export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, BreadcrumbLocation, BreadcrumbService, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ColorPickerComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, ExpandablePanelComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuExpandablePanelComponent, MenuExpandablePanelItemComponent, MenuItem, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SelectWithSearchComponent, SnackBarComponent, StrokedButtonComponent, provideCaucaMaterial };
4737
4731
  //# sourceMappingURL=cauca-911-material.mjs.map