@cauca-911/material 21.2.0 → 21.2.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.
@@ -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",
@@ -1958,9 +1958,10 @@ class BadgeComponent {
1958
1958
  this.icon = input.required(...(ngDevMode ? [{ debugName: "icon" }] : []));
1959
1959
  this.label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
1960
1960
  this.color = input('primary', ...(ngDevMode ? [{ debugName: "color" }] : []));
1961
+ this.autoTranslate = input(true, ...(ngDevMode ? [{ debugName: "autoTranslate" }] : []));
1961
1962
  }
1962
1963
  static { this.ɵfac = function BadgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BadgeComponent)(); }; }
1963
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BadgeComponent, selectors: [["cauca-badge"]], inputs: { icon: [1, "icon"], label: [1, "label"], color: [1, "color"] }, decls: 7, vars: 5, consts: [["highlighted", "", "disableRipple", "", 3, "color"], [1, "mat-chip-content"], [1, "chip-label"]], template: function BadgeComponent_Template(rf, ctx) { if (rf & 1) {
1964
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BadgeComponent, selectors: [["cauca-badge"]], inputs: { icon: [1, "icon"], label: [1, "label"], color: [1, "color"], autoTranslate: [1, "autoTranslate"] }, decls: 7, vars: 5, consts: [["highlighted", "", "disableRipple", "", 3, "color"], [1, "mat-chip-content"], [1, "chip-label"]], template: function BadgeComponent_Template(rf, ctx) { if (rf & 1) {
1964
1965
  i0.ɵɵelementStart(0, "mat-chip", 0)(1, "div", 1)(2, "mat-icon");
1965
1966
  i0.ɵɵtext(3);
1966
1967
  i0.ɵɵelementEnd();
@@ -1973,13 +1974,13 @@ class BadgeComponent {
1973
1974
  i0.ɵɵadvance(3);
1974
1975
  i0.ɵɵtextInterpolate(ctx.icon());
1975
1976
  i0.ɵɵadvance(2);
1976
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 3, ctx.label()));
1977
+ i0.ɵɵtextInterpolate(ctx.autoTranslate() ? i0.ɵɵpipeBind1(6, 3, ctx.label()) : ctx.label());
1977
1978
  } }, dependencies: [TranslateModule, MatChipsModule, i1$7.MatChip, MatIcon, i1.TranslatePipe], styles: [".mat-chip-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:8px}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
1978
1979
  }
1979
1980
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BadgeComponent, [{
1980
1981
  type: Component,
1981
- args: [{ selector: 'cauca-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, MatChipsModule, MatIcon], template: "<mat-chip highlighted disableRipple [color]=\"color()\">\n <div class=\"mat-chip-content\">\n <mat-icon>{{icon()}}</mat-icon>\n <div class=\"chip-label\">{{label() | translate}}</div>\n </div>\n</mat-chip>", styles: [".mat-chip-content{display:flex;justify-content:space-between;align-items:center;gap:8px}mat-icon{color:inherit}\n"] }]
1982
- }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] }); })();
1982
+ args: [{ selector: 'cauca-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, MatChipsModule, MatIcon], template: "<mat-chip highlighted disableRipple [color]=\"color()\">\n <div class=\"mat-chip-content\">\n <mat-icon>{{icon()}}</mat-icon>\n <div class=\"chip-label\">{{autoTranslate() ? (label() | translate) : label()}}</div>\n </div>\n</mat-chip>", styles: [".mat-chip-content{display:flex;justify-content:space-between;align-items:center;gap:8px}mat-icon{color:inherit}\n"] }]
1983
+ }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], autoTranslate: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoTranslate", required: false }] }] }); })();
1983
1984
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BadgeComponent, { className: "BadgeComponent", filePath: "lib/components/presenters/badge/badge.component.ts", lineNumber: 14 }); })();
1984
1985
 
1985
1986
  function IconComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
@@ -3707,6 +3708,62 @@ class SavingErrorBoxComponent {
3707
3708
  }], 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
3709
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SavingErrorBoxComponent, { className: "SavingErrorBoxComponent", filePath: "lib/components/notifications/saving-error-box/saving-error-box.component.ts", lineNumber: 13 }); })();
3709
3710
 
3711
+ class StatusMessageComponent {
3712
+ constructor() {
3713
+ this.type = input('noData', ...(ngDevMode ? [{ debugName: "type" }] : []));
3714
+ this.textKey = input(undefined, ...(ngDevMode ? [{ debugName: "textKey" }] : []));
3715
+ this.icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : []));
3716
+ this.resolvedTextKey = computed(() => {
3717
+ const customTextKey = this.textKey();
3718
+ if (customTextKey) {
3719
+ return customTextKey;
3720
+ }
3721
+ switch (this.type()) {
3722
+ case 'error':
3723
+ return 'statusMessage.errorLoadingDataLabel';
3724
+ case 'custom':
3725
+ return 'statusMessage.noDataLabel';
3726
+ default:
3727
+ return 'statusMessage.noDataLabel';
3728
+ }
3729
+ }, ...(ngDevMode ? [{ debugName: "resolvedTextKey" }] : []));
3730
+ this.resolvedIcon = computed(() => {
3731
+ const customIcon = this.icon();
3732
+ if (customIcon) {
3733
+ return customIcon;
3734
+ }
3735
+ switch (this.type()) {
3736
+ case 'error':
3737
+ return 'error';
3738
+ case 'custom':
3739
+ return 'info';
3740
+ default:
3741
+ return 'grid_off';
3742
+ }
3743
+ }, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : []));
3744
+ }
3745
+ static { this.ɵfac = function StatusMessageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StatusMessageComponent)(); }; }
3746
+ 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) {
3747
+ i0.ɵɵelementStart(0, "div", 0)(1, "mat-icon");
3748
+ i0.ɵɵtext(2);
3749
+ i0.ɵɵelementEnd();
3750
+ i0.ɵɵelementStart(3, "span");
3751
+ i0.ɵɵtext(4);
3752
+ i0.ɵɵpipe(5, "translate");
3753
+ i0.ɵɵelementEnd()();
3754
+ } if (rf & 2) {
3755
+ i0.ɵɵadvance(2);
3756
+ i0.ɵɵtextInterpolate(ctx.resolvedIcon());
3757
+ i0.ɵɵadvance(2);
3758
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 2, ctx.resolvedTextKey()));
3759
+ } }, dependencies: [MatIcon, TranslatePipe], styles: [".icon-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}"], changeDetection: 0 }); }
3760
+ }
3761
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StatusMessageComponent, [{
3762
+ type: Component,
3763
+ 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"] }]
3764
+ }], 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 }] }] }); })();
3765
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StatusMessageComponent, { className: "StatusMessageComponent", filePath: "lib/components/notifications/status-message/status-message.component.ts", lineNumber: 15 }); })();
3766
+
3710
3767
  class AutoTrimAndLowerDirective {
3711
3768
  constructor(el) {
3712
3769
  this.el = el;
@@ -4259,5 +4316,5 @@ class CaucaSlideshowComponent {
4259
4316
  * Generated bundle index. Do not edit.
4260
4317
  */
4261
4318
 
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 };
4319
+ 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
4320
  //# sourceMappingURL=cauca-911-material.mjs.map