@cauca-911/material 20.2.7 → 20.2.8

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.
@@ -33,6 +33,9 @@ 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';
36
39
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
37
40
  import * as i2$3 from '@angular/material/autocomplete';
38
41
  import { MatAutocompleteModule, MatAutocompleteTrigger } from '@angular/material/autocomplete';
@@ -1856,30 +1859,6 @@ class BreadcrumbLocation {
1856
1859
  }
1857
1860
  }
1858
1861
 
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
-
1883
1862
  class LoadingStateService {
1884
1863
  constructor() {
1885
1864
  this.showLoadingIndicator = computed(() => this.isLoading(), ...(ngDevMode ? [{ debugName: "showLoadingIndicator" }] : []));
@@ -2086,7 +2065,7 @@ function IconComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
2086
2065
  } if (rf & 2) {
2087
2066
  const ctx_r0 = i0.ɵɵnextContext();
2088
2067
  i0.ɵɵadvance();
2089
- i0.ɵɵproperty("icon", ctx_r0.faIcon[0]);
2068
+ i0.ɵɵproperty("icon", ctx_r0.faIcon);
2090
2069
  } }
2091
2070
  function IconComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2092
2071
  i0.ɵɵelementStart(0, "div", 0);
@@ -2098,11 +2077,6 @@ function IconComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2098
2077
  i0.ɵɵproperty("src", ctx_r0.image, i0.ɵɵsanitizeUrl);
2099
2078
  } }
2100
2079
  class IconComponent {
2101
- constructor() {
2102
- this.isFontAwesome = false;
2103
- this.faIcon = [];
2104
- this.image = '';
2105
- }
2106
2080
  set icon(value) {
2107
2081
  if (value && value.indexOf(' ') > -1) {
2108
2082
  this.isFontAwesome = true;
@@ -2113,12 +2087,19 @@ class IconComponent {
2113
2087
  this.image = value;
2114
2088
  }
2115
2089
  }
2116
- static { this.ɵfac = function IconComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || IconComponent)(); }; }
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)); }; }
2117
2098
  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) {
2118
2099
  i0.ɵɵconditionalCreate(0, IconComponent_Conditional_0_Template, 2, 1, "div", 0);
2119
2100
  i0.ɵɵconditionalCreate(1, IconComponent_Conditional_1_Template, 2, 1, "div", 0);
2120
2101
  } if (rf & 2) {
2121
- i0.ɵɵconditional(ctx.isFontAwesome ? 0 : -1);
2102
+ i0.ɵɵconditional(ctx.isFontAwesome && ctx.faIcon && ctx.faIcon.length > 0 ? 0 : -1);
2122
2103
  i0.ɵɵadvance();
2123
2104
  i0.ɵɵconditional(!ctx.isFontAwesome && ctx.image ? 1 : -1);
2124
2105
  } }, dependencies: [FontAwesomeModule, i1$9.FaIconComponent], styles: ["img[_ngcontent-%COMP%]{max-height:40px;height:40px}fa-icon[_ngcontent-%COMP%]{max-height:40px;height:40px}"] }); }
@@ -2126,9 +2107,9 @@ class IconComponent {
2126
2107
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IconComponent, [{
2127
2108
  type: Component,
2128
2109
  args: [{ selector: 'cauca-icon', standalone: true, imports: [FontAwesomeModule], template: `
2129
- @if (isFontAwesome) {
2110
+ @if (isFontAwesome && faIcon && faIcon.length > 0) {
2130
2111
  <div class="icon">
2131
- <fa-icon [icon]="faIcon[0]"></fa-icon>
2112
+ <fa-icon [icon]="faIcon"></fa-icon>
2132
2113
  </div>
2133
2114
  }
2134
2115
  @if (!isFontAwesome && image) {
@@ -2137,10 +2118,10 @@ class IconComponent {
2137
2118
  </div>
2138
2119
  }
2139
2120
  `, styles: ["img{max-height:40px;height:40px}fa-icon{max-height:40px;height:40px}\n"] }]
2140
- }], null, { icon: [{
2121
+ }], () => [{ type: i1$9.FaIconLibrary }], { icon: [{
2141
2122
  type: Input
2142
2123
  }] }); })();
2143
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconComponent, { className: "IconComponent", filePath: "lib/components/presenters/icon/icon.component.ts", lineNumber: 23 }); })();
2124
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconComponent, { className: "IconComponent", filePath: "lib/components/presenters/icon/icon.component.ts", lineNumber: 45 }); })();
2144
2125
 
2145
2126
  function ListPaginatorComponent_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
2146
2127
  i0.ɵɵelementStart(0, "div", 5);
@@ -3418,6 +3399,30 @@ class SectionFieldComponent {
3418
3399
  }], null, null); })();
3419
3400
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionFieldComponent, { className: "SectionFieldComponent", filePath: "lib/components/layout/sections/section-field/section-field.component.ts", lineNumber: 12 }); })();
3420
3401
 
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
+
3421
3426
  function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3422
3427
  i0.ɵɵelementStart(0, "div", 4);
3423
3428
  i0.ɵɵtext(1);
@@ -4728,5 +4733,5 @@ class CaucaSlideshowComponent {
4728
4733
  * Generated bundle index. Do not edit.
4729
4734
  */
4730
4735
 
4731
- 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 };
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 };
4732
4737
  //# sourceMappingURL=cauca-911-material.mjs.map