UNPKG

2.42 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 */
6import { ChangeDetectorRef, EventEmitter, SimpleChanges, OnInit, OnChanges, OnDestroy } from '@angular/core';
7import { Subject } from 'rxjs';
8import { NbAccordionComponent } from './accordion.component';
9import { NbBooleanInput } from '../helpers';
10import * as i0 from "@angular/core";
11/**
12 * Component intended to be used within `<nb-accordion>` component
13 */
14export declare class NbAccordionItemComponent implements OnInit, OnChanges, OnDestroy {
15 private accordion;
16 private cd;
17 /**
18 * Item is collapse (`true` by default)
19 * @type {boolean}
20 */
21 get collapsed(): boolean;
22 set collapsed(val: boolean);
23 static ngAcceptInputType_collapsed: NbBooleanInput;
24 /**
25 * Item is expanded (`false` by default)
26 * @type {boolean}
27 */
28 get expanded(): boolean;
29 set expanded(val: boolean);
30 static ngAcceptInputType_expanded: NbBooleanInput;
31 /**
32 * Item is disabled and cannot be opened.
33 * @type {boolean}
34 */
35 get disabled(): boolean;
36 set disabled(val: boolean);
37 static ngAcceptInputType_disabled: NbBooleanInput;
38 /**
39 * Emits whenever the expanded state of the accordion changes.
40 * Primarily used to facilitate two-way binding.
41 */
42 collapsedChange: EventEmitter<boolean>;
43 accordionItemInvalidate: Subject<boolean>;
44 private collapsedValue;
45 private disabledValue;
46 private destroy$;
47 constructor(accordion: NbAccordionComponent, cd: ChangeDetectorRef);
48 /**
49 * Open/close the item
50 */
51 toggle(): void;
52 /**
53 * Open the item.
54 */
55 open(): void;
56 /**
57 * Collapse the item.
58 */
59 close(): void;
60 ngOnInit(): void;
61 ngOnChanges(changes: SimpleChanges): void;
62 ngOnDestroy(): void;
63 private invalidate;
64 static ɵfac: i0.ɵɵFactoryDeclaration<NbAccordionItemComponent, [{ host: true; }, null]>;
65 static ɵcmp: i0.ɵɵComponentDeclaration<NbAccordionItemComponent, "nb-accordion-item", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "collapsedChange": "collapsedChange"; }, never, ["nb-accordion-item-header", "nb-accordion-item-body"], false, never>;
66}