@cauca-911/material 21.2.0 → 21.2.1

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.
@@ -43,6 +43,10 @@
43
43
  "title": "Saving",
44
44
  "message": "The save was successful."
45
45
  },
46
+ "statusMessage": {
47
+ "noDataLabel": "No data",
48
+ "errorLoadingDataLabel": "An error has occured while loading data."
49
+ },
46
50
  "deleteDialog": {
47
51
  "titleFemale": "Delete {{itemType}}",
48
52
  "titleMale": "Delete {{itemType}}",
@@ -43,6 +43,10 @@
43
43
  "title": "Guardando",
44
44
  "message": "El guardado fue exitoso."
45
45
  },
46
+ "statusMessage": {
47
+ "noDataLabel": "Sin datos",
48
+ "errorLoadingDataLabel": "Ocurrió un error al cargar los datos."
49
+ },
46
50
  "deleteDialog": {
47
51
  "titleFemale": "Eliminar {{itemType}}",
48
52
  "titleMale": "Eliminar {{itemType}}",
@@ -69,6 +69,10 @@
69
69
  "title": "Sauvegarde",
70
70
  "message": "La sauvegarde s'est effectuée avec succès."
71
71
  },
72
+ "statusMessage": {
73
+ "noDataLabel": "Aucune donnée",
74
+ "errorLoadingDataLabel": "Une erreur s'est produite lors du chargement des données."
75
+ },
72
76
  "generalError": {
73
77
  "errorAlertTitle": "Erreur",
74
78
  "loadingErrorAlertTitle": "Erreur de chargement",
@@ -3707,6 +3707,62 @@ class SavingErrorBoxComponent {
3707
3707
  }], null, { show: [{ type: i0.Input, args: [{ isSignal: true, alias: "show", required: false }] }, { type: i0.Output, args: ["showChange"] }], specificError: [{ type: i0.Input, args: [{ isSignal: true, alias: "specificError", required: false }] }] }); })();
3708
3708
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SavingErrorBoxComponent, { className: "SavingErrorBoxComponent", filePath: "lib/components/notifications/saving-error-box/saving-error-box.component.ts", lineNumber: 13 }); })();
3709
3709
 
3710
+ class StatusMessageComponent {
3711
+ constructor() {
3712
+ this.type = input('noData', ...(ngDevMode ? [{ debugName: "type" }] : []));
3713
+ this.textKey = input(undefined, ...(ngDevMode ? [{ debugName: "textKey" }] : []));
3714
+ this.icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : []));
3715
+ this.resolvedTextKey = computed(() => {
3716
+ const customTextKey = this.textKey();
3717
+ if (customTextKey) {
3718
+ return customTextKey;
3719
+ }
3720
+ switch (this.type()) {
3721
+ case 'error':
3722
+ return 'statusMessage.errorLoadingDataLabel';
3723
+ case 'custom':
3724
+ return 'statusMessage.noDataLabel';
3725
+ default:
3726
+ return 'statusMessage.noDataLabel';
3727
+ }
3728
+ }, ...(ngDevMode ? [{ debugName: "resolvedTextKey" }] : []));
3729
+ this.resolvedIcon = computed(() => {
3730
+ const customIcon = this.icon();
3731
+ if (customIcon) {
3732
+ return customIcon;
3733
+ }
3734
+ switch (this.type()) {
3735
+ case 'error':
3736
+ return 'error';
3737
+ case 'custom':
3738
+ return 'info';
3739
+ default:
3740
+ return 'grid_off';
3741
+ }
3742
+ }, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : []));
3743
+ }
3744
+ static { this.ɵfac = function StatusMessageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StatusMessageComponent)(); }; }
3745
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StatusMessageComponent, selectors: [["cauca-status-message"]], inputs: { type: [1, "type"], textKey: [1, "textKey"], icon: [1, "icon"] }, decls: 6, vars: 4, consts: [[1, "icon-text"]], template: function StatusMessageComponent_Template(rf, ctx) { if (rf & 1) {
3746
+ i0.ɵɵelementStart(0, "div", 0)(1, "mat-icon");
3747
+ i0.ɵɵtext(2);
3748
+ i0.ɵɵelementEnd();
3749
+ i0.ɵɵelementStart(3, "span");
3750
+ i0.ɵɵtext(4);
3751
+ i0.ɵɵpipe(5, "translate");
3752
+ i0.ɵɵelementEnd()();
3753
+ } if (rf & 2) {
3754
+ i0.ɵɵadvance(2);
3755
+ i0.ɵɵtextInterpolate(ctx.resolvedIcon());
3756
+ i0.ɵɵadvance(2);
3757
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 2, ctx.resolvedTextKey()));
3758
+ } }, dependencies: [MatIcon, TranslatePipe], styles: [".icon-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}"], changeDetection: 0 }); }
3759
+ }
3760
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StatusMessageComponent, [{
3761
+ type: Component,
3762
+ args: [{ selector: 'cauca-status-message', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon, TranslatePipe], template: "<div class=\"icon-text\">\r\n <mat-icon>{{ resolvedIcon() }}</mat-icon>\r\n <span>{{ resolvedTextKey() | translate }}</span>\r\n</div>\r\n", styles: [".icon-text{display:flex;align-items:center;gap:8px}\n"] }]
3763
+ }], null, { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], textKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "textKey", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }] }); })();
3764
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StatusMessageComponent, { className: "StatusMessageComponent", filePath: "lib/components/notifications/status-message/status-message.component.ts", lineNumber: 15 }); })();
3765
+
3710
3766
  class AutoTrimAndLowerDirective {
3711
3767
  constructor(el) {
3712
3768
  this.el = el;
@@ -4259,5 +4315,5 @@ class CaucaSlideshowComponent {
4259
4315
  * Generated bundle index. Do not edit.
4260
4316
  */
4261
4317
 
4262
- export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, BreadcrumbLocation, BreadcrumbService, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ColorPickerComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, ExpandablePanelAccordionComponent, ExpandablePanelComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, Iso8601TimeSpanPipe, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuExpandablePanelComponent, MenuExpandablePanelItemComponent, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SelectWithSearchComponent, SnackBarComponent, StrokedButtonComponent, provideCaucaMaterial };
4318
+ export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, BreadcrumbLocation, BreadcrumbService, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ColorPickerComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, ExpandablePanelAccordionComponent, ExpandablePanelComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, Iso8601TimeSpanPipe, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuExpandablePanelComponent, MenuExpandablePanelItemComponent, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SelectWithSearchComponent, SnackBarComponent, StatusMessageComponent, StrokedButtonComponent, provideCaucaMaterial };
4263
4319
  //# sourceMappingURL=cauca-911-material.mjs.map