brainloper-ui 21.0.2 → 21.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainloper-ui",
3
- "version": "21.0.2",
3
+ "version": "21.1.1",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@angular/animations": "^21.2.18",
@@ -1,54 +1,56 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnChanges, EventEmitter, SimpleChanges, TemplateRef, AfterContentInit, QueryList, ChangeDetectorRef, OnDestroy, ElementRef, PipeTransform } from '@angular/core';
3
- import * as i48 from '@angular/material/dialog';
2
+ import { OnInit, OnChanges, EventEmitter, SimpleChanges, TemplateRef, AfterContentInit, QueryList, ChangeDetectorRef, ElementRef, PipeTransform } from '@angular/core';
3
+ import * as i47 from '@angular/material/dialog';
4
4
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
5
5
  import * as rxjs from 'rxjs';
6
+ import { Observable } from 'rxjs';
6
7
  import { HttpClient } from '@angular/common/http';
7
- import * as i51 from '@angular/material/paginator';
8
+ import * as i50 from '@angular/material/paginator';
8
9
  import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator';
9
- import * as i46 from '@angular/material/tooltip';
10
+ import * as i45 from '@angular/material/tooltip';
10
11
  import { TooltipPosition, MatTooltip } from '@angular/material/tooltip';
11
- import * as i54 from '@angular/forms';
12
- import { UntypedFormGroup, AbstractControl, UntypedFormControl, UntypedFormBuilder, FormGroup, FormBuilder, ControlValueAccessor } from '@angular/forms';
12
+ import * as i53 from '@angular/forms';
13
+ import { UntypedFormGroup, AbstractControl, UntypedFormControl, UntypedFormBuilder, ControlValueAccessor } from '@angular/forms';
14
+ import * as i41 from '@angular/material/autocomplete';
15
+ import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
13
16
  import { AnimationItem } from 'lottie-web';
14
17
  import { AnimationOptions } from 'ngx-lottie';
15
18
  import { jsPDF } from 'jspdf';
16
- import * as i55 from '@angular/router';
19
+ import * as i54 from '@angular/router';
17
20
  import { Router } from '@angular/router';
18
- import * as i17 from '@angular/common';
19
- import * as i18 from '@angular/material/button';
20
- import * as i19 from '@angular/material/slide-toggle';
21
- import * as i20 from '@angular/material/progress-bar';
22
- import * as i21 from '@angular/material/core';
23
- import * as i22 from '@angular/material/bottom-sheet';
24
- import * as i23 from '@angular/material/chips';
25
- import * as i24 from '@angular/material/tree';
26
- import * as i25 from '@angular/material/button-toggle';
27
- import * as i26 from '@angular/material/badge';
28
- import * as i27 from '@angular/material/icon';
29
- import * as i28 from '@angular/material/progress-spinner';
30
- import * as i29 from '@angular/material/toolbar';
31
- import * as i30 from '@angular/material/sidenav';
32
- import * as i31 from '@angular/material/menu';
33
- import * as i32 from '@angular/material/list';
34
- import * as i33 from '@angular/material/divider';
35
- import * as i34 from '@angular/material/grid-list';
36
- import * as i35 from '@angular/material/expansion';
37
- import * as i36 from '@angular/material/tabs';
38
- import * as i37 from '@angular/material/card';
39
- import * as i38 from '@angular/material/stepper';
40
- import * as i39 from '@angular/material/form-field';
41
- import * as i40 from '@angular/material/input';
42
- import * as i41 from '@angular/material/select';
43
- import * as i42 from '@angular/material/autocomplete';
44
- import * as i43 from '@angular/material/checkbox';
45
- import * as i44 from '@angular/material/radio';
46
- import * as i45 from '@angular/material/datepicker';
47
- import * as i47 from '@angular/material/snack-bar';
48
- import * as i49 from '@angular/material/table';
49
- import * as i50 from '@angular/material/sort';
50
- import * as i52 from '@angular/material/slider';
51
- import * as i53 from '@ng-bootstrap/ng-bootstrap';
21
+ import * as i16 from '@angular/common';
22
+ import * as i17 from '@angular/material/button';
23
+ import * as i18 from '@angular/material/slide-toggle';
24
+ import * as i19 from '@angular/material/progress-bar';
25
+ import * as i20 from '@angular/material/core';
26
+ import * as i21 from '@angular/material/bottom-sheet';
27
+ import * as i22 from '@angular/material/chips';
28
+ import * as i23 from '@angular/material/tree';
29
+ import * as i24 from '@angular/material/button-toggle';
30
+ import * as i25 from '@angular/material/badge';
31
+ import * as i26 from '@angular/material/icon';
32
+ import * as i27 from '@angular/material/progress-spinner';
33
+ import * as i28 from '@angular/material/toolbar';
34
+ import * as i29 from '@angular/material/sidenav';
35
+ import * as i30 from '@angular/material/menu';
36
+ import * as i31 from '@angular/material/list';
37
+ import * as i32 from '@angular/material/divider';
38
+ import * as i33 from '@angular/material/grid-list';
39
+ import * as i34 from '@angular/material/expansion';
40
+ import * as i35 from '@angular/material/tabs';
41
+ import * as i36 from '@angular/material/card';
42
+ import * as i37 from '@angular/material/stepper';
43
+ import * as i38 from '@angular/material/form-field';
44
+ import * as i39 from '@angular/material/input';
45
+ import * as i40 from '@angular/material/select';
46
+ import * as i42 from '@angular/material/checkbox';
47
+ import * as i43 from '@angular/material/radio';
48
+ import * as i44 from '@angular/material/datepicker';
49
+ import * as i46 from '@angular/material/snack-bar';
50
+ import * as i48 from '@angular/material/table';
51
+ import * as i49 from '@angular/material/sort';
52
+ import * as i51 from '@angular/material/slider';
53
+ import * as i52 from '@ng-bootstrap/ng-bootstrap';
52
54
 
53
55
  declare class MessageService {
54
56
  private dialog;
@@ -297,6 +299,7 @@ declare class CombosComponent implements OnInit, OnChanges {
297
299
  required: boolean;
298
300
  disabled: boolean;
299
301
  addFinal: boolean;
302
+ chipsPosition: 'bottom' | 'top';
300
303
  appearance: any;
301
304
  reloadCombo: EventEmitter<any>;
302
305
  control: AbstractControl | UntypedFormControl | null;
@@ -307,16 +310,26 @@ declare class CombosComponent implements OnInit, OnChanges {
307
310
  changeOptionDataComplete: EventEmitter<any>;
308
311
  returnDataCombo: EventEmitter<any>;
309
312
  filteredList: Array<any>;
313
+ searchControl: UntypedFormControl;
314
+ filteredOptions: Observable<any[]>;
315
+ selectedItemsArray: any[];
316
+ private destroyRef;
310
317
  constructor(http: HttpService);
311
318
  ngOnInit(): void;
312
319
  ngOnChanges(changes: SimpleChanges): void;
313
320
  initData(): void;
314
321
  getData(): void;
322
+ displayFn(value: any): string;
323
+ private setupFilter;
324
+ private _filter;
325
+ onOptionSelected(event: MatAutocompleteSelectedEvent): void;
326
+ removeSelected(value: any): void;
327
+ updateSelectedItems(): void;
315
328
  selectedData($event: any): void;
316
329
  findData($event: any): void;
317
330
  toggleTooltip(): void;
318
331
  static ɵfac: i0.ɵɵFactoryDeclaration<CombosComponent, never>;
319
- static ɵcmp: i0.ɵɵComponentDeclaration<CombosComponent, "combos", never, { "dataCombos": { "alias": "dataCombos"; "required": false; }; "additionalData": { "alias": "additionalData"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "addFinal": { "alias": "addFinal"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "reloadCombo": { "alias": "reloadCombo"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, { "changeOption": "changeOption"; "changeOptionDataComplete": "changeOptionDataComplete"; "returnDataCombo": "returnDataCombo"; }, never, never, false, never>;
332
+ static ɵcmp: i0.ɵɵComponentDeclaration<CombosComponent, "combos", never, { "dataCombos": { "alias": "dataCombos"; "required": false; }; "additionalData": { "alias": "additionalData"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "addFinal": { "alias": "addFinal"; "required": false; }; "chipsPosition": { "alias": "chipsPosition"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "reloadCombo": { "alias": "reloadCombo"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, { "changeOption": "changeOption"; "changeOptionDataComplete": "changeOptionDataComplete"; "returnDataCombo": "returnDataCombo"; }, never, never, false, never>;
320
333
  }
321
334
  interface CombosConfiguration$1 {
322
335
  selectionField?: string;
@@ -620,6 +633,10 @@ declare class FiltersComponent implements OnInit, OnChanges {
620
633
  selectFilter($event: any): void;
621
634
  selectFilterData($event: any, item: any): Promise<void>;
622
635
  delteFilter(item: any): void;
636
+ setupFilterControl(item: any): void;
637
+ private filterItems;
638
+ onFilterOptionSelected(event: MatAutocompleteSelectedEvent, item: any): void;
639
+ getFilteredOptions(item: any): Observable<any[]>;
623
640
  loadDates(value?: Date): void;
624
641
  loadDatesBetween(init?: boolean, value1?: Date, value2?: Date): void;
625
642
  loadFilter(): Promise<void>;
@@ -627,30 +644,6 @@ declare class FiltersComponent implements OnInit, OnChanges {
627
644
  static ɵcmp: i0.ɵɵComponentDeclaration<FiltersComponent, "app-filters", never, { "headerFilters": { "alias": "headerFilters"; "required": false; }; }, { "applyFilters": "applyFilters"; }, never, never, false, never>;
628
645
  }
629
646
 
630
- declare class SelectFilterComponent implements OnInit, OnDestroy {
631
- private searchFormValueChangesSubscription;
632
- input: any;
633
- array: any;
634
- placeholder: string;
635
- color: string;
636
- displayMember: string;
637
- showSpinner: boolean;
638
- noResultsMessage: string;
639
- hasGroup: boolean;
640
- groupArrayName: string;
641
- noResults: boolean;
642
- localSpinner: boolean;
643
- filteredReturn: EventEmitter<any>;
644
- filteredItems: any;
645
- searchForm: FormGroup;
646
- constructor(fb: FormBuilder);
647
- ngOnInit(): void;
648
- handleKeydown(event: KeyboardEvent): void;
649
- ngOnDestroy(): void;
650
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectFilterComponent, never>;
651
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectFilterComponent, "app-select-filter", never, { "array": { "alias": "array"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "color": { "alias": "color"; "required": false; }; "displayMember": { "alias": "displayMember"; "required": false; }; "showSpinner": { "alias": "showSpinner"; "required": false; }; "noResultsMessage": { "alias": "noResultsMessage"; "required": false; }; "hasGroup": { "alias": "hasGroup"; "required": false; }; "groupArrayName": { "alias": "groupArrayName"; "required": false; }; }, { "filteredReturn": "filteredReturn"; }, never, never, false, never>;
652
- }
653
-
654
647
  declare class ThousandSeparatorDirective implements ControlValueAccessor {
655
648
  private el;
656
649
  private onChange;
@@ -674,7 +667,7 @@ declare class ThousandSeparatorPipe implements PipeTransform {
674
667
 
675
668
  declare class BrainloperUiModule {
676
669
  static ɵfac: i0.ɵɵFactoryDeclaration<BrainloperUiModule, never>;
677
- static ɵmod: i0.ɵɵNgModuleDeclaration<BrainloperUiModule, [typeof DataTableComponent, typeof TableModalComponent, typeof CombosComponent, typeof FileInputComponent, typeof LoadingComponent, typeof TemplateFuelComponent, typeof BreadCrumbComponent, typeof TemplateOtComponent, typeof ButtonLabelComponent, typeof ButtonIconComponent, typeof CarouselComponent, typeof FiltersComponent, typeof SelectFilterComponent, typeof CarouselItemDirective, typeof ThousandSeparatorDirective, typeof ThousandSeparatorPipe], [typeof i17.CommonModule, typeof i18.MatButtonModule, typeof i19.MatSlideToggleModule, typeof i20.MatProgressBarModule, typeof i21.MatRippleModule, typeof i22.MatBottomSheetModule, typeof i23.MatChipsModule, typeof i24.MatTreeModule, typeof i18.MatButtonModule, typeof i25.MatButtonToggleModule, typeof i26.MatBadgeModule, typeof i27.MatIconModule, typeof i28.MatProgressSpinnerModule, typeof i29.MatToolbarModule, typeof i30.MatSidenavModule, typeof i31.MatMenuModule, typeof i32.MatListModule, typeof i33.MatDividerModule, typeof i34.MatGridListModule, typeof i35.MatExpansionModule, typeof i36.MatTabsModule, typeof i37.MatCardModule, typeof i38.MatStepperModule, typeof i39.MatFormFieldModule, typeof i40.MatInputModule, typeof i41.MatSelectModule, typeof i42.MatAutocompleteModule, typeof i43.MatCheckboxModule, typeof i44.MatRadioModule, typeof i45.MatDatepickerModule, typeof i46.MatTooltipModule, typeof i47.MatSnackBarModule, typeof i48.MatDialogModule, typeof i49.MatTableModule, typeof i50.MatSortModule, typeof i51.MatPaginatorModule, typeof i52.MatSliderModule, typeof i21.MatNativeDateModule, typeof i53.NgbModule, typeof i54.FormsModule, typeof i54.ReactiveFormsModule, typeof i55.RouterModule, typeof i46.MatTooltipModule], [typeof i19.MatSlideToggleModule, typeof i20.MatProgressBarModule, typeof i21.MatRippleModule, typeof i22.MatBottomSheetModule, typeof i23.MatChipsModule, typeof i24.MatTreeModule, typeof i18.MatButtonModule, typeof i25.MatButtonToggleModule, typeof i26.MatBadgeModule, typeof i27.MatIconModule, typeof i28.MatProgressSpinnerModule, typeof i29.MatToolbarModule, typeof i30.MatSidenavModule, typeof i31.MatMenuModule, typeof i32.MatListModule, typeof i33.MatDividerModule, typeof i34.MatGridListModule, typeof i35.MatExpansionModule, typeof i36.MatTabsModule, typeof i37.MatCardModule, typeof i38.MatStepperModule, typeof i39.MatFormFieldModule, typeof i40.MatInputModule, typeof i41.MatSelectModule, typeof i42.MatAutocompleteModule, typeof i43.MatCheckboxModule, typeof i44.MatRadioModule, typeof i45.MatDatepickerModule, typeof i46.MatTooltipModule, typeof i47.MatSnackBarModule, typeof i48.MatDialogModule, typeof i49.MatTableModule, typeof i50.MatSortModule, typeof i51.MatPaginatorModule, typeof i52.MatSliderModule, typeof i21.MatNativeDateModule, typeof DataTableComponent, typeof TableModalComponent, typeof CombosComponent, typeof FileInputComponent, typeof LoadingComponent, typeof BreadCrumbComponent, typeof ButtonLabelComponent, typeof ButtonIconComponent, typeof i53.NgbModule, typeof CarouselComponent, typeof FiltersComponent, typeof SelectFilterComponent, typeof CarouselItemDirective, typeof ThousandSeparatorDirective, typeof ThousandSeparatorPipe]>;
670
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BrainloperUiModule, [typeof DataTableComponent, typeof TableModalComponent, typeof CombosComponent, typeof FileInputComponent, typeof LoadingComponent, typeof TemplateFuelComponent, typeof BreadCrumbComponent, typeof TemplateOtComponent, typeof ButtonLabelComponent, typeof ButtonIconComponent, typeof CarouselComponent, typeof FiltersComponent, typeof CarouselItemDirective, typeof ThousandSeparatorDirective, typeof ThousandSeparatorPipe], [typeof i16.CommonModule, typeof i17.MatButtonModule, typeof i18.MatSlideToggleModule, typeof i19.MatProgressBarModule, typeof i20.MatRippleModule, typeof i21.MatBottomSheetModule, typeof i22.MatChipsModule, typeof i23.MatTreeModule, typeof i17.MatButtonModule, typeof i24.MatButtonToggleModule, typeof i25.MatBadgeModule, typeof i26.MatIconModule, typeof i27.MatProgressSpinnerModule, typeof i28.MatToolbarModule, typeof i29.MatSidenavModule, typeof i30.MatMenuModule, typeof i31.MatListModule, typeof i32.MatDividerModule, typeof i33.MatGridListModule, typeof i34.MatExpansionModule, typeof i35.MatTabsModule, typeof i36.MatCardModule, typeof i37.MatStepperModule, typeof i38.MatFormFieldModule, typeof i39.MatInputModule, typeof i40.MatSelectModule, typeof i41.MatAutocompleteModule, typeof i42.MatCheckboxModule, typeof i43.MatRadioModule, typeof i44.MatDatepickerModule, typeof i45.MatTooltipModule, typeof i46.MatSnackBarModule, typeof i47.MatDialogModule, typeof i48.MatTableModule, typeof i49.MatSortModule, typeof i50.MatPaginatorModule, typeof i51.MatSliderModule, typeof i20.MatNativeDateModule, typeof i52.NgbModule, typeof i53.FormsModule, typeof i53.ReactiveFormsModule, typeof i54.RouterModule, typeof i45.MatTooltipModule], [typeof i18.MatSlideToggleModule, typeof i19.MatProgressBarModule, typeof i20.MatRippleModule, typeof i21.MatBottomSheetModule, typeof i22.MatChipsModule, typeof i23.MatTreeModule, typeof i17.MatButtonModule, typeof i24.MatButtonToggleModule, typeof i25.MatBadgeModule, typeof i26.MatIconModule, typeof i27.MatProgressSpinnerModule, typeof i28.MatToolbarModule, typeof i29.MatSidenavModule, typeof i30.MatMenuModule, typeof i31.MatListModule, typeof i32.MatDividerModule, typeof i33.MatGridListModule, typeof i34.MatExpansionModule, typeof i35.MatTabsModule, typeof i36.MatCardModule, typeof i37.MatStepperModule, typeof i38.MatFormFieldModule, typeof i39.MatInputModule, typeof i40.MatSelectModule, typeof i41.MatAutocompleteModule, typeof i42.MatCheckboxModule, typeof i43.MatRadioModule, typeof i44.MatDatepickerModule, typeof i45.MatTooltipModule, typeof i46.MatSnackBarModule, typeof i47.MatDialogModule, typeof i48.MatTableModule, typeof i49.MatSortModule, typeof i50.MatPaginatorModule, typeof i51.MatSliderModule, typeof i20.MatNativeDateModule, typeof DataTableComponent, typeof TableModalComponent, typeof CombosComponent, typeof FileInputComponent, typeof LoadingComponent, typeof BreadCrumbComponent, typeof ButtonLabelComponent, typeof ButtonIconComponent, typeof i52.NgbModule, typeof CarouselComponent, typeof FiltersComponent, typeof CarouselItemDirective, typeof ThousandSeparatorDirective, typeof ThousandSeparatorPipe]>;
678
671
  static ɵinj: i0.ɵɵInjectorDeclaration<BrainloperUiModule>;
679
672
  }
680
673
 
@@ -917,5 +910,5 @@ interface IButtonIcon {
917
910
  iconColor?: string;
918
911
  }
919
912
 
920
- export { BrainloperUiModule, BreadCrumbComponent, ButtonIconComponent, ButtonLabelComponent, CarouselComponent, CarouselItemDirective, CombosComponent, CryptoService, DataTableComponent, ExportDataService, FileFormsService, FileInputComponent, FiltersComponent, FunctionsService, GeneratePdfService, HttpResponseType, HttpService, LoadingComponent, LocalStorageService, MenuBreadCrumb, MessageService, ScreenSizeUtil, SelectFilterComponent, SessionService, TableModalComponent, ThousandSeparatorDirective, ThousandSeparatorPipe, enumActions, enumRules };
913
+ export { BrainloperUiModule, BreadCrumbComponent, ButtonIconComponent, ButtonLabelComponent, CarouselComponent, CarouselItemDirective, CombosComponent, CryptoService, DataTableComponent, ExportDataService, FileFormsService, FileInputComponent, FiltersComponent, FunctionsService, GeneratePdfService, HttpResponseType, HttpService, LoadingComponent, LocalStorageService, MenuBreadCrumb, MessageService, ScreenSizeUtil, SessionService, TableModalComponent, ThousandSeparatorDirective, ThousandSeparatorPipe, enumActions, enumRules };
921
914
  export type { CombosConfiguration, Filter, HeaderFilters, IButtonIcon, IButtonlabelEdit, IMenuBreadCrumb, PurchaseOrderItemReport, Rules, TableColumns, TableConfiguration, TemplatePdfFo, TemplatePdfOt, TemplatePdfPurchaseOrder, fileFormsParams, fileInputParams, params };