@wizishop/angular-components 15.1.4 → 15.1.5

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.
Files changed (32) hide show
  1. package/angular-components.scss +39 -39
  2. package/esm2020/lib/components/button/button.component.mjs +1 -1
  3. package/esm2020/lib/components/expansion/accordion/accordion.component.mjs +3 -3
  4. package/esm2020/lib/components/expansion/expansion-panel/expansion-panel.component.mjs +3 -3
  5. package/esm2020/lib/components/expansion/expansion-panel/expansion-panel.directive.mjs +75 -7
  6. package/esm2020/lib/components/expansion/expansion-panel-header/expansion-panel-header.component.mjs +3 -3
  7. package/esm2020/lib/components/expansion/expansion-panel-header/expansion-panel-header.directive.mjs +37 -7
  8. package/esm2020/lib/components/header-page/header-page.component.mjs +1 -1
  9. package/esm2020/lib/components/tab/tab.component.mjs +3 -1
  10. package/esm2020/lib/pipes/call-component-function.pipe.mjs +3 -2
  11. package/esm2020/lib/pipes/shared-pipes.module.mjs +8 -11
  12. package/esm2020/public-api.mjs +2 -2
  13. package/fesm2015/wizishop-angular-components.mjs +37 -60
  14. package/fesm2015/wizishop-angular-components.mjs.map +1 -1
  15. package/fesm2020/wizishop-angular-components.mjs +37 -60
  16. package/fesm2020/wizishop-angular-components.mjs.map +1 -1
  17. package/lib/components/expansion/expansion-panel/expansion-panel.component.d.ts +2 -2
  18. package/lib/components/expansion/expansion-panel/expansion-panel.directive.d.ts +21 -4
  19. package/lib/components/expansion/expansion-panel-header/expansion-panel-header.component.d.ts +2 -2
  20. package/lib/components/expansion/expansion-panel-header/expansion-panel-header.directive.d.ts +14 -4
  21. package/lib/components/expansion/expansion.module.d.ts +1 -3
  22. package/lib/components/tab/tab.component.d.ts +5 -1
  23. package/lib/pipes/call-component-function.pipe.d.ts +1 -1
  24. package/lib/pipes/shared-pipes.module.d.ts +6 -6
  25. package/package.json +1 -1
  26. package/public-api.d.ts +1 -1
  27. package/wizishop-angular-components-15.1.5.tgz +0 -0
  28. package/esm2020/lib/components/expansion/expansion-panel/expansion-panel-base.mjs +0 -83
  29. package/esm2020/lib/components/expansion/expansion-panel-header/expansion-panel-header-base.mjs +0 -44
  30. package/lib/components/expansion/expansion-panel/expansion-panel-base.d.ts +0 -26
  31. package/lib/components/expansion/expansion-panel-header/expansion-panel-header-base.d.ts +0 -20
  32. package/wizishop-angular-components-15.1.4.tgz +0 -0
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef } from '@angular/core';
2
- import { ExpansionPanelBase } from './expansion-panel-base';
2
+ import { ExpansionPanelDirective } from './expansion-panel.directive';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ExpansionPanelComponent extends ExpansionPanelBase {
4
+ export declare class ExpansionPanelComponent extends ExpansionPanelDirective {
5
5
  protected changeDetectorRef: ChangeDetectorRef;
6
6
  class: string;
7
7
  get isDisabled(): boolean;
@@ -1,9 +1,26 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { ExpansionPanelBase } from './expansion-panel-base';
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { AccordionItem } from '../accordion/accordion-item.interface';
3
+ import { ExpansionPanelHeader } from '../expansion-panel-header/expansion-panel-header.interface';
3
4
  import * as i0 from "@angular/core";
4
- export declare class ExpansionPanelDirective extends ExpansionPanelBase {
5
+ export declare class ExpansionPanelDirective implements AccordionItem, AfterViewInit {
5
6
  protected changeDetectorRef: ChangeDetectorRef;
7
+ header: ExpansionPanelHeader;
8
+ set disabled(disabled: boolean);
9
+ get disabled(): boolean;
10
+ _disabled: boolean;
11
+ set hideToggle(hideToggle: boolean);
12
+ get hideToggle(): boolean;
13
+ _hideToggle: boolean;
14
+ set isExpanded(isExpanded: boolean);
15
+ get isExpanded(): boolean;
16
+ _isExpanded: boolean;
17
+ isExpandedChange: EventEmitter<boolean>;
18
+ expandChange: EventEmitter<void>;
6
19
  constructor(changeDetectorRef: ChangeDetectorRef);
20
+ ngAfterViewInit(): void;
21
+ close(): void;
22
+ open(): void;
23
+ toggle(): void;
7
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelDirective, "[wacExpansionPanel]", never, {}, {}, never, never, false, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelDirective, "[wacExpansionPanel]", never, { "disabled": "disabled"; "hideToggle": "hideToggle"; "isExpanded": "isExpanded"; }, { "isExpandedChange": "isExpandedChange"; }, ["header"], never, false, never>;
9
26
  }
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef } from '@angular/core';
2
- import { ExpansionPanelHeaderBase } from './expansion-panel-header-base';
2
+ import { ExpansionPanelHeaderDirective } from './expansion-panel-header.directive';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ExpansionPanelHeaderComponent extends ExpansionPanelHeaderBase {
4
+ export declare class ExpansionPanelHeaderComponent extends ExpansionPanelHeaderDirective {
5
5
  protected changeDetectorRef: ChangeDetectorRef;
6
6
  class: string;
7
7
  get isDisabled(): boolean;
@@ -1,9 +1,19 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { ExpansionPanelHeaderBase } from './expansion-panel-header-base';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
- export declare class ExpansionPanelHeaderDirective extends ExpansionPanelHeaderBase {
3
+ export declare class ExpansionPanelHeaderDirective {
5
4
  protected changeDetectorRef: ChangeDetectorRef;
5
+ onClick(): void;
6
+ disabled: boolean;
7
+ disabledChange: EventEmitter<boolean>;
8
+ hideToggle: boolean;
9
+ hideToggleChange: EventEmitter<boolean>;
10
+ isExpanded: boolean;
11
+ isExpandedChange: EventEmitter<boolean>;
6
12
  constructor(changeDetectorRef: ChangeDetectorRef);
13
+ onToggle(): void;
14
+ close: () => {};
15
+ open: () => {};
16
+ toggle: () => {};
7
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelHeaderDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelHeaderDirective, "[wacExpansionPanelHeader]", never, {}, {}, never, never, false, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelHeaderDirective, "[wacExpansionPanelHeader]", never, { "disabled": "disabled"; "hideToggle": "hideToggle"; "isExpanded": "isExpanded"; }, { "disabledChange": "disabledChange"; "hideToggleChange": "hideToggleChange"; "isExpandedChange": "isExpandedChange"; }, never, never, false, never>;
9
19
  }
@@ -1,7 +1,5 @@
1
1
  import { AccordionComponent } from './accordion/accordion.component';
2
- import { ExpansionPanelHeaderComponent } from './expansion-panel-header/expansion-panel-header.component';
3
2
  import { ExpansionPanelHeaderDirective } from './expansion-panel-header/expansion-panel-header.directive';
4
- import { ExpansionPanelComponent } from './expansion-panel/expansion-panel.component';
5
3
  import { ExpansionPanelDirective } from './expansion-panel/expansion-panel.directive';
6
4
  import * as i0 from "@angular/core";
7
5
  import * as i1 from "./expansion-panel/expansion-panel.component";
@@ -10,7 +8,7 @@ import * as i3 from "./accordion/accordion.component";
10
8
  import * as i4 from "./expansion-panel/expansion-panel.directive";
11
9
  import * as i5 from "./expansion-panel-header/expansion-panel-header.directive";
12
10
  import * as i6 from "@angular/common";
13
- export declare const ExpansionExport: (typeof AccordionComponent | typeof ExpansionPanelHeaderComponent | typeof ExpansionPanelHeaderDirective | typeof ExpansionPanelComponent | typeof ExpansionPanelDirective)[];
11
+ export declare const ExpansionExport: (typeof AccordionComponent | typeof ExpansionPanelHeaderDirective | typeof ExpansionPanelDirective)[];
14
12
  export declare class ExpansionModule {
15
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionModule, never>;
16
14
  static ɵmod: i0.ɵɵNgModuleDeclaration<ExpansionModule, [typeof i1.ExpansionPanelComponent, typeof i2.ExpansionPanelHeaderComponent, typeof i3.AccordionComponent, typeof i4.ExpansionPanelDirective, typeof i5.ExpansionPanelHeaderDirective], [typeof i6.CommonModule], [typeof i1.ExpansionPanelComponent, typeof i2.ExpansionPanelHeaderComponent, typeof i3.AccordionComponent, typeof i4.ExpansionPanelDirective, typeof i5.ExpansionPanelHeaderDirective]>;
@@ -1,9 +1,13 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ export type Tab = {
4
+ label: string;
5
+ index: number;
6
+ };
3
7
  export declare class TabComponent {
4
8
  underline: boolean;
5
9
  button: boolean;
6
- tabs: any[];
10
+ tabs: Tab[];
7
11
  index: number;
8
12
  indexChange: EventEmitter<number>;
9
13
  constructor();
@@ -14,5 +14,5 @@ export declare class CallComponentFunctionPipe implements PipeTransform {
14
14
  */
15
15
  transform<T, G>(value: T, mapper: Mapper<T, G>, ...args: any[]): G;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<CallComponentFunctionPipe, never>;
17
- static ɵpipe: i0.ɵɵPipeDeclaration<CallComponentFunctionPipe, "wacFn", false>;
17
+ static ɵpipe: i0.ɵɵPipeDeclaration<CallComponentFunctionPipe, "wacFn", true>;
18
18
  }
@@ -3,13 +3,13 @@ import * as i1 from "./tree/format-object-to-recursif-tree.pipe";
3
3
  import * as i2 from "./tree/format-object-to-simple-tree.pipe";
4
4
  import * as i3 from "./select/filter-options.pipe";
5
5
  import * as i4 from "./find-option-selected-field.pipe";
6
- import * as i5 from "./call-component-function.pipe";
7
- import * as i6 from "./select/select-filters.pipe";
8
- import * as i7 from "./selected-list/are-all-options-selected.pipe";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "@angular/forms";
6
+ import * as i5 from "./select/select-filters.pipe";
7
+ import * as i6 from "./selected-list/are-all-options-selected.pipe";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "@angular/forms";
10
+ import * as i9 from "./call-component-function.pipe";
11
11
  export declare class SharedPipes {
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipes, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipes, [typeof i1.FormatObjectToRecursifTreePipe, typeof i2.FormatObjectToSimpleTreePipe, typeof i3.FilterOptionsPipe, typeof i4.FindOptionSelectedPipe, typeof i5.CallComponentFunctionPipe, typeof i6.SelectFiltersPipe, typeof i7.AreAllOptionsSelectedPipe], [typeof i8.CommonModule, typeof i9.FormsModule], [typeof i1.FormatObjectToRecursifTreePipe, typeof i2.FormatObjectToSimpleTreePipe, typeof i3.FilterOptionsPipe, typeof i4.FindOptionSelectedPipe, typeof i5.CallComponentFunctionPipe, typeof i6.SelectFiltersPipe, typeof i7.AreAllOptionsSelectedPipe]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipes, [typeof i1.FormatObjectToRecursifTreePipe, typeof i2.FormatObjectToSimpleTreePipe, typeof i3.FilterOptionsPipe, typeof i4.FindOptionSelectedPipe, typeof i5.SelectFiltersPipe, typeof i6.AreAllOptionsSelectedPipe], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.CallComponentFunctionPipe], [typeof i1.FormatObjectToRecursifTreePipe, typeof i2.FormatObjectToSimpleTreePipe, typeof i3.FilterOptionsPipe, typeof i4.FindOptionSelectedPipe, typeof i5.SelectFiltersPipe, typeof i6.AreAllOptionsSelectedPipe, typeof i9.CallComponentFunctionPipe]>;
14
14
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipes>;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/angular-components",
3
- "version": "15.1.4",
3
+ "version": "15.1.5",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "~15.0.2",
6
6
  "@angular/cdk": "^15.0.1",
package/public-api.d.ts CHANGED
@@ -42,6 +42,7 @@ export * from './lib/components/inputs/input/input.component';
42
42
  export * from './lib/components/tooltip/tooltip.component';
43
43
  export * from './lib/components/checkbox/checkbox.component';
44
44
  export * from './lib/components/loader/loader.component';
45
+ export * from './lib/components/loader/loader.module';
45
46
  export * from './lib/components/progress-bar/progress-bar.component';
46
47
  export * from './lib/components/upload/upload.component';
47
48
  export * from './lib/components/selects/select-items.dto';
@@ -125,7 +126,6 @@ export * from './lib/components/expansion/expansion-panel-header/expansion-panel
125
126
  export * from './lib/components/expansion/expansion-panel-header/expansion-panel-header.directive';
126
127
  export * from './lib/components/expansion/expansion-panel/expansion-panel.component';
127
128
  export * from './lib/components/expansion/expansion-panel/expansion-panel.directive';
128
- export * from './lib/components/expansion/expansion-panel/expansion-panel-base';
129
129
  export * from './lib/animations/show/show-from-bottom.animation';
130
130
  export * from './lib/animations/show/show-from-top.animation';
131
131
  export * from './lib/animations/show/show-from-left.animation';
@@ -1,83 +0,0 @@
1
- import { ContentChild, Directive, EventEmitter, Input, Output } from '@angular/core';
2
- import { EXPANSION_PANEL_HEADER } from '../expansion-panel-header/expansion-panel-header.token';
3
- import * as i0 from "@angular/core";
4
- export class ExpansionPanelBase {
5
- set disabled(disabled) {
6
- this._disabled = disabled;
7
- if (this.header) {
8
- this.header.disabled = disabled;
9
- }
10
- }
11
- get disabled() {
12
- return this._disabled;
13
- }
14
- set hideToggle(hideToggle) {
15
- this._hideToggle = hideToggle;
16
- if (this.header) {
17
- this.header.hideToggle = hideToggle;
18
- }
19
- }
20
- get hideToggle() {
21
- return this._hideToggle;
22
- }
23
- set isExpanded(isExpanded) {
24
- if (this.disabled) {
25
- return;
26
- }
27
- this._isExpanded = isExpanded;
28
- if (this.header) {
29
- this.header.isExpanded = isExpanded;
30
- }
31
- this.isExpandedChange.emit(isExpanded);
32
- }
33
- get isExpanded() {
34
- return this._isExpanded;
35
- }
36
- constructor(changeDetectorRef) {
37
- this.changeDetectorRef = changeDetectorRef;
38
- this._disabled = false;
39
- this._hideToggle = false;
40
- this._isExpanded = false;
41
- this.isExpandedChange = new EventEmitter();
42
- this.expandChange = new EventEmitter(); // used by the accordion component if exists
43
- }
44
- ngAfterViewInit() {
45
- setTimeout(() => {
46
- this.header.isExpanded = this.isExpanded;
47
- this.header.hideToggle = this.hideToggle;
48
- this.header.disabled = this.disabled;
49
- this.header.close = () => this.close();
50
- this.header.open = () => this.open();
51
- this.header.toggle = () => this.toggle();
52
- }, 0);
53
- }
54
- close() {
55
- this.isExpanded = false;
56
- this.expandChange.emit();
57
- }
58
- open() {
59
- this.isExpanded = true;
60
- this.expandChange.emit();
61
- }
62
- toggle() {
63
- this.isExpanded = !this.isExpanded;
64
- this.expandChange.emit();
65
- }
66
- }
67
- ExpansionPanelBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ExpansionPanelBase, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
68
- ExpansionPanelBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.1", type: ExpansionPanelBase, inputs: { disabled: "disabled", hideToggle: "hideToggle", isExpanded: "isExpanded" }, outputs: { isExpandedChange: "isExpandedChange" }, queries: [{ propertyName: "header", first: true, predicate: EXPANSION_PANEL_HEADER, descendants: true }], ngImport: i0 });
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ExpansionPanelBase, decorators: [{
70
- type: Directive
71
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { header: [{
72
- type: ContentChild,
73
- args: [EXPANSION_PANEL_HEADER]
74
- }], disabled: [{
75
- type: Input
76
- }], hideToggle: [{
77
- type: Input
78
- }], isExpanded: [{
79
- type: Input
80
- }], isExpandedChange: [{
81
- type: Output
82
- }] } });
83
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwYW5zaW9uLXBhbmVsLWJhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2V4cGFuc2lvbi9leHBhbnNpb24tcGFuZWwvZ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7XG4gICAgICAgIHRoaXMuaGVhZGVyLmhpZGVUb2dnbGUgPSB0aGlzLmhpZGVUb2dnbGU7XG4gICAgICAgIHRoaXMuaGVhZGVyLmRpc2FibGVkID0gdGhpcy5kaXNhYmxlZDtcblxuICAgICAgICB0aGlzLmhlYWRlci5jbG9zZSA9ICgpID0+IHRoaXMuY2xvc2UoKTtcbiAgICAgICAgdGhpcy5oZWFkZXIub3BlbiA9ICgpID0+IHRoaXMub3BlbigpO1xuICAgICAgICB0aGlzLmhlYWRlci50b2dnbGUgPSAoKSA9PiB0aGlzLnRvZ2dsZSgpO1xuICAgICAgfSwgMCk7XG4gICAgfVxuXG4gICAgY2xvc2UoKTogdm9pZCB7XG4gICAgICB0aGlzLmlzRXhwYW5kZWQgPSBmYWxzZTtcbiAgICAgIHRoaXMuZXhwYW5kQ2hhbmdlLmVtaXQoKTtcbiAgICB9XG4gICAgb3BlbigpOiB2b2lkIHtcbiAgICAgIHRoaXMuaXNFeHBhbmRlZCA9IHRydWU7XG4gICAgICB0aGlzLmV4cGFuZENoYW5nZS5lbWl0KCk7XG4gICAgfVxuICAgIHRvZ2dsZSgpOiB2b2lkIHtcbiAgICAgIHRoaXMuaXNFeHBhbmRlZCA9ICF0aGlzLmlzRXhwYW5kZWQ7XG4gICAgICB0aGlzLmV4cGFuZENoYW5nZS5lbWl0KCk7XG4gICAgfVxufSJdfQ==
@@ -1,44 +0,0 @@
1
- import { Directive, EventEmitter, HostListener, Input, Output } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class ExpansionPanelHeaderBase {
4
- onClick() {
5
- this.toggle();
6
- }
7
- constructor(changeDetectorRef) {
8
- this.changeDetectorRef = changeDetectorRef;
9
- this.disabled = false;
10
- this.disabledChange = new EventEmitter();
11
- this.hideToggle = false;
12
- this.hideToggleChange = new EventEmitter();
13
- this.isExpanded = false;
14
- this.isExpandedChange = new EventEmitter();
15
- }
16
- onToggle() {
17
- if (this.disabled) {
18
- return;
19
- }
20
- this.isExpanded = !this.isExpanded;
21
- this.toggle();
22
- }
23
- }
24
- ExpansionPanelHeaderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ExpansionPanelHeaderBase, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
25
- ExpansionPanelHeaderBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.1", type: ExpansionPanelHeaderBase, inputs: { disabled: "disabled", hideToggle: "hideToggle", isExpanded: "isExpanded" }, outputs: { disabledChange: "disabledChange", hideToggleChange: "hideToggleChange", isExpandedChange: "isExpandedChange" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ExpansionPanelHeaderBase, decorators: [{
27
- type: Directive
28
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onClick: [{
29
- type: HostListener,
30
- args: ['click']
31
- }], disabled: [{
32
- type: Input
33
- }], disabledChange: [{
34
- type: Output
35
- }], hideToggle: [{
36
- type: Input
37
- }], hideToggleChange: [{
38
- type: Output
39
- }], isExpanded: [{
40
- type: Input
41
- }], isExpandedChange: [{
42
- type: Output
43
- }] } });
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwYW5zaW9uLXBhbmVsLWhlYWRlci1iYXNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9leHBhbnNpb24vZXhwYW5zaW9uLXBhbmVsLWhlYWRlci9leHBhbnNpb24tcGFuZWwtaGVhZGVyLWJhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFxQixTQUF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dXJuO1xuICAgICAgfVxuICAgICAgdGhpcy5pc0V4cGFuZGVkID0gIXRoaXMuaXNFeHBhbmRlZDtcbiAgICAgIHRoaXMudG9nZ2xlKCk7XG4gICAgfVxuXG4gICAgLy8gV2lsbCBiZSB1c2VkIGJ5IHRoZSBwYXJlbnQgY29tcG9uZW50XG4gICAgY2xvc2U6ICgpID0+IHt9O1xuICAgIG9wZW46ICgpID0+IHt9O1xuICAgIHRvZ2dsZTogKCkgPT4ge307XG59Il19
@@ -1,26 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { AccordionItem } from '../accordion/accordion-item.interface';
3
- import { ExpansionPanelHeader } from '../expansion-panel-header/expansion-panel-header.interface';
4
- import * as i0 from "@angular/core";
5
- export declare class ExpansionPanelBase implements AccordionItem, AfterViewInit {
6
- protected changeDetectorRef: ChangeDetectorRef;
7
- header: ExpansionPanelHeader;
8
- set disabled(disabled: boolean);
9
- get disabled(): boolean;
10
- _disabled: boolean;
11
- set hideToggle(hideToggle: boolean);
12
- get hideToggle(): boolean;
13
- _hideToggle: boolean;
14
- set isExpanded(isExpanded: boolean);
15
- get isExpanded(): boolean;
16
- _isExpanded: boolean;
17
- isExpandedChange: EventEmitter<boolean>;
18
- expandChange: EventEmitter<void>;
19
- constructor(changeDetectorRef: ChangeDetectorRef);
20
- ngAfterViewInit(): void;
21
- close(): void;
22
- open(): void;
23
- toggle(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelBase, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelBase, never, never, { "disabled": "disabled"; "hideToggle": "hideToggle"; "isExpanded": "isExpanded"; }, { "isExpandedChange": "isExpandedChange"; }, ["header"], never, false, never>;
26
- }
@@ -1,20 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { ExpansionPanelHeader } from './expansion-panel-header.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class ExpansionPanelHeaderBase implements ExpansionPanelHeader {
5
- protected changeDetectorRef: ChangeDetectorRef;
6
- onClick(): void;
7
- disabled: boolean;
8
- disabledChange: EventEmitter<boolean>;
9
- hideToggle: boolean;
10
- hideToggleChange: EventEmitter<boolean>;
11
- isExpanded: boolean;
12
- isExpandedChange: EventEmitter<boolean>;
13
- constructor(changeDetectorRef: ChangeDetectorRef);
14
- onToggle(): void;
15
- close: () => {};
16
- open: () => {};
17
- toggle: () => {};
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelHeaderBase, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<ExpansionPanelHeaderBase, never, never, { "disabled": "disabled"; "hideToggle": "hideToggle"; "isExpanded": "isExpanded"; }, { "disabledChange": "disabledChange"; "hideToggleChange": "hideToggleChange"; "isExpandedChange": "isExpandedChange"; }, never, never, false, never>;
20
- }