import * as i0 from '@angular/core'; import { Provider, OnInit, EventEmitter, OnDestroy, ElementRef, PipeTransform, ChangeDetectorRef, AfterViewInit, OnChanges, TemplateRef, ViewContainerRef, SimpleChanges, AfterContentChecked, AfterContentInit, QueryList, NgZone, InjectionToken, TrackByFunction, Injector, ComponentFactoryResolver, ApplicationRef, ComponentRef, Component } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { TranslationObject, TranslateService } from '@ngx-translate/core'; import { ValidationErrors, ValidatorFn, AbstractControl, FormControl, FormGroup } from '@angular/forms'; import { Resource, Service, IParamsCollection, DocumentCollection, IPage as IPage$1 } from 'ngx-jsonapi'; import { Observable, UnaryFunction, Subject, BehaviorSubject } from 'rxjs'; import { Params, ActivatedRoute, Router, UrlTree } from '@angular/router'; import { Location, DatePipe } from '@angular/common'; import { UploadOutput } from 'ngx-uploader'; import { MatDialogRef, MatDialog } from '@angular/material/dialog'; import { MatBottomSheet } from '@angular/material/bottom-sheet'; import { FormlyFieldConfig, FormlyTemplateOptions, FormlyForm } from '@ngx-formly/core'; import { MatTabGroup } from '@angular/material/tabs'; import { MatExpansionPanel } from '@angular/material/expansion'; import { CdkPortal, TemplatePortal } from '@angular/cdk/portal'; import { ThemePalette } from '@angular/material/core'; import { Directionality, Direction } from '@angular/cdk/bidi'; import { ViewportRuler } from '@angular/cdk/scrolling'; import { Platform } from '@angular/cdk/platform'; import { AnimationTriggerMetadata } from '@angular/animations'; import { MatIconRegistry } from '@angular/material/icon'; import { DomSanitizer } from '@angular/platform-browser'; import { MatAutocompleteTrigger } from '@angular/material/autocomplete'; import { MatTableDataSource } from '@angular/material/table'; import { Sort } from '@angular/material/sort'; import { PageEvent } from '@angular/material/paginator'; import { SelectionModel } from '@angular/cdk/collections'; import { Breakpoints, BreakpointObserver } from '@angular/cdk/layout'; /** * Provides all ngx-jsonapi-material services without NgModule */ declare function provideNgxJsonapiMaterial(): Array; declare const NGX_JSONAPI_MATERIAL_I18N_ES_FILE: string; declare const NGX_JSONAPI_MATERIAL_I18N_EN_FILE: string; interface NgxJsonapiMaterialTranslations { es: TranslationObject; en: TranslationObject; } declare function loadNgxJsonapiMaterialTranslationsFromAssets(httpClient: HttpClient, basePath?: string): Promise; declare function registerNgxJsonapiMaterialTranslations(translate: TranslateService, translations: NgxJsonapiMaterialTranslations): void; declare function registerNgxJsonapiMaterialTranslationsFromAssets(translate: TranslateService, httpClient: HttpClient, basePath?: string): Promise; declare class CustomValidators { patternValidator(regex: RegExp, error: ValidationErrors): ValidatorFn; /** * @description NoPassswordMatch allows you to display an error if the password does not match. * @usageNotes * ### Ejemplo * ```typescript * validation: { * message: { * NoPassswordMatch: 'Mi mensaje' * } * } * ``` */ passwordMatchValidator(control: AbstractControl): void; } declare function trackById(index: number, resource: Resource): string; declare function batchAll, R extends Resource>(service: T, params: IParamsCollection): Observable>; declare const filterOrRequest: (params: { attribute_to_search?: string; resourcesArray: Array; getAllFc: (filter: string) => Observable>; last_filter_value: string; collection: DocumentCollection; page_size: number; }) => UnaryFunction, Observable>>; declare class Destroyer { private takeuntil; pipe(): UnaryFunction, Observable>; destroy(): void; } declare class SelectComponent implements OnInit { appareance: 'fill' | 'outline' | 'legacy' | 'standard'; floatLabel: 'never' | 'always'; multiple: boolean; parentId: string; toRelate: Resource; placeholder: string | undefined; label: string; displayAttribute: string; collection: DocumentCollection; removeRelationships: boolean; disabled: boolean; limit: number; hasRefresh: boolean; toRelateChange: EventEmitter; refresh: EventEmitter; adaptiveArray: Array; clear_relationships: Resource | null; searchText: string; ngOnInit(): void; updateFilter(search_text: string): void; updateRelationships(resource: Resource): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class JamOptionFooterComponent { private activatedRoute; private router; url: string; labelOption: string; routerLink: Array; queryParams: Params; openNewTab: boolean; constructor(activatedRoute: ActivatedRoute, router: Router); goTo(target?: '_self' | '_blank'): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /*** * Copyright (C) 1997-2017 Reyesoft * * This file is part of Multinexo. Multinexo can not be copied and/or * distributed without the express permission of Reyesoft */ declare class SubmitComponent { private location; router: Router; activatedRoute: ActivatedRoute; submitAppearance: 'mat-flat-button' | 'mat-stroked-button' | 'mat-raised-button' | 'mat-button'; submitColor: 'primary' | 'warn'; disabled: boolean; noCancel: boolean; cancelParamsState: object; submitLabel: string; cancelState: string; goBack: boolean; loading: boolean; accept: EventEmitter; cancelAction: EventEmitter; constructor(location: Location, router: Router, activatedRoute: ActivatedRoute); changeState(_event: Event): void; submit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /*** * Copyright (C) 1997-2018 Reyesoft * * This file is part of Multinexo. Multinexo can not be copied and/or * distributed without the express permission of Reyesoft */ /** * Este component trabaja con 2 ng-content. * En el component que se use, debe definirse dos ng-container con las clases css: * header-filters, y filters, de esta forma el component sabe en que ng-content ubicar el contenido que se le pasa. */ declare class FloatingFiltersComponent implements OnInit { hasAdvancedFilters: boolean; appearance: 'round' | 'square'; resetFilters: EventEmitter; show_reset_button: boolean; open_expansion_panel: boolean; ngOnInit(): void; toggleStateExpansionPanel(state: boolean): void; clearFilters(panel_state: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Esta directive se usa en conjunto con la directive/attribute [disabled]. * Es especial para los matExpansionPanel, cuando se aplican botones de acciones al header de este * y no se quiere abrir el matExpansionPanel, entonces esta directiv lo que hará es no aplicar los estilos apagado * que proporciona material cuando un elemento/tag esta des habilitado. */ declare class AvoidDisabledStyleDirective implements OnDestroy { private elementRef; private changes; constructor(elementRef: ElementRef); ngOnDestroy(): void; private preservingOriginalStyles; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } interface ImageChange { status_change: 'update' | 'delete'; source: string; } declare class PictureManagerComponent implements OnInit { protected httpClient: HttpClient; /** * Inputs * * @param type: describes the shape of the image container, this parameter is optional.. * @param source: is a url to reference an image. * @param deleteUrl: is a url for deleting an image, this parameter is optional. * @param uploadUrl: is a url for uploading an image, this parameter is optional. */ type: 'square' | 'round'; source: string; deleteUrl: string; uploadUrl: string; showDeleteOption: boolean; jamHeaders: { [key: string]: string | Array; }; textDelete: string; disableMatDialog: boolean; showBtnOption: boolean; deletePreview: boolean; /** * Outputs * * @param uploadChange: updates the image and returns the url for it. */ uploadChange: EventEmitter; response: EventEmitter; drag_and_drop: boolean; constructor(httpClient: HttpClient); ngOnInit(): void; dragAndDropStyles(drag_and_drop: boolean): void; showPreview(image: string): void; delete(): void; settingDefaultValues(): void; private creatDeleteUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class GalleryManagerComponent implements OnInit { pictures: Array; uploadUrl: string; updatePicture: string; limit: number; showDeleteOption: boolean; jamHeaders: { [key: string]: string | Array; }; /** * @param {number} highlightedImage * Position in the array of the highlighted image, by default is the position 0. */ highlightedImage: number; addPicture: EventEmitter; responsePicture: EventEmitter; image_loading: boolean; ngOnInit(): void; showPreview(img: unknown): void; response(event: { type: string; file?: { response: { data: Resource; }; }; }): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /*** * Copyright (C) 1997-2017 Reyesoft * * This file is part of Multinexo. Multinexo can not be copied and/or * distributed without the express permission of Reyesoft */ declare class SearchInputComponent implements OnInit, OnDestroy { text: string; opened: boolean; textChange: EventEmitter; searchCtrl: FormControl; showSearch: boolean; private destroyer; ngOnInit(): void; ngOnDestroy(): void; showInput(): void; switch(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class FilterPipe implements PipeTransform { /** * * @param items List of items to filter * @param term a string term to compare with every property of the list * */ static filter(items: Array>, term: string): Array>; /** * @param items object or resource from array * @param searchText search term */ transform(items: Array>, searchText: string): Array>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class ChipsAutocompleteComponent implements OnInit { resourceInput: ElementRef; placeholder: string; resource: Resource; remoteFilter: Record; service: Service; relationAlias: string; attributesDisplay: Array; appearance: 'standard' | 'outline' | 'legacy' | 'fill'; matLabel: string; page: IPage$1; trackById: (index: number, resource: Resource) => string; filteredCollection: Observable>; formControl: FormControl; collection: DocumentCollection; addOnBlur: boolean; selectable: boolean; removable: boolean; collection_relationships: DocumentCollection; private collectionArray; private collectionArrayLastFilterValue; constructor(); ngOnInit(): void; getAll(search_text: string): Observable; filterCollection(search_text: string | Resource): Array; addResource(resource: Resource): void; displayName(_resource: Resource): ''; removeResource(resource: Resource): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ConfirmationDialogComponent { dialogRef: MatDialogRef; private translateService; data: { accept?: string; msg?: string; [key: string]: unknown; }; constructor(dialogRef: MatDialogRef, translateService: TranslateService, data: { accept?: string; msg?: string; [key: string]: unknown; }); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /*** * Copyright (C) 1997-2018 Reyesoft * * This file is part of Multinexo. Multinexo can not be copied and/or * distributed without the express permission of Reyesoft */ declare class DeleteConfirmationComponent { dialog: MatDialog; private translateService; type: 'icon' | 'button'; /** @Deprecated */ icon: string; tooltip: string; msg: string; text: string; title: string; classed: string; /** @Deprecated */ styled: object; styleIcon: string; disableMatDialog: boolean; accept: string; appearance: 'mat-button' | 'mat-raised-button' | 'mat-flat-button' | 'mat-stroked-button' | 'mat-icon-button'; delete: EventEmitter; smartColor: { [key: string]: string; }; constructor(dialog: MatDialog, translateService: TranslateService); showConfirm(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface IEditTextAttributeData { resource: Resource; attribute: string; title: string; accept?: string; message?: string; textarea_label?: string; } declare class EditTextAttributeDialogComponent { dialogRef: MatDialogRef; data: IEditTextAttributeData; text_value: string; constructor(dialogRef: MatDialogRef, data: IEditTextAttributeData); onKeyUp(event: KeyboardEvent): void; updateAttributeAndClose(attribute: string, value: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @param id: The id must be composed of the resource followed by a period and a short, * descriptive message of the warning in question. * @param message: It must be a descriptive warning message. * @param link: It is optional, and must contain a route. */ interface IWarning { id: string; attributes: { message: string; link?: string; linkQueryParams?: { [key: string]: string; }; externalLink?: string; linkText?: string; }; } declare class TopWarningService { warnings: Array; /** * Receives a warning resource. * * @param warning */ setWarningMessage(warning: IWarning): void; getWarningMessage(): Array; clearMessage(warning_keys: Array): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class TopWarningComponent { topWarningService: TopWarningService; opened: boolean; button_state: 'expanded' | 'contracted' | 'standby'; button_icons: { [keys: string]: string; }; constructor(topWarningService: TopWarningService); onMouseEnter(): void; onMouseLeave(): void; toggleOpenAccordion(opened: boolean): void; defaultAccordionState(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /*** * Copyright (C) 1997-2018 Reyesoft * * This file is part of Multinexo. Multinexo can not be copied and/or * distributed without the express permission of Reyesoft */ declare class SingleWarningComponent implements OnInit { message: string | null; backgroundColor: string; textColor: string; link: string; linkQueryParams: { [key: string]: string; }; externalLink: string; linkText: string; actionButtonText: string; actionIconButton: string; actionIconButtonTooltip: string; actionButtonClick: EventEmitter; actionIconButtonClick: EventEmitter; custom_styles: { color?: string; 'background-color'?: string; }; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class FabSpeedDialMiniButton { key: string; navigate: boolean; tooltip: string; router_link: Array; query_params: Record; icon: { name: string; type: 'svg-icon' | 'mat-icon'; }; constructor(key: string, tooltip: string, router_link?: Array, query_params?: Record); setRouterLink(router_link: Array): this; getRouterLink(): Array; setQueryParams(query_params: Record): this; getQueryParams(): Record; shouldNavigate(): boolean; } declare class FabSpeedDialComponent implements OnInit { private activatedRoute; animationMode: string; tooltip: string; spin: boolean; icon: string; routerLink: Array; queryParams: Record; fabSpeedDialMiniButtons: Array; fabSpeedDialClick: EventEmitter; actionsClick: EventEmitter; fab_status: { [key: string]: string | boolean; }; constructor(activatedRoute: ActivatedRoute); ngOnInit(): void; toggleFabStatus(status: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /*** * Copyright (C) 1997-2017 Reyesoft * * This file is part of Multinexo. Multinexo can not be copied and/or * distributed without the express permission of Reyesoft */ declare class JamRefreshService { collection_to_refresh: Subject; refreshSubject: Subject; autoRefreshSubject: Subject; refresh(): void; autoRefresh(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class RefreshComponent implements OnInit, OnDestroy { changeDetectorRef: ChangeDetectorRef; jamRefreshService: JamRefreshService; collectionToRefresh: DocumentCollection; serviceToRefresh: Service; colorProgressCircular: string; icon: string; reload: EventEmitter>; destroyer: Destroyer; constructor(changeDetectorRef: ChangeDetectorRef, jamRefreshService: JamRefreshService); ngOnInit(): void; ngOnDestroy(): void; refreshCollection(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MenuElement { attributes: { [key: string]: unknown; }; protected _id: string; get id(): string; constructor(id?: string); setAttributes(attribute: string, value: unknown): this; addAttributes(attributes: { [key: string]: unknown; }): this; hide(): this; show(): this; isShown(): boolean; disable(): this; enable(): this; } declare class MenuElementsCollection> { data: Array | T>; hidden: boolean; protected _id: string; get id(): string; constructor(id?: string); hide(): this; show(): this; isShown(): boolean; find(id: string): MenuElementsCollection | T | undefined; add(data: Array | T>): this; } declare class Button extends MenuElement { attributes: MenuButtonAttributes; setAttributes(attribute: 'label' | 'icon' | 'class' | 'hidden' | 'disabled' | 'svg_icon' | 'icon_font', // TODO: improve typing value: string | boolean): this; addAttributes(attributes: MenuButtonAttributes): this; } interface MenuButtonAttributes extends Record { label: string; icon?: string; class?: string; hidden?: boolean; disabled?: boolean; svg_icon?: string; icon_font?: string; } declare class Section extends MenuElementsCollection