UNPKG

@linid-dm/directory-manager-client-core

Version:

Core package by providing a set of angular components for the Directory Manager app.

80 lines (79 loc) 4.69 kB
/** * Copyright (C) 2020-2024 Linagora * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your option) any * later version, provided you comply with the Additional Terms applicable for * LinID Directory Manager software by LINAGORA pursuant to Section 7 of the GNU * Affero General Public License, subsections (b), (c), and (e), pursuant to * which these Appropriate Legal Notices must notably (i) retain the display of * the "LinID™" trademark/logo at the top of the interface window, the display * of the “You are using the Open Source and free version of LinID™, powered by * Linagora © 2009–2013. Contribute to LinID R&D by subscribing to an Enterprise * offer!” infobox and in the e-mails sent with the Program, notice appended to * any type of outbound messages (e.g. e-mail and meeting requests) as well as * in the LinID Directory Manager user interface, (ii) retain all hypertext * links between LinID Directory Manager and https://linid.org/, as well as * between LINAGORA and LINAGORA.com, and (iii) refrain from infringing LINAGORA * intellectual property rights over its trademarks and commercial brands. Other * Additional Terms apply, see <http://www.linagora.com/licenses/> for more * details. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License and * its applicable Additional Terms for LinID Directory Manager along with this * program. If not, see <http://www.gnu.org/licenses/> for the GNU Affero * General Public License version 3 and <http://www.linagora.com/licenses/> for * the Additional Terms applicable to the LinID Directory Manager software. */ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { MatButton } from '@angular/material/button'; import { Store } from '@ngxs/store'; import { Observable, Subject } from 'rxjs'; import { IFilterAccessibility, IPersistentUiData, JsTable } from '../../shared'; import * as i0 from "@angular/core"; export declare class GenericDataHeaderComponent implements OnInit, OnDestroy, AfterViewInit { private _store$; filterAccessibility$: Observable<IFilterAccessibility>; private readonly _COMPONENT_MIN_WIDTH; private _largeHeaderWidth; largeBtnAdditionnalClasses: Record<string, boolean>; smallBtnAdditionnalClasses: Record<string, boolean>; createLargeBtn: MatButton; createMiniFabBtn: MatButton; set advancedSearchMatHint(advancedSearchMatHint: ElementRef); get advancedSearchMatHint(): ElementRef; canCreate: boolean; addBtnLabel: string; dataJsTable: JsTable<IPersistentUiData>; set selectedResourceRootTypeId(selectedResourceRootTypeId: string); get selectedResourceRootTypeId(): string; set offsetWidth(offsetWidth: number); get offsetWidth(): number; isLargeScreen: boolean; isAdvancedSearchActivated: boolean; clickOnAddResourceBtn: EventEmitter<void>; private _onDestroy$; private _advancedSearchMatHint; private _offsetWidth; private _selectedResourceRootTypeId; divAddButtonMaxWidth: number; search: string; modelChanged: Subject<string>; lineHeight: number; constructor(_store$: Store); ngOnInit(): void; ngAfterViewInit(): void; clearInputFilter(): void; updateSearch(search: string): void; addNewResource(): void; ngOnDestroy(): void; private _updateButtonDisplay; static ɵfac: i0.ɵɵFactoryDeclaration<GenericDataHeaderComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<GenericDataHeaderComponent, "dm-generic-data-header", never, { "advancedSearchMatHint": { "alias": "advancedSearchMatHint"; "required": false; }; "canCreate": { "alias": "canCreate"; "required": false; }; "addBtnLabel": { "alias": "addBtnLabel"; "required": false; }; "dataJsTable": { "alias": "dataJsTable"; "required": false; }; "selectedResourceRootTypeId": { "alias": "selectedResourceRootTypeId"; "required": false; }; "offsetWidth": { "alias": "offsetWidth"; "required": false; }; "isLargeScreen": { "alias": "isLargeScreen"; "required": false; }; "isAdvancedSearchActivated": { "alias": "isAdvancedSearchActivated"; "required": false; }; }, { "clickOnAddResourceBtn": "clickOnAddResourceBtn"; }, never, never, false, never>; }