ngwr 5.0.3 → 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 (160) 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 +68 -0
  12. package/dropdown/styles/_index.scss +91 -0
  13. package/dropdown/styles/vars.scss +18 -0
  14. package/fesm2022/ngwr-alert.mjs +8 -28
  15. package/fesm2022/ngwr-alert.mjs.map +1 -1
  16. package/fesm2022/ngwr-avatar.mjs +8 -28
  17. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  18. package/fesm2022/ngwr-button.mjs +10 -31
  19. package/fesm2022/ngwr-button.mjs.map +1 -1
  20. package/fesm2022/ngwr-cdk.mjs +9 -4
  21. package/fesm2022/ngwr-cdk.mjs.map +1 -1
  22. package/fesm2022/ngwr-checkbox.mjs +7 -26
  23. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  24. package/fesm2022/ngwr-dialog.mjs +135 -159
  25. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  26. package/fesm2022/ngwr-divider.mjs +5 -19
  27. package/fesm2022/ngwr-divider.mjs.map +1 -1
  28. package/fesm2022/ngwr-dropdown.mjs +315 -0
  29. package/fesm2022/ngwr-dropdown.mjs.map +1 -0
  30. package/fesm2022/ngwr-form.mjs +8 -29
  31. package/fesm2022/ngwr-form.mjs.map +1 -1
  32. package/fesm2022/ngwr-icon.mjs +11 -32
  33. package/fesm2022/ngwr-icon.mjs.map +1 -1
  34. package/fesm2022/ngwr-input.mjs +12 -32
  35. package/fesm2022/ngwr-input.mjs.map +1 -1
  36. package/fesm2022/ngwr-pagination.mjs +125 -0
  37. package/fesm2022/ngwr-pagination.mjs.map +1 -0
  38. package/fesm2022/ngwr-pipes.mjs +5 -25
  39. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  40. package/fesm2022/ngwr-progress.mjs +6 -25
  41. package/fesm2022/ngwr-progress.mjs.map +1 -1
  42. package/fesm2022/ngwr-qr.mjs +15 -37
  43. package/fesm2022/ngwr-qr.mjs.map +1 -1
  44. package/fesm2022/ngwr-select.mjs +405 -0
  45. package/fesm2022/ngwr-select.mjs.map +1 -0
  46. package/fesm2022/ngwr-skeleton.mjs +5 -19
  47. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  48. package/fesm2022/ngwr-spinner.mjs +16 -28
  49. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  50. package/fesm2022/ngwr-table.mjs +258 -0
  51. package/fesm2022/ngwr-table.mjs.map +1 -0
  52. package/fesm2022/ngwr-tag.mjs +7 -21
  53. package/fesm2022/ngwr-tag.mjs.map +1 -1
  54. package/fesm2022/ngwr-textarea.mjs +8 -27
  55. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  56. package/form/index.d.ts +26 -3
  57. package/icon/index.d.ts +828 -3
  58. package/index.d.ts +2 -5
  59. package/input/index.d.ts +41 -3
  60. package/package.json +35 -7
  61. package/pagination/index.d.ts +34 -0
  62. package/pagination/styles/_index.scss +60 -0
  63. package/pagination/styles/vars.scss +14 -0
  64. package/pipes/index.d.ts +15 -3
  65. package/progress/index.d.ts +13 -5
  66. package/qr/index.d.ts +127 -5
  67. package/select/index.d.ts +121 -0
  68. package/select/styles/_index.scss +237 -0
  69. package/select/styles/vars.scss +32 -0
  70. package/skeleton/index.d.ts +13 -2
  71. package/spinner/index.d.ts +23 -2
  72. package/spinner/styles/_index.scss +10 -3
  73. package/styles.scss +4 -0
  74. package/table/index.d.ts +101 -0
  75. package/table/styles/_index.scss +4 -0
  76. package/table/styles/table-filter.scss +202 -0
  77. package/table/styles/table-sort.scss +47 -0
  78. package/table/styles/table.scss +232 -0
  79. package/table/styles/vars.scss +21 -0
  80. package/tag/index.d.ts +24 -5
  81. package/textarea/index.d.ts +44 -4
  82. package/alert/alert-type.d.ts +0 -7
  83. package/alert/alert.component.d.ts +0 -21
  84. package/alert/alert.module.d.ts +0 -7
  85. package/alert/public-api.d.ts +0 -9
  86. package/avatar/avatar.component.d.ts +0 -27
  87. package/avatar/avatar.module.d.ts +0 -7
  88. package/avatar/public-api.d.ts +0 -8
  89. package/button/button-group.component.d.ts +0 -12
  90. package/button/button.component.d.ts +0 -31
  91. package/button/button.module.d.ts +0 -8
  92. package/button/public-api.d.ts +0 -9
  93. package/cdk/base.directive.d.ts +0 -15
  94. package/cdk/public-api.d.ts +0 -7
  95. package/cdk/rxjs/is-array.d.ts +0 -8
  96. package/cdk/rxjs/is-defined.d.ts +0 -8
  97. package/cdk/rxjs/is-not-empty-array.d.ts +0 -8
  98. package/cdk/rxjs/is-observable.d.ts +0 -9
  99. package/cdk/rxjs/public-api.d.ts +0 -10
  100. package/cdk/types/maybe.d.ts +0 -7
  101. package/cdk/types/public-api.d.ts +0 -9
  102. package/cdk/types/safe-any.d.ts +0 -7
  103. package/cdk/types/theme-color.d.ts +0 -8
  104. package/cdk/utils/generate-random-id.d.ts +0 -12
  105. package/cdk/utils/public-api.d.ts +0 -7
  106. package/checkbox/checkbox.component.d.ts +0 -28
  107. package/checkbox/checkbox.module.d.ts +0 -7
  108. package/checkbox/public-api.d.ts +0 -8
  109. package/dialog/dialog-animations.d.ts +0 -22
  110. package/dialog/dialog-base.directive.d.ts +0 -40
  111. package/dialog/dialog-close.directive.d.ts +0 -9
  112. package/dialog/dialog-content.directive.d.ts +0 -6
  113. package/dialog/dialog-data.token.d.ts +0 -8
  114. package/dialog/dialog-footer.directive.d.ts +0 -8
  115. package/dialog/dialog-options.d.ts +0 -19
  116. package/dialog/dialog-ref.d.ts +0 -26
  117. package/dialog/dialog-title.directive.d.ts +0 -6
  118. package/dialog/dialog.component.d.ts +0 -28
  119. package/dialog/dialog.module.d.ts +0 -11
  120. package/dialog/dialog.service.d.ts +0 -28
  121. package/dialog/public-api.d.ts +0 -18
  122. package/divider/divider.component.d.ts +0 -13
  123. package/divider/divider.module.d.ts +0 -7
  124. package/divider/public-api.d.ts +0 -8
  125. package/form/form-error.component.d.ts +0 -11
  126. package/form/form-item.component.d.ts +0 -14
  127. package/form/form.module.d.ts +0 -8
  128. package/form/public-api.d.ts +0 -9
  129. package/icon/icon.component.d.ts +0 -24
  130. package/icon/icon.module.d.ts +0 -7
  131. package/icon/icon.service.d.ts +0 -23
  132. package/icon/icons.d.ts +0 -770
  133. package/icon/provide-wr-icons.d.ts +0 -9
  134. package/icon/public-api.d.ts +0 -11
  135. package/input/input-types.d.ts +0 -1
  136. package/input/input.component.d.ts +0 -38
  137. package/input/input.module.d.ts +0 -7
  138. package/input/public-api.d.ts +0 -9
  139. package/pipes/new-array.pipe.d.ts +0 -13
  140. package/pipes/pipes.module.d.ts +0 -7
  141. package/pipes/public-api.d.ts +0 -8
  142. package/progress/progress.component.d.ts +0 -10
  143. package/progress/progress.module.d.ts +0 -7
  144. package/progress/public-api.d.ts +0 -8
  145. package/public-api.d.ts +0 -2
  146. package/qr/generator.d.ts +0 -7
  147. package/qr/public-api.d.ts +0 -8
  148. package/qr/qr.component.d.ts +0 -31
  149. package/qr/qr.module.d.ts +0 -7
  150. package/qr/qrcodegen.d.ts +0 -94
  151. package/skeleton/skeleton.component.d.ts +0 -10
  152. package/skeleton/skeleton.module.d.ts +0 -7
  153. package/spinner/spinner.component.d.ts +0 -11
  154. package/spinner/spinner.module.d.ts +0 -7
  155. package/tag/public-api.d.ts +0 -8
  156. package/tag/tag.component.d.ts +0 -21
  157. package/tag/tag.module.d.ts +0 -7
  158. package/textarea/public-api.d.ts +0 -8
  159. package/textarea/textarea.component.d.ts +0 -44
  160. package/textarea/textarea.module.d.ts +0 -7
@@ -0,0 +1,232 @@
1
+ @forward "./vars";
2
+
3
+ .wr-table {
4
+ --ant-pagination-item-size: 1.5rem;
5
+ --ant-pagination-border-radius: calc(var(--wr-input-border-radius) * 0.75);
6
+
7
+ display: flex;
8
+ flex-direction: column;
9
+ width: 100%;
10
+
11
+ background: var(--wr-color-white);
12
+ border: 1px solid var(--wr-color-light-lighter);
13
+ border-radius: var(--wr-border-radius-base);
14
+
15
+ &__spinner {
16
+ color: var(--wr-color-primary);
17
+ width: 0.875rem;
18
+ height: 0.875rem;
19
+ margin-right: auto;
20
+ }
21
+
22
+ &-top,
23
+ &-bot {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: flex-end;
27
+ gap: calc(var(--wr-grid-gutter) / 2);
28
+ padding: var(--wr-table-padding);
29
+ }
30
+
31
+ &-top {
32
+ border-bottom: 1px solid var(--wr-color-light-lighter);
33
+ }
34
+
35
+ &-bot {
36
+ border-top: 1px solid var(--wr-color-light-lighter);
37
+ }
38
+
39
+ &-hint {
40
+ --wr-table-hint-padding: 0.125rem;
41
+ --wr-table-hint-color: var(--wr-color-medium);
42
+
43
+ display: flex;
44
+ flex-direction: column;
45
+ align-items: center;
46
+ justify-content: center;
47
+
48
+ width: var(--wr-pagination-item-size);
49
+ height: var(--wr-pagination-item-size);
50
+
51
+ padding: var(--wr-table-hint-padding);
52
+
53
+ border-radius: var(--wr-btn-border-radius);
54
+ border: 1px solid var(--wr-color-light-lighter);
55
+
56
+ &:hover {
57
+ --wr-table-help-color: var(--wr-color-secondary);
58
+ cursor: pointer;
59
+ }
60
+
61
+ &__icon {
62
+ --wr-icon-size: calc(var(--wr-pagination-font-size) *1.2);
63
+
64
+ color: var(--wr-table-hint-color);
65
+ transition: var(--wr-transition-base);
66
+ }
67
+
68
+ &-dropdown {
69
+ display: flex;
70
+ flex-direction: column;
71
+ align-items: stretch;
72
+
73
+ gap: calc(var(--wr-grid-gutter) / 2);
74
+ padding: var(--wr-table-padding);
75
+
76
+ &-item {
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: flex-start;
80
+ gap: 0.5rem;
81
+
82
+ &__title {
83
+ color: var(--wr-color-dark);
84
+ font-size: 0.875rem;
85
+ font-weight: 500;
86
+ line-height: 1rem;
87
+ }
88
+
89
+ &__key {
90
+ font-family: var(--wr-font-family-mono), monospace;
91
+ margin: 0 .2em;
92
+ padding: .15em .4em .1em;
93
+ font-size: 90%;
94
+ background: #9696960f;
95
+ border: 1px solid rgba(100, 100, 100, .2);
96
+ border-bottom-width: 2px;
97
+ border-radius: 3px;
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ &__pagination {
104
+ --ant-pagination-item-size: 1.5rem;
105
+ --ant-pagination-border-radius: calc(var(--wr-input-border-radius) * 0.75);
106
+ }
107
+
108
+ &-head,
109
+ &-body {
110
+ padding: var(--wr-table-padding);
111
+
112
+ &-cell {
113
+ width: calc(100% / var(--wr-table-columns));
114
+
115
+ &--actions {
116
+ width: 3rem;
117
+ }
118
+ }
119
+
120
+ &__loader {
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ position: absolute;
125
+ top: 0;
126
+ left: 0;
127
+ bottom: 0;
128
+ right: 0;
129
+ background: rgba(255,255,255,.6);
130
+ width: auto;
131
+ height: auto;
132
+ color: var(--wr-color-primary-light);
133
+ }
134
+ }
135
+
136
+ &-head {
137
+ display: flex;
138
+ flex-direction: column;
139
+ align-items: center;
140
+ justify-content: center;
141
+
142
+ position: sticky;
143
+ z-index: 2;
144
+ top: 0;
145
+ left: 0;
146
+
147
+ &__wrapper {
148
+ display: flex;
149
+ align-items: center;
150
+ justify-content: flex-start;
151
+
152
+ width: 100%;
153
+
154
+ background: #f3f5f8;
155
+ border-radius: calc(var(--wr-border-radius-base) / 2);
156
+ }
157
+
158
+ &-cell {
159
+ display: flex;
160
+ align-items: center;
161
+ justify-content: flex-end;
162
+ padding: 0.5rem 0.5rem;
163
+
164
+ &__title {
165
+ color: var(--wr-color-medium);
166
+ font-size: 0.75rem;
167
+ font-weight: 600;
168
+ line-height: 1rem;
169
+
170
+ margin: 0 auto 0 0;
171
+ }
172
+ }
173
+ }
174
+
175
+ &-body {
176
+ display: flex;
177
+ flex-direction: column;
178
+
179
+ padding-top: 0;
180
+
181
+ position: relative;
182
+
183
+ &__row {
184
+ display: flex;
185
+ align-items: center;
186
+ border-bottom: 1px solid var(--wr-color-light-lighter);
187
+
188
+ &:last-child {
189
+ border-bottom: none;
190
+ }
191
+ }
192
+
193
+ &-cell {
194
+ color: var(--wr-color-dark);
195
+ font-size: 0.75rem;
196
+ font-weight: 400;
197
+ line-height: 1rem;
198
+
199
+ margin: 0;
200
+ padding: 0.5rem 0.5rem;
201
+ }
202
+ }
203
+
204
+ &-actions {
205
+ --wr-table-dots-color: var(--wr-color-medium);
206
+
207
+ display: flex;
208
+ flex-direction: column;
209
+ align-items: center;
210
+ justify-content: center;
211
+
212
+ opacity: var(--wr-table-dots-opacity);
213
+
214
+ width: 1.375rem;
215
+ height: 1.375rem;
216
+
217
+ border-radius: calc(var(--wr-border-radius-base) / 2);
218
+ border: 1px solid var(--wr-color-light-lighter);
219
+
220
+ transition: var(--wr-transition-base);
221
+
222
+ &__icon {
223
+ --wr-icon-size: 1rem;
224
+ color: var(--wr-table-dots-color);
225
+ transition: var(--wr-transition-base);
226
+ }
227
+
228
+ &:hover {
229
+ --wr-table-dots-color: var(--wr-color-secondary);
230
+ }
231
+ }
232
+ }
@@ -0,0 +1,21 @@
1
+ :root {
2
+ --wr-table-columns: 1;
3
+ --wr-table-padding: calc(var(--wr-grid-gutter) / 3);
4
+
5
+ // Icon variables
6
+ --wr-table-filter-size: 1.25rem;
7
+ --wr-table-filter-padding: 0.125rem;
8
+ --wr-table-filter-color: var(--wr-color-light);
9
+ --wr-table-filter-bg: transparent;
10
+
11
+ // Dropdown variables
12
+ --wr-table-filter-dd-padding: 0.375rem;
13
+ --wr-table-filter-dd-max-items: 10;
14
+ --wr-table-filter-dd-item-height: 2rem;
15
+
16
+ --wr-table-sort-size: 1.25rem;
17
+ --wr-table-sort-padding: 0.125rem;
18
+ --wr-table-sort-rotate: -90deg;
19
+ --wr-table-sort-color: var(--wr-color-light);
20
+ --wr-table-sort-bg: transparent;
21
+ }
package/tag/index.d.ts CHANGED
@@ -1,5 +1,24 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ngwr/tag" />
5
- export * from './public-api';
1
+ import { WrThemeColor, SafeAny } from 'ngwr/cdk/types';
2
+ import { wrIconName } from 'ngwr/icon';
3
+ import * as i0 from '@angular/core';
4
+
5
+ declare class WrTagComponent {
6
+ color: WrThemeColor;
7
+ icon: wrIconName | null;
8
+ iconPosition: 'start' | 'end';
9
+ outlined: boolean;
10
+ rounded: boolean;
11
+ transparent: boolean;
12
+ hoverable: boolean;
13
+ loading: boolean;
14
+ get elClasses(): SafeAny;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrTagComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<WrTagComponent, "wr-tag", never, { "color": { "alias": "color"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "transparent": { "alias": "transparent"; "required": false; }; "hoverable": { "alias": "hoverable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, ["*"], true, never>;
17
+ static ngAcceptInputType_outlined: unknown;
18
+ static ngAcceptInputType_rounded: unknown;
19
+ static ngAcceptInputType_transparent: unknown;
20
+ static ngAcceptInputType_hoverable: unknown;
21
+ static ngAcceptInputType_loading: unknown;
22
+ }
23
+
24
+ export { WrTagComponent };
@@ -1,7 +1,47 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { AfterViewInit } from '@angular/core';
3
+ import { ControlValueAccessor } from '@angular/forms';
4
+ import { WrAbstractBase } from 'ngwr/cdk';
5
+ import { SafeAny } from 'ngwr/cdk/types';
6
+
1
7
  /**
2
- * @license
8
+ * NGWR textarea component.
3
9
  *
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
10
+ * {@tutorial} [How to use wr-textarea]{@link http://ngwr.dev/docs/components/textarea}
6
11
  */
7
- export * from './public-api';
12
+ declare class WrTextareaComponent extends WrAbstractBase implements ControlValueAccessor, AfterViewInit {
13
+ placeholder: string;
14
+ readonly: boolean;
15
+ resizable: boolean;
16
+ autosize: boolean;
17
+ rows: number;
18
+ maxRows?: number;
19
+ set disabled(value: boolean);
20
+ get disabled(): boolean;
21
+ private textareaNative;
22
+ get elClasses(): SafeAny;
23
+ protected value?: string;
24
+ protected readonly inputValue: _angular_core.WritableSignal<string | null>;
25
+ protected readonly isDisabled: _angular_core.WritableSignal<boolean>;
26
+ private readonly platformId;
27
+ private readonly cdr;
28
+ private get isBrowser();
29
+ ngAfterViewInit(): void;
30
+ onChange: (value: string) => void;
31
+ onTouch: () => void;
32
+ registerOnChange(fn: (value: string) => void): void;
33
+ registerOnTouched(fn: () => void): void;
34
+ setDisabledState(isDisabled: boolean): void;
35
+ writeValue(value: string): void;
36
+ resizeTextarea(): void;
37
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTextareaComponent, never>;
38
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTextareaComponent, "wr-textarea", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "autosize": { "alias": "autosize"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
39
+ static ngAcceptInputType_readonly: unknown;
40
+ static ngAcceptInputType_resizable: unknown;
41
+ static ngAcceptInputType_autosize: unknown;
42
+ static ngAcceptInputType_rows: unknown;
43
+ static ngAcceptInputType_maxRows: unknown;
44
+ static ngAcceptInputType_disabled: unknown;
45
+ }
46
+
47
+ export { WrTextareaComponent };
@@ -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,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./alert.component";
3
- export declare class WrAlertModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrAlertModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrAlertModule, never, [typeof i1.WrAlertComponent], [typeof i1.WrAlertComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrAlertModule>;
7
- }
@@ -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 './alert-type';
8
- export * from './alert.component';
9
- export * from './alert.module';
@@ -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
- import * as i0 from "@angular/core";
2
- import * as i1 from "./avatar.component";
3
- export declare class WrAvatarModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WrAvatarModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrAvatarModule, never, [typeof i1.WrAvatarComponent], [typeof i1.WrAvatarComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<WrAvatarModule>;
7
- }
@@ -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 './avatar.component';
8
- export * from './avatar.module';
@@ -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
- import * as i0 from "@angular/core";
2
- import * as i1 from "./button.component";
3
- import * as i2 from "./button-group.component";
4
- export declare class WrButtonModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<WrButtonModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<WrButtonModule, never, [typeof i1.WrButtonComponent, typeof i2.WrButtonGroupComponent], [typeof i1.WrButtonComponent, typeof i2.WrButtonGroupComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<WrButtonModule>;
8
- }
@@ -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 './button.component';
8
- export * from './button-group.component';
9
- export * from './button.module';
@@ -1,15 +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 { 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
- protected readonly destroyed$: Subject<void>;
12
- ngOnDestroy(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<WrAbstractBase, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrAbstractBase, never, never, {}, {}, never, never, true, never>;
15
- }
@@ -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';