ngwr 6.0.0 → 6.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.
Files changed (161) hide show
  1. package/alert/index.d.ts +30 -3
  2. package/avatar/index.d.ts +30 -5
  3. package/button/index.d.ts +43 -3
  4. package/cdk/index.d.ts +22 -3
  5. package/cdk/rxjs/index.d.ts +38 -3
  6. package/cdk/types/index.d.ts +25 -3
  7. package/cdk/utils/index.d.ts +12 -3
  8. package/checkbox/index.d.ts +29 -3
  9. package/dialog/index.d.ts +191 -3
  10. package/divider/index.d.ts +16 -5
  11. package/dropdown/index.d.ts +66 -3
  12. package/fesm2022/ngwr-alert.mjs +4 -4
  13. package/fesm2022/ngwr-alert.mjs.map +1 -1
  14. package/fesm2022/ngwr-avatar.mjs +4 -4
  15. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  16. package/fesm2022/ngwr-button.mjs +6 -6
  17. package/fesm2022/ngwr-button.mjs.map +1 -1
  18. package/fesm2022/ngwr-cdk.mjs +3 -3
  19. package/fesm2022/ngwr-cdk.mjs.map +1 -1
  20. package/fesm2022/ngwr-checkbox.mjs +5 -5
  21. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  22. package/fesm2022/ngwr-dialog.mjs +31 -37
  23. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  24. package/fesm2022/ngwr-divider.mjs +3 -3
  25. package/fesm2022/ngwr-divider.mjs.map +1 -1
  26. package/fesm2022/ngwr-dropdown.mjs +17 -17
  27. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  28. package/fesm2022/ngwr-form.mjs +6 -6
  29. package/fesm2022/ngwr-form.mjs.map +1 -1
  30. package/fesm2022/ngwr-icon.mjs +10 -11
  31. package/fesm2022/ngwr-icon.mjs.map +1 -1
  32. package/fesm2022/ngwr-input.mjs +7 -7
  33. package/fesm2022/ngwr-input.mjs.map +1 -1
  34. package/fesm2022/ngwr-pagination.mjs +16 -16
  35. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  36. package/fesm2022/ngwr-pipes.mjs +3 -3
  37. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  38. package/fesm2022/ngwr-progress.mjs +3 -3
  39. package/fesm2022/ngwr-progress.mjs.map +1 -1
  40. package/fesm2022/ngwr-qr.mjs +12 -15
  41. package/fesm2022/ngwr-qr.mjs.map +1 -1
  42. package/fesm2022/ngwr-select.mjs +18 -18
  43. package/fesm2022/ngwr-select.mjs.map +1 -1
  44. package/fesm2022/ngwr-skeleton.mjs +3 -3
  45. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  46. package/fesm2022/ngwr-spinner.mjs +5 -5
  47. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  48. package/fesm2022/ngwr-table.mjs +31 -31
  49. package/fesm2022/ngwr-table.mjs.map +1 -1
  50. package/fesm2022/ngwr-tag.mjs +3 -3
  51. package/fesm2022/ngwr-tag.mjs.map +1 -1
  52. package/fesm2022/ngwr-textarea.mjs +5 -5
  53. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  54. package/form/index.d.ts +26 -3
  55. package/icon/index.d.ts +828 -3
  56. package/index.d.ts +2 -5
  57. package/input/index.d.ts +41 -3
  58. package/package.json +5 -5
  59. package/pagination/index.d.ts +32 -3
  60. package/pipes/index.d.ts +15 -3
  61. package/progress/index.d.ts +13 -5
  62. package/qr/index.d.ts +127 -5
  63. package/select/index.d.ts +119 -3
  64. package/skeleton/index.d.ts +13 -1
  65. package/spinner/index.d.ts +23 -1
  66. package/table/index.d.ts +101 -5
  67. package/tag/index.d.ts +24 -5
  68. package/textarea/index.d.ts +44 -4
  69. package/alert/alert-type.d.ts +0 -7
  70. package/alert/alert.component.d.ts +0 -21
  71. package/alert/public-api.d.ts +0 -8
  72. package/avatar/avatar.component.d.ts +0 -27
  73. package/avatar/public-api.d.ts +0 -7
  74. package/button/button-group.component.d.ts +0 -12
  75. package/button/button.component.d.ts +0 -31
  76. package/button/public-api.d.ts +0 -8
  77. package/cdk/base.directive.d.ts +0 -20
  78. package/cdk/public-api.d.ts +0 -7
  79. package/cdk/rxjs/is-array.d.ts +0 -8
  80. package/cdk/rxjs/is-defined.d.ts +0 -8
  81. package/cdk/rxjs/is-not-empty-array.d.ts +0 -8
  82. package/cdk/rxjs/is-observable.d.ts +0 -9
  83. package/cdk/rxjs/public-api.d.ts +0 -10
  84. package/cdk/types/maybe.d.ts +0 -7
  85. package/cdk/types/public-api.d.ts +0 -9
  86. package/cdk/types/safe-any.d.ts +0 -7
  87. package/cdk/types/theme-color.d.ts +0 -8
  88. package/cdk/utils/generate-random-id.d.ts +0 -12
  89. package/cdk/utils/public-api.d.ts +0 -7
  90. package/checkbox/checkbox.component.d.ts +0 -28
  91. package/checkbox/public-api.d.ts +0 -7
  92. package/dialog/dialog-animations.d.ts +0 -22
  93. package/dialog/dialog-base.directive.d.ts +0 -40
  94. package/dialog/dialog-close.directive.d.ts +0 -9
  95. package/dialog/dialog-content.directive.d.ts +0 -6
  96. package/dialog/dialog-data.token.d.ts +0 -8
  97. package/dialog/dialog-footer.directive.d.ts +0 -8
  98. package/dialog/dialog-options.d.ts +0 -19
  99. package/dialog/dialog-ref.d.ts +0 -26
  100. package/dialog/dialog-title.directive.d.ts +0 -6
  101. package/dialog/dialog.component.d.ts +0 -28
  102. package/dialog/dialog.module.d.ts +0 -6
  103. package/dialog/dialog.service.d.ts +0 -28
  104. package/dialog/public-api.d.ts +0 -18
  105. package/divider/divider.component.d.ts +0 -13
  106. package/divider/public-api.d.ts +0 -7
  107. package/dropdown/dropdown-menu-item.component.d.ts +0 -12
  108. package/dropdown/dropdown-menu.component.d.ts +0 -14
  109. package/dropdown/dropdown.directive.d.ts +0 -29
  110. package/dropdown/dropdown.types.d.ts +0 -9
  111. package/dropdown/public-api.d.ts +0 -10
  112. package/form/form-error.component.d.ts +0 -11
  113. package/form/form-item.component.d.ts +0 -14
  114. package/form/public-api.d.ts +0 -8
  115. package/icon/icon.component.d.ts +0 -24
  116. package/icon/icon.service.d.ts +0 -23
  117. package/icon/icons.d.ts +0 -770
  118. package/icon/provide-wr-icons.d.ts +0 -9
  119. package/icon/public-api.d.ts +0 -10
  120. package/input/input-types.d.ts +0 -1
  121. package/input/input.component.d.ts +0 -38
  122. package/input/public-api.d.ts +0 -8
  123. package/pagination/pagination.component.d.ts +0 -23
  124. package/pagination/pagination.types.d.ts +0 -7
  125. package/pagination/public-api.d.ts +0 -8
  126. package/pipes/new-array.pipe.d.ts +0 -13
  127. package/pipes/public-api.d.ts +0 -7
  128. package/progress/progress.component.d.ts +0 -10
  129. package/progress/public-api.d.ts +0 -7
  130. package/public-api.d.ts +0 -2
  131. package/qr/generator.d.ts +0 -7
  132. package/qr/public-api.d.ts +0 -7
  133. package/qr/qr.component.d.ts +0 -31
  134. package/qr/qrcodegen.d.ts +0 -94
  135. package/select/public-api.d.ts +0 -10
  136. package/select/select-option-group.component.d.ts +0 -19
  137. package/select/select-option.component.d.ts +0 -22
  138. package/select/select.component.d.ts +0 -63
  139. package/select/select.types.d.ts +0 -17
  140. package/skeleton/skeleton.component.d.ts +0 -10
  141. package/spinner/spinner.component.d.ts +0 -13
  142. package/spinner/spinner.types.d.ts +0 -7
  143. package/table/public-api.d.ts +0 -11
  144. package/table/table-cell/index.d.ts +0 -7
  145. package/table/table-cell/table-cell.directive.d.ts +0 -8
  146. package/table/table-filter/index.d.ts +0 -7
  147. package/table/table-filter/table-filter.component.d.ts +0 -18
  148. package/table/table-sort/index.d.ts +0 -7
  149. package/table/table-sort/table-sort.component.d.ts +0 -8
  150. package/table/table.component.d.ts +0 -33
  151. package/table/types/index.d.ts +0 -6
  152. package/table/types/table-cell-context.d.ts +0 -6
  153. package/table/types/table-columns.d.ts +0 -7
  154. package/table/types/table-filter-emit.d.ts +0 -5
  155. package/table/types/table-filter-item.d.ts +0 -6
  156. package/table/types/table-order-item.d.ts +0 -5
  157. package/table/types/table-order.enum.d.ts +0 -5
  158. package/tag/public-api.d.ts +0 -7
  159. package/tag/tag.component.d.ts +0 -21
  160. package/textarea/public-api.d.ts +0 -7
  161. package/textarea/textarea.component.d.ts +0 -44
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export type WrAlertType = 'info' | 'success' | 'warning' | 'danger';
@@ -1,21 +0,0 @@
1
- import { SafeAny } from 'ngwr/cdk/types';
2
- import { WrAlertType } from './alert-type';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * NGWR alert component.
6
- * Closeable component for feedback.
7
- *
8
- * {@tutorial} [How to use wr-alert]{@link http://ngwr.dev/docs/components/alert}
9
- */
10
- export declare class WrAlertComponent {
11
- title: string;
12
- message?: string;
13
- type: WrAlertType;
14
- closeable: boolean;
15
- protected readonly isClosed: import("@angular/core").WritableSignal<boolean>;
16
- get elClasses(): SafeAny;
17
- onClose(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<WrAlertComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<WrAlertComponent, "wr-alert", never, { "title": { "alias": "title"; "required": true; }; "message": { "alias": "message"; "required": false; }; "type": { "alias": "type"; "required": false; }; "closeable": { "alias": "closeable"; "required": false; }; }, {}, never, never, true, never>;
20
- static ngAcceptInputType_closeable: unknown;
21
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './alert-type';
8
- export * from './alert.component';
@@ -1,27 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
- import { SafeAny } from 'ngwr/cdk/types';
3
- import * as i0 from "@angular/core";
4
- export declare class WrAvatarComponent {
5
- readonly cdr: ChangeDetectorRef;
6
- readonly elRef: ElementRef<any>;
7
- readonly remSize: number;
8
- readonly isImgLoaded: import("@angular/core").WritableSignal<boolean>;
9
- private calcRemToPx;
10
- constructor();
11
- url: string;
12
- alt: string;
13
- rounded: boolean;
14
- /**
15
- * Width and height in rem
16
- * @example size="6" transforms to 6 * remSize (16 by default)
17
- */
18
- get size(): number;
19
- set size(value: number | string);
20
- private _size;
21
- get elClasses(): SafeAny;
22
- get elStyles(): SafeAny;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<WrAvatarComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<WrAvatarComponent, "wr-avatar", never, { "url": { "alias": "url"; "required": true; }; "alt": { "alias": "alt"; "required": true; }; "rounded": { "alias": "rounded"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], true, never>;
25
- static ngAcceptInputType_rounded: unknown;
26
- static ngAcceptInputType_size: unknown;
27
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './avatar.component';
@@ -1,12 +0,0 @@
1
- import { SafeAny } from 'ngwr/cdk/types';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * NGWR button group.
5
- *
6
- * {@tutorial} [How to use wr-btn-group]{@link http://ngwr.dev/docs/components/button-group}
7
- */
8
- export declare class WrButtonGroupComponent {
9
- get classes(): SafeAny;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<WrButtonGroupComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<WrButtonGroupComponent, "wr-btn-group", never, {}, {}, never, ["*"], true, never>;
12
- }
@@ -1,31 +0,0 @@
1
- import { SafeAny, WrThemeColor } from 'ngwr/cdk/types';
2
- import { wrIconName } from 'ngwr/icon';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * NGWR button component.
6
- * Trigger an operation or perform an action.
7
- *
8
- * {@tutorial} [How to use wr-btn]{@link http://ngwr.dev/docs/components/button}
9
- */
10
- export declare class WrButtonComponent {
11
- color?: WrThemeColor | null;
12
- size: 'default' | 'small';
13
- icon: wrIconName | null;
14
- iconPosition: 'start' | 'end';
15
- disabled: boolean;
16
- outlined: boolean;
17
- rounded: boolean;
18
- block: boolean;
19
- loading: boolean;
20
- isDisabledWhenLoading: boolean;
21
- get nativeDisabled(): '' | null;
22
- get elClasses(): SafeAny;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<WrButtonComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<WrButtonComponent, "wr-btn, button[wr-btn], a[wr-btn]", never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "block": { "alias": "block"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "isDisabledWhenLoading": { "alias": "isDisabledWhenLoading"; "required": false; }; }, {}, never, ["*"], true, never>;
25
- static ngAcceptInputType_disabled: unknown;
26
- static ngAcceptInputType_outlined: unknown;
27
- static ngAcceptInputType_rounded: unknown;
28
- static ngAcceptInputType_block: unknown;
29
- static ngAcceptInputType_loading: unknown;
30
- static ngAcceptInputType_isDisabledWhenLoading: unknown;
31
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './button.component';
8
- export * from './button-group.component';
@@ -1,20 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { DestroyRef, OnDestroy } from '@angular/core';
8
- import { Subject } from 'rxjs';
9
- import * as i0 from "@angular/core";
10
- export declare abstract class WrAbstractBase implements OnDestroy {
11
- /**
12
- * @deprecated use destroyRef$ instead
13
- * @protected
14
- */
15
- protected readonly destroyed$: Subject<void>;
16
- protected readonly destroyRef$: DestroyRef;
17
- ngOnDestroy(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<WrAbstractBase, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrAbstractBase, never, never, {}, {}, never, never, true, never>;
20
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './base.directive';
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { Maybe } from 'ngwr/cdk/types';
8
- export declare function isArray<T>(val: Maybe<T>): val is T;
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { Maybe } from 'ngwr/cdk/types';
8
- export declare function isDefined<T>(value: Maybe<T>): value is T;
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { Maybe } from 'ngwr/cdk/types';
8
- export declare function isNotEmptyArray<T>(val: Maybe<T>): val is T;
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { Observable } from 'rxjs';
8
- import { SafeAny } from 'ngwr/cdk/types';
9
- export declare function isObservable(obj: SafeAny | Observable<SafeAny>): obj is Observable<SafeAny>;
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './is-array';
8
- export * from './is-defined';
9
- export * from './is-not-empty-array';
10
- export * from './is-observable';
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export type Maybe<T> = T | undefined | null;
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './maybe';
8
- export * from './safe-any';
9
- export * from './theme-color';
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export type SafeAny = any;
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export declare const wrThemeColors: readonly ["primary", "secondary", "success", "warning", "danger", "light", "medium", "dark"];
8
- export type WrThemeColor = (typeof wrThemeColors)[number];
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- /**
8
- * Generates random ID
9
- *
10
- * @return {string}
11
- */
12
- export declare function generateRandomId(): string;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './generate-random-id';
@@ -1,28 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import { WrAbstractBase } from 'ngwr/cdk';
3
- import { SafeAny } from 'ngwr/cdk/types';
4
- import { wrIconName } from 'ngwr/icon';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * NGWR checkbox component.
8
- *
9
- * {@tutorial} [How to use wr-checkbox]{@link http://ngwr.dev/docs/components/checkbox}
10
- */
11
- export declare class WrCheckboxComponent extends WrAbstractBase implements ControlValueAccessor {
12
- id: string;
13
- icon: wrIconName | null;
14
- get elClasses(): SafeAny;
15
- get nativeDisabled(): '' | null;
16
- protected readonly inputValue: import("@angular/core").WritableSignal<boolean | null>;
17
- protected value?: boolean;
18
- private readonly cdr;
19
- protected readonly isDisabled: import("@angular/core").WritableSignal<boolean>;
20
- onChange: (value: boolean) => void;
21
- onTouched: () => void;
22
- registerOnChange(fn: (value: boolean) => void): void;
23
- registerOnTouched(fn: () => void): void;
24
- setDisabledState(isDisabled: boolean): void;
25
- writeValue(value: boolean): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<WrCheckboxComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<WrCheckboxComponent, "wr-checkbox", never, { "id": { "alias": "id"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, ["*"], true, never>;
28
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './checkbox.component';
@@ -1,22 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { AnimationTriggerMetadata } from '@angular/animations';
8
- export declare const WR_ANIMATION_ZOOM_CLASS_NAME_MAP: {
9
- enter: string;
10
- enterActive: string;
11
- leave: string;
12
- leaveActive: string;
13
- };
14
- export declare const WR_ANIMATION_FADE_CLASS_NAME_MAP: {
15
- enter: string;
16
- enterActive: string;
17
- leave: string;
18
- leaveActive: string;
19
- };
20
- export declare const wrDialogAnimations: {
21
- readonly dialogComponent: AnimationTriggerMetadata;
22
- };
@@ -1,40 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { AnimationEvent } from '@angular/animations';
8
- import { OverlayRef } from '@angular/cdk/overlay';
9
- import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
10
- import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, OnDestroy } from '@angular/core';
11
- import { Subject } from 'rxjs';
12
- import { WrDialogOptions } from './dialog-options';
13
- import { WrDialogRef } from './dialog-ref';
14
- import * as i0 from "@angular/core";
15
- export declare class WrDialogBaseDirective extends BasePortalOutlet implements OnDestroy {
16
- cdr: ChangeDetectorRef;
17
- options: WrDialogOptions;
18
- protected overlayRef: OverlayRef;
19
- portalOutlet: CdkPortalOutlet;
20
- dialogElementRef: ElementRef<HTMLDivElement>;
21
- dialogRef: WrDialogRef;
22
- containerClick: EventEmitter<void>;
23
- animationStateChanged: EventEmitter<AnimationEvent>;
24
- state: 'void' | 'enter' | 'exit';
25
- protected readonly destroyed$: Subject<void>;
26
- constructor(cdr: ChangeDetectorRef, options: WrDialogOptions, overlayRef: OverlayRef);
27
- ngOnDestroy(): void;
28
- onContainerClick(e: MouseEvent): void;
29
- attachComponentPortal<C>(portal: ComponentPortal<C>): ComponentRef<C>;
30
- attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
31
- private setEnterAnimationClass;
32
- private setExitAnimationClass;
33
- private setMaskExitAnimationClass;
34
- private cleanAnimationClass;
35
- onAnimationDone(event: AnimationEvent): void;
36
- onAnimationStart(event: AnimationEvent): void;
37
- startExitAnimation(): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogBaseDirective, never>;
39
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogBaseDirective, never, never, {}, {}, never, never, true, never>;
40
- }
@@ -1,9 +0,0 @@
1
- import { WrDialogRef } from './dialog-ref';
2
- import * as i0 from "@angular/core";
3
- export declare class WrDialogCloseDirective {
4
- dialogRef: WrDialogRef;
5
- _onButtonClick(event: MouseEvent): void;
6
- constructor(dialogRef: WrDialogRef);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogCloseDirective, [{ optional: true; }]>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogCloseDirective, "[wrDialogClose]", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class WrDialogContentDirective {
3
- class: string;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogContentDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogContentDirective, "[wrDialogContent]", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { InjectionToken } from '@angular/core';
8
- export declare const WR_DIALOG_DATA: InjectionToken<any>;
@@ -1,8 +0,0 @@
1
- import { SafeAny } from 'ngwr/cdk/types';
2
- import * as i0 from "@angular/core";
3
- export declare class WrDialogFooterDirective {
4
- position: 'start' | 'center' | 'end';
5
- get elClasses(): SafeAny;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogFooterDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogFooterDirective, "[wrDialogFooter]", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
8
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { ComponentType, PositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
8
- import { ViewContainerRef } from '@angular/core';
9
- import { SafeAny } from 'ngwr/cdk/types';
10
- export declare class WrDialogOptions<C = SafeAny> {
11
- id?: string;
12
- component?: ComponentType<C>;
13
- data?: SafeAny;
14
- hasBackdrop?: boolean;
15
- backdropClass?: string;
16
- positionStrategy?: PositionStrategy;
17
- scrollStrategy?: ScrollStrategy;
18
- viewContainerRef?: ViewContainerRef;
19
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { OverlayRef } from '@angular/cdk/overlay';
8
- import { Subject } from 'rxjs';
9
- import { WrAbstractBase } from 'ngwr/cdk';
10
- import { SafeAny } from 'ngwr/cdk/types';
11
- import { WrDialogBaseDirective } from './dialog-base.directive';
12
- import { WrDialogOptions } from './dialog-options';
13
- export declare class WrDialogRef<C = SafeAny, R = SafeAny> extends WrAbstractBase {
14
- private overlayRef;
15
- private options;
16
- baseInstance: WrDialogBaseDirective;
17
- readonly id?: string;
18
- componentInstance: C | null;
19
- result?: R;
20
- readonly afterOpened: Subject<void>;
21
- readonly afterClosed: Subject<R | undefined>;
22
- private closeTimeout?;
23
- constructor(overlayRef: OverlayRef, options: WrDialogOptions, baseInstance: WrDialogBaseDirective);
24
- close(result?: R): void;
25
- private _finishDialogClose;
26
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class WrDialogTitleDirective {
3
- class: string;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogTitleDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogTitleDirective, "[wrDialogTitle]", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { AnimationEvent } from '@angular/animations';
8
- import { OverlayRef } from '@angular/cdk/overlay';
9
- import { CdkPortalOutlet } from '@angular/cdk/portal';
10
- import { ChangeDetectorRef, ElementRef } from '@angular/core';
11
- import { SafeAny } from 'ngwr/cdk/types';
12
- import { WrDialogBaseDirective } from './dialog-base.directive';
13
- import { WrDialogOptions } from './dialog-options';
14
- import * as i0 from "@angular/core";
15
- export declare class WrDialogComponent extends WrDialogBaseDirective {
16
- options: WrDialogOptions;
17
- portalOutlet: CdkPortalOutlet;
18
- dialogElementRef: ElementRef<HTMLDivElement>;
19
- state: 'void' | 'enter' | 'exit';
20
- onAnimationStart(event: AnimationEvent): void;
21
- onAnimationDone(event: AnimationEvent): void;
22
- onContainerClick(e: MouseEvent): void;
23
- /** Set element classes */
24
- get elClasses(): SafeAny;
25
- constructor(cdr: ChangeDetectorRef, options: WrDialogOptions, overlayRef: OverlayRef);
26
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<WrDialogComponent, "wr-dialog", never, {}, {}, never, never, true, never>;
28
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class WrDialogModule {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogModule, never>;
4
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrDialogModule, never, never, never>;
5
- static ɵinj: i0.ɵɵInjectorDeclaration<WrDialogModule>;
6
- }
@@ -1,28 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import { SafeAny } from 'ngwr/cdk/types';
3
- import { WrDialogOptions } from './dialog-options';
4
- import { WrDialogRef } from './dialog-ref';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * NGWR dialog service.
8
- *
9
- * {@tutorial} [How to use wr-dialog]{@link http://ngwr.dev/docs/components/dialog}
10
- */
11
- export declare class WrDialogService {
12
- private readonly overlay;
13
- private readonly injector;
14
- private readonly parentModal;
15
- private openedDialogsAtThisLevel;
16
- private readonly afterAllClosedAtThisLevel;
17
- get openedDialogs(): WrDialogRef[];
18
- get _afterAllClosed(): Subject<void>;
19
- open<C = SafeAny, R = SafeAny>(options: WrDialogOptions<C>): WrDialogRef<C, R>;
20
- private _defaultPositionStrategy;
21
- private _defaultScrollStrategy;
22
- private _createOverlay;
23
- private _attachDialogContainer;
24
- private _attachDialogContent;
25
- private _removeOpenedModal;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogService, never>;
27
- static ɵprov: i0.ɵɵInjectableDeclaration<WrDialogService>;
28
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './dialog.component';
8
- export * from './dialog.module';
9
- export * from './dialog.service';
10
- export * from './dialog-animations';
11
- export * from './dialog-base.directive';
12
- export * from './dialog-close.directive';
13
- export * from './dialog-content.directive';
14
- export * from './dialog-data.token';
15
- export * from './dialog-footer.directive';
16
- export * from './dialog-options';
17
- export * from './dialog-ref';
18
- export * from './dialog-title.directive';
@@ -1,13 +0,0 @@
1
- import { SafeAny, WrThemeColor } from 'ngwr/cdk/types';
2
- import * as i0 from "@angular/core";
3
- export declare class WrDividerComponent {
4
- color: WrThemeColor | null;
5
- type: 'solid' | 'dashed' | 'dotted';
6
- width: number;
7
- get elClasses(): SafeAny;
8
- get elStyles(): SafeAny;
9
- role: string;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDividerComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<WrDividerComponent, "wr-divider", never, { "color": { "alias": "color"; "required": false; }; "type": { "alias": "type"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, true, never>;
12
- static ngAcceptInputType_width: unknown;
13
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- export * from './divider.component';
@@ -1,12 +0,0 @@
1
- import { wrIconName } from 'ngwr/icon';
2
- import * as i0 from "@angular/core";
3
- export declare class WrDropdownMenuItemComponent {
4
- icon: import("@angular/core").InputSignal<wrIconName | null>;
5
- disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
6
- get hostClasses(): Record<string, boolean>;
7
- attrRole: string;
8
- tabindex: string;
9
- protected onClick(event: MouseEvent): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDropdownMenuItemComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<WrDropdownMenuItemComponent, "wr-dropdown-menu-item", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
12
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Use of this source code is governed by an MIT-style license that can be
5
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
- */
7
- import { TemplateRef } from '@angular/core';
8
- import * as i0 from "@angular/core";
9
- export declare class WrDropdownMenuComponent {
10
- get hostClasses(): Record<string, string>;
11
- contentTpl: TemplateRef<void>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<WrDropdownMenuComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<WrDropdownMenuComponent, "wr-dropdown-menu", ["wrDropdownMenu"], {}, {}, never, ["*"], true, never>;
14
- }