@ukho/admiralty-angular 0.0.0
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.
- package/.browserslistrc +16 -0
- package/.editorconfig +16 -0
- package/.scripts/copyPackageVersion.js +7 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +27 -0
- package/ng-package.json +9 -0
- package/package.json +52 -0
- package/src/index.ts +10 -0
- package/src/lib/app_initialise.ts +8 -0
- package/src/lib/design-system.module.ts +26 -0
- package/src/lib/stencil-generated/angular-component-lib/utils.ts +57 -0
- package/src/lib/stencil-generated/components.ts +1025 -0
- package/src/lib/stencil-generated/index.ts +45 -0
- package/src/lib/stencil-generated/radio-value-accessor.ts +24 -0
- package/src/lib/stencil-generated/text-value-accessor.ts +24 -0
- package/src/lib/stencil-generated/value-accessor.ts +39 -0
- package/tsconfig.json +39 -0
|
@@ -0,0 +1,1025 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* auto-generated angular directive proxies */
|
|
3
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
|
|
6
|
+
|
|
7
|
+
import { Components } from '@ukho/admiralty-core';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@ProxyCmp({
|
|
11
|
+
inputs: ['active', 'href']
|
|
12
|
+
})
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'admiralty-breadcrumb',
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
+
template: '<ng-content></ng-content>',
|
|
17
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
18
|
+
inputs: ['active', 'href'],
|
|
19
|
+
})
|
|
20
|
+
export class AdmiraltyBreadcrumb {
|
|
21
|
+
protected el: HTMLElement;
|
|
22
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
23
|
+
c.detach();
|
|
24
|
+
this.el = r.nativeElement;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export declare interface AdmiraltyBreadcrumb extends Components.AdmiraltyBreadcrumb {}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@ProxyCmp({
|
|
33
|
+
})
|
|
34
|
+
@Component({
|
|
35
|
+
selector: 'admiralty-breadcrumbs',
|
|
36
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
37
|
+
template: '<ng-content></ng-content>',
|
|
38
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
39
|
+
inputs: [],
|
|
40
|
+
})
|
|
41
|
+
export class AdmiraltyBreadcrumbs {
|
|
42
|
+
protected el: HTMLElement;
|
|
43
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
44
|
+
c.detach();
|
|
45
|
+
this.el = r.nativeElement;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
export declare interface AdmiraltyBreadcrumbs extends Components.AdmiraltyBreadcrumbs {}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@ProxyCmp({
|
|
54
|
+
inputs: ['disabled', 'icon', 'type', 'variant']
|
|
55
|
+
})
|
|
56
|
+
@Component({
|
|
57
|
+
selector: 'admiralty-button',
|
|
58
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
59
|
+
template: '<ng-content></ng-content>',
|
|
60
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
61
|
+
inputs: ['disabled', 'icon', 'type', 'variant'],
|
|
62
|
+
})
|
|
63
|
+
export class AdmiraltyButton {
|
|
64
|
+
protected el: HTMLElement;
|
|
65
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
66
|
+
c.detach();
|
|
67
|
+
this.el = r.nativeElement;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
export declare interface AdmiraltyButton extends Components.AdmiraltyButton {}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@ProxyCmp({
|
|
76
|
+
inputs: ['heading']
|
|
77
|
+
})
|
|
78
|
+
@Component({
|
|
79
|
+
selector: 'admiralty-card',
|
|
80
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
81
|
+
template: '<ng-content></ng-content>',
|
|
82
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
83
|
+
inputs: ['heading'],
|
|
84
|
+
})
|
|
85
|
+
export class AdmiraltyCard {
|
|
86
|
+
protected el: HTMLElement;
|
|
87
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
88
|
+
c.detach();
|
|
89
|
+
this.el = r.nativeElement;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
export declare interface AdmiraltyCard extends Components.AdmiraltyCard {}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
@ProxyCmp({
|
|
98
|
+
inputs: ['checkboxRight', 'checked', 'disabled', 'labelText', 'name', 'value']
|
|
99
|
+
})
|
|
100
|
+
@Component({
|
|
101
|
+
selector: 'admiralty-checkbox',
|
|
102
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
103
|
+
template: '<ng-content></ng-content>',
|
|
104
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
105
|
+
inputs: ['checkboxRight', 'checked', 'disabled', 'labelText', 'name', 'value'],
|
|
106
|
+
})
|
|
107
|
+
export class AdmiraltyCheckbox {
|
|
108
|
+
protected el: HTMLElement;
|
|
109
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
110
|
+
c.detach();
|
|
111
|
+
this.el = r.nativeElement;
|
|
112
|
+
proxyOutputs(this, this.el, ['checkboxChange', 'checkboxFocus', 'checkboxBlur']);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
export declare interface AdmiraltyCheckbox extends Components.AdmiraltyCheckbox {
|
|
118
|
+
/**
|
|
119
|
+
* Event is fired when the form control changes state @event radioChanges
|
|
120
|
+
*/
|
|
121
|
+
checkboxChange: EventEmitter<CustomEvent<any>>;
|
|
122
|
+
/**
|
|
123
|
+
* Event is fired when the form control gains focus @event checkboxFocus
|
|
124
|
+
*/
|
|
125
|
+
checkboxFocus: EventEmitter<CustomEvent<any>>;
|
|
126
|
+
/**
|
|
127
|
+
* Event is fired when the form control loses focus @event checkboxBlur
|
|
128
|
+
*/
|
|
129
|
+
checkboxBlur: EventEmitter<CustomEvent<any>>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
@ProxyCmp({
|
|
134
|
+
inputs: ['actionText', 'clickAction', 'colour', 'heading', 'height', 'width']
|
|
135
|
+
})
|
|
136
|
+
@Component({
|
|
137
|
+
selector: 'admiralty-colour-block',
|
|
138
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
139
|
+
template: '<ng-content></ng-content>',
|
|
140
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
141
|
+
inputs: ['actionText', 'clickAction', 'colour', 'heading', 'height', 'width'],
|
|
142
|
+
})
|
|
143
|
+
export class AdmiraltyColourBlock {
|
|
144
|
+
protected el: HTMLElement;
|
|
145
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
146
|
+
c.detach();
|
|
147
|
+
this.el = r.nativeElement;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
export declare interface AdmiraltyColourBlock extends Components.AdmiraltyColourBlock {}
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
@ProxyCmp({
|
|
156
|
+
inputs: ['heading', 'type']
|
|
157
|
+
})
|
|
158
|
+
@Component({
|
|
159
|
+
selector: 'admiralty-dialogue',
|
|
160
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
161
|
+
template: '<ng-content></ng-content>',
|
|
162
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
163
|
+
inputs: ['heading', 'type'],
|
|
164
|
+
})
|
|
165
|
+
export class AdmiraltyDialogue {
|
|
166
|
+
protected el: HTMLElement;
|
|
167
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
168
|
+
c.detach();
|
|
169
|
+
this.el = r.nativeElement;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
export declare interface AdmiraltyDialogue extends Components.AdmiraltyDialogue {}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@ProxyCmp({
|
|
178
|
+
inputs: ['alignHeadingRight', 'expanded', 'heading', 'hideBorder']
|
|
179
|
+
})
|
|
180
|
+
@Component({
|
|
181
|
+
selector: 'admiralty-expansion',
|
|
182
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
183
|
+
template: '<ng-content></ng-content>',
|
|
184
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
185
|
+
inputs: ['alignHeadingRight', 'expanded', 'heading', 'hideBorder'],
|
|
186
|
+
})
|
|
187
|
+
export class AdmiraltyExpansion {
|
|
188
|
+
protected el: HTMLElement;
|
|
189
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
190
|
+
c.detach();
|
|
191
|
+
this.el = r.nativeElement;
|
|
192
|
+
proxyOutputs(this, this.el, ['toggled']);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
export declare interface AdmiraltyExpansion extends Components.AdmiraltyExpansion {
|
|
198
|
+
/**
|
|
199
|
+
* The event that is dispatched when the expanded status is toggled.
|
|
200
|
+
*/
|
|
201
|
+
toggled: EventEmitter<CustomEvent<boolean>>;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
@ProxyCmp({
|
|
206
|
+
inputs: ['label', 'multiple']
|
|
207
|
+
})
|
|
208
|
+
@Component({
|
|
209
|
+
selector: 'admiralty-file-input',
|
|
210
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
211
|
+
template: '<ng-content></ng-content>',
|
|
212
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
213
|
+
inputs: ['label', 'multiple'],
|
|
214
|
+
})
|
|
215
|
+
export class AdmiraltyFileInput {
|
|
216
|
+
protected el: HTMLElement;
|
|
217
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
218
|
+
c.detach();
|
|
219
|
+
this.el = r.nativeElement;
|
|
220
|
+
proxyOutputs(this, this.el, ['fileInputChange']);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
export declare interface AdmiraltyFileInput extends Components.AdmiraltyFileInput {
|
|
226
|
+
/**
|
|
227
|
+
* Emitted when the added file(s) changes
|
|
228
|
+
*/
|
|
229
|
+
fileInputChange: EventEmitter<CustomEvent<File[]>>;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
@ProxyCmp({
|
|
234
|
+
inputs: ['filterTitle']
|
|
235
|
+
})
|
|
236
|
+
@Component({
|
|
237
|
+
selector: 'admiralty-filter',
|
|
238
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
239
|
+
template: '<ng-content></ng-content>',
|
|
240
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
241
|
+
inputs: ['filterTitle'],
|
|
242
|
+
})
|
|
243
|
+
export class AdmiraltyFilter {
|
|
244
|
+
protected el: HTMLElement;
|
|
245
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
246
|
+
c.detach();
|
|
247
|
+
this.el = r.nativeElement;
|
|
248
|
+
proxyOutputs(this, this.el, ['filterCleared', 'filterApplied']);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
export declare interface AdmiraltyFilter extends Components.AdmiraltyFilter {
|
|
254
|
+
/**
|
|
255
|
+
* Event that is emitted when the filters are cleared
|
|
256
|
+
*/
|
|
257
|
+
filterCleared: EventEmitter<CustomEvent<void>>;
|
|
258
|
+
/**
|
|
259
|
+
* Event that is emitted when the filters are applied
|
|
260
|
+
*/
|
|
261
|
+
filterApplied: EventEmitter<CustomEvent<void>>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
@ProxyCmp({
|
|
266
|
+
inputs: ['groupTitle']
|
|
267
|
+
})
|
|
268
|
+
@Component({
|
|
269
|
+
selector: 'admiralty-filter-group',
|
|
270
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
271
|
+
template: '<ng-content></ng-content>',
|
|
272
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
273
|
+
inputs: ['groupTitle'],
|
|
274
|
+
})
|
|
275
|
+
export class AdmiraltyFilterGroup {
|
|
276
|
+
protected el: HTMLElement;
|
|
277
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
278
|
+
c.detach();
|
|
279
|
+
this.el = r.nativeElement;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
export declare interface AdmiraltyFilterGroup extends Components.AdmiraltyFilterGroup {}
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
@ProxyCmp({
|
|
288
|
+
inputs: ['imageAlt', 'imageLink', 'imageSrc', 'text']
|
|
289
|
+
})
|
|
290
|
+
@Component({
|
|
291
|
+
selector: 'admiralty-footer',
|
|
292
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
293
|
+
template: '<ng-content></ng-content>',
|
|
294
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
295
|
+
inputs: ['imageAlt', 'imageLink', 'imageSrc', 'text'],
|
|
296
|
+
})
|
|
297
|
+
export class AdmiraltyFooter {
|
|
298
|
+
protected el: HTMLElement;
|
|
299
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
300
|
+
c.detach();
|
|
301
|
+
this.el = r.nativeElement;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
export declare interface AdmiraltyFooter extends Components.AdmiraltyFooter {}
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
@ProxyCmp({
|
|
310
|
+
inputs: ['headerTitle', 'headerTitleUrl', 'logoAltText', 'logoImgUrl', 'logoLinkUrl']
|
|
311
|
+
})
|
|
312
|
+
@Component({
|
|
313
|
+
selector: 'admiralty-header',
|
|
314
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
315
|
+
template: '<ng-content></ng-content>',
|
|
316
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
317
|
+
inputs: ['headerTitle', 'headerTitleUrl', 'logoAltText', 'logoImgUrl', 'logoLinkUrl'],
|
|
318
|
+
})
|
|
319
|
+
export class AdmiraltyHeader {
|
|
320
|
+
protected el: HTMLElement;
|
|
321
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
322
|
+
c.detach();
|
|
323
|
+
this.el = r.nativeElement;
|
|
324
|
+
proxyOutputs(this, this.el, ['titledClicked']);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
export declare interface AdmiraltyHeader extends Components.AdmiraltyHeader {
|
|
330
|
+
/**
|
|
331
|
+
* Emits an event that can be listened to when the title in the header is clicked
|
|
332
|
+
*/
|
|
333
|
+
titledClicked: EventEmitter<CustomEvent<string>>;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
@ProxyCmp({
|
|
338
|
+
inputs: ['active', 'menuTitle']
|
|
339
|
+
})
|
|
340
|
+
@Component({
|
|
341
|
+
selector: 'admiralty-header-menu-item',
|
|
342
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
343
|
+
template: '<ng-content></ng-content>',
|
|
344
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
345
|
+
inputs: ['active', 'menuTitle'],
|
|
346
|
+
})
|
|
347
|
+
export class AdmiraltyHeaderMenuItem {
|
|
348
|
+
protected el: HTMLElement;
|
|
349
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
350
|
+
c.detach();
|
|
351
|
+
this.el = r.nativeElement;
|
|
352
|
+
proxyOutputs(this, this.el, ['menuItemClick']);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
export declare interface AdmiraltyHeaderMenuItem extends Components.AdmiraltyHeaderMenuItem {
|
|
358
|
+
/**
|
|
359
|
+
* The event that is fired when a user clicks on the menu
|
|
360
|
+
*/
|
|
361
|
+
menuItemClick: EventEmitter<CustomEvent<void>>;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
@ProxyCmp({
|
|
366
|
+
inputs: ['isSignedIn', 'signedInText']
|
|
367
|
+
})
|
|
368
|
+
@Component({
|
|
369
|
+
selector: 'admiralty-header-profile',
|
|
370
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
371
|
+
template: '<ng-content></ng-content>',
|
|
372
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
373
|
+
inputs: ['isSignedIn', 'signedInText'],
|
|
374
|
+
})
|
|
375
|
+
export class AdmiraltyHeaderProfile {
|
|
376
|
+
protected el: HTMLElement;
|
|
377
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
378
|
+
c.detach();
|
|
379
|
+
this.el = r.nativeElement;
|
|
380
|
+
proxyOutputs(this, this.el, ['signInClicked', 'yourAccountClicked', 'signOutClicked', 'userProfileClicked']);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
export declare interface AdmiraltyHeaderProfile extends Components.AdmiraltyHeaderProfile {
|
|
386
|
+
/**
|
|
387
|
+
* The event that is fired when the user clicks on
|
|
388
|
+
the sign in button
|
|
389
|
+
*/
|
|
390
|
+
signInClicked: EventEmitter<CustomEvent<void>>;
|
|
391
|
+
/**
|
|
392
|
+
* The event that is fired when the user clicks on the
|
|
393
|
+
'Your account' button
|
|
394
|
+
*/
|
|
395
|
+
yourAccountClicked: EventEmitter<CustomEvent<void>>;
|
|
396
|
+
/**
|
|
397
|
+
* The event that is fired when the user clicks on the
|
|
398
|
+
'sign out' button
|
|
399
|
+
*/
|
|
400
|
+
signOutClicked: EventEmitter<CustomEvent<void>>;
|
|
401
|
+
/**
|
|
402
|
+
* TThe event that is fired when the user clicks 'user profile'
|
|
403
|
+
on the profile sub menu
|
|
404
|
+
*/
|
|
405
|
+
userProfileClicked: EventEmitter<CustomEvent<void>>;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
@ProxyCmp({
|
|
410
|
+
inputs: ['menuTitle']
|
|
411
|
+
})
|
|
412
|
+
@Component({
|
|
413
|
+
selector: 'admiralty-header-sub-menu-item',
|
|
414
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
415
|
+
template: '<ng-content></ng-content>',
|
|
416
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
417
|
+
inputs: ['menuTitle'],
|
|
418
|
+
})
|
|
419
|
+
export class AdmiraltyHeaderSubMenuItem {
|
|
420
|
+
protected el: HTMLElement;
|
|
421
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
422
|
+
c.detach();
|
|
423
|
+
this.el = r.nativeElement;
|
|
424
|
+
proxyOutputs(this, this.el, ['subMenuItemClick']);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
export declare interface AdmiraltyHeaderSubMenuItem extends Components.AdmiraltyHeaderSubMenuItem {
|
|
430
|
+
/**
|
|
431
|
+
* The event that is fired when a user clicks on the menu
|
|
432
|
+
*/
|
|
433
|
+
subMenuItemClick: EventEmitter<CustomEvent<void>>;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
@ProxyCmp({
|
|
438
|
+
inputs: ['disabled']
|
|
439
|
+
})
|
|
440
|
+
@Component({
|
|
441
|
+
selector: 'admiralty-hint',
|
|
442
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
443
|
+
template: '<ng-content></ng-content>',
|
|
444
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
445
|
+
inputs: ['disabled'],
|
|
446
|
+
})
|
|
447
|
+
export class AdmiraltyHint {
|
|
448
|
+
protected el: HTMLElement;
|
|
449
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
450
|
+
c.detach();
|
|
451
|
+
this.el = r.nativeElement;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
export declare interface AdmiraltyHint extends Components.AdmiraltyHint {}
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
@ProxyCmp({
|
|
460
|
+
})
|
|
461
|
+
@Component({
|
|
462
|
+
selector: 'admiralty-hr',
|
|
463
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
464
|
+
template: '<ng-content></ng-content>',
|
|
465
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
466
|
+
inputs: [],
|
|
467
|
+
})
|
|
468
|
+
export class AdmiraltyHr {
|
|
469
|
+
protected el: HTMLElement;
|
|
470
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
471
|
+
c.detach();
|
|
472
|
+
this.el = r.nativeElement;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
export declare interface AdmiraltyHr extends Components.AdmiraltyHr {}
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
@ProxyCmp({
|
|
481
|
+
inputs: ['iconName', 'iconPrefix']
|
|
482
|
+
})
|
|
483
|
+
@Component({
|
|
484
|
+
selector: 'admiralty-icon',
|
|
485
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
486
|
+
template: '<ng-content></ng-content>',
|
|
487
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
488
|
+
inputs: ['iconName', 'iconPrefix'],
|
|
489
|
+
})
|
|
490
|
+
export class AdmiraltyIcon {
|
|
491
|
+
protected el: HTMLElement;
|
|
492
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
493
|
+
c.detach();
|
|
494
|
+
this.el = r.nativeElement;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
export declare interface AdmiraltyIcon extends Components.AdmiraltyIcon {}
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
@ProxyCmp({
|
|
503
|
+
inputs: ['autocomplete', 'disabled', 'hint', 'invalid', 'invalidMessage', 'label', 'name', 'placeholder', 'required', 'type', 'value', 'width']
|
|
504
|
+
})
|
|
505
|
+
@Component({
|
|
506
|
+
selector: 'admiralty-input',
|
|
507
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
508
|
+
template: '<ng-content></ng-content>',
|
|
509
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
510
|
+
inputs: ['autocomplete', 'disabled', 'hint', 'invalid', 'invalidMessage', 'label', 'name', 'placeholder', 'required', 'type', 'value', 'width'],
|
|
511
|
+
})
|
|
512
|
+
export class AdmiraltyInput {
|
|
513
|
+
protected el: HTMLElement;
|
|
514
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
515
|
+
c.detach();
|
|
516
|
+
this.el = r.nativeElement;
|
|
517
|
+
proxyOutputs(this, this.el, ['admiraltyChange']);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
import type { InputChangeEventDetail as IAdmiraltyInputInputChangeEventDetail } from '@ukho/admiralty-core';
|
|
523
|
+
|
|
524
|
+
export declare interface AdmiraltyInput extends Components.AdmiraltyInput {
|
|
525
|
+
/**
|
|
526
|
+
* Emitted when the value has changed.
|
|
527
|
+
*/
|
|
528
|
+
admiraltyChange: EventEmitter<CustomEvent<IAdmiraltyInputInputChangeEventDetail>>;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
@ProxyCmp({
|
|
533
|
+
})
|
|
534
|
+
@Component({
|
|
535
|
+
selector: 'admiralty-input-error',
|
|
536
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
537
|
+
template: '<ng-content></ng-content>',
|
|
538
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
539
|
+
inputs: [],
|
|
540
|
+
})
|
|
541
|
+
export class AdmiraltyInputError {
|
|
542
|
+
protected el: HTMLElement;
|
|
543
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
544
|
+
c.detach();
|
|
545
|
+
this.el = r.nativeElement;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
export declare interface AdmiraltyInputError extends Components.AdmiraltyInputError {}
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
@ProxyCmp({
|
|
554
|
+
inputs: ['disabled', 'for']
|
|
555
|
+
})
|
|
556
|
+
@Component({
|
|
557
|
+
selector: 'admiralty-label',
|
|
558
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
559
|
+
template: '<ng-content></ng-content>',
|
|
560
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
561
|
+
inputs: ['disabled', 'for'],
|
|
562
|
+
})
|
|
563
|
+
export class AdmiraltyLabel {
|
|
564
|
+
protected el: HTMLElement;
|
|
565
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
566
|
+
c.detach();
|
|
567
|
+
this.el = r.nativeElement;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
export declare interface AdmiraltyLabel extends Components.AdmiraltyLabel {}
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
@ProxyCmp({
|
|
576
|
+
inputs: ['href', 'newTab']
|
|
577
|
+
})
|
|
578
|
+
@Component({
|
|
579
|
+
selector: 'admiralty-link',
|
|
580
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
581
|
+
template: '<ng-content></ng-content>',
|
|
582
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
583
|
+
inputs: ['href', 'newTab'],
|
|
584
|
+
})
|
|
585
|
+
export class AdmiraltyLink {
|
|
586
|
+
protected el: HTMLElement;
|
|
587
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
588
|
+
c.detach();
|
|
589
|
+
this.el = r.nativeElement;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
export declare interface AdmiraltyLink extends Components.AdmiraltyLink {}
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
@ProxyCmp({
|
|
598
|
+
inputs: ['currentPage', 'label', 'pages']
|
|
599
|
+
})
|
|
600
|
+
@Component({
|
|
601
|
+
selector: 'admiralty-paginator',
|
|
602
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
603
|
+
template: '<ng-content></ng-content>',
|
|
604
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
605
|
+
inputs: ['currentPage', 'label', 'pages'],
|
|
606
|
+
})
|
|
607
|
+
export class AdmiraltyPaginator {
|
|
608
|
+
protected el: HTMLElement;
|
|
609
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
610
|
+
c.detach();
|
|
611
|
+
this.el = r.nativeElement;
|
|
612
|
+
proxyOutputs(this, this.el, ['pageChange']);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
export declare interface AdmiraltyPaginator extends Components.AdmiraltyPaginator {
|
|
618
|
+
/**
|
|
619
|
+
* Dispatched when the previous or next button is pressed. The event detail contains
|
|
620
|
+
the requested page number.
|
|
621
|
+
*/
|
|
622
|
+
pageChange: EventEmitter<CustomEvent<number>>;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
@ProxyCmp({
|
|
627
|
+
inputs: ['link', 'phase']
|
|
628
|
+
})
|
|
629
|
+
@Component({
|
|
630
|
+
selector: 'admiralty-phase-banner',
|
|
631
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
632
|
+
template: '<ng-content></ng-content>',
|
|
633
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
634
|
+
inputs: ['link', 'phase'],
|
|
635
|
+
})
|
|
636
|
+
export class AdmiraltyPhaseBanner {
|
|
637
|
+
protected el: HTMLElement;
|
|
638
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
639
|
+
c.detach();
|
|
640
|
+
this.el = r.nativeElement;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
export declare interface AdmiraltyPhaseBanner extends Components.AdmiraltyPhaseBanner {}
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
@ProxyCmp({
|
|
649
|
+
inputs: ['error', 'label', 'progression']
|
|
650
|
+
})
|
|
651
|
+
@Component({
|
|
652
|
+
selector: 'admiralty-progress-bar',
|
|
653
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
654
|
+
template: '<ng-content></ng-content>',
|
|
655
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
656
|
+
inputs: ['error', 'label', 'progression'],
|
|
657
|
+
})
|
|
658
|
+
export class AdmiraltyProgressBar {
|
|
659
|
+
protected el: HTMLElement;
|
|
660
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
661
|
+
c.detach();
|
|
662
|
+
this.el = r.nativeElement;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
export declare interface AdmiraltyProgressBar extends Components.AdmiraltyProgressBar {}
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
@ProxyCmp({
|
|
671
|
+
inputs: ['checked', 'disabled', 'name', 'value']
|
|
672
|
+
})
|
|
673
|
+
@Component({
|
|
674
|
+
selector: 'admiralty-radio',
|
|
675
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
676
|
+
template: '<ng-content></ng-content>',
|
|
677
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
678
|
+
inputs: ['checked', 'disabled', 'name', 'value'],
|
|
679
|
+
})
|
|
680
|
+
export class AdmiraltyRadio {
|
|
681
|
+
protected el: HTMLElement;
|
|
682
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
683
|
+
c.detach();
|
|
684
|
+
this.el = r.nativeElement;
|
|
685
|
+
proxyOutputs(this, this.el, ['admiraltyFocus', 'admiraltyBlur']);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
export declare interface AdmiraltyRadio extends Components.AdmiraltyRadio {
|
|
691
|
+
/**
|
|
692
|
+
* Emitted when the radio button gains focus.
|
|
693
|
+
*/
|
|
694
|
+
admiraltyFocus: EventEmitter<CustomEvent<void>>;
|
|
695
|
+
/**
|
|
696
|
+
* Emitted when the radio button loses focus.
|
|
697
|
+
*/
|
|
698
|
+
admiraltyBlur: EventEmitter<CustomEvent<void>>;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
@ProxyCmp({
|
|
703
|
+
inputs: ['displayVertical', 'name', 'value']
|
|
704
|
+
})
|
|
705
|
+
@Component({
|
|
706
|
+
selector: 'admiralty-radio-group',
|
|
707
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
708
|
+
template: '<ng-content></ng-content>',
|
|
709
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
710
|
+
inputs: ['displayVertical', 'name', 'value'],
|
|
711
|
+
})
|
|
712
|
+
export class AdmiraltyRadioGroup {
|
|
713
|
+
protected el: HTMLElement;
|
|
714
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
715
|
+
c.detach();
|
|
716
|
+
this.el = r.nativeElement;
|
|
717
|
+
proxyOutputs(this, this.el, ['radioChange']);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
export declare interface AdmiraltyRadioGroup extends Components.AdmiraltyRadioGroup {
|
|
723
|
+
/**
|
|
724
|
+
* Event fired when the checked radio button changes
|
|
725
|
+
*/
|
|
726
|
+
radioChange: EventEmitter<CustomEvent<any>>;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
@ProxyCmp({
|
|
731
|
+
inputs: ['disabled', 'error', 'errorHint', 'hint', 'label', 'width']
|
|
732
|
+
})
|
|
733
|
+
@Component({
|
|
734
|
+
selector: 'admiralty-select',
|
|
735
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
736
|
+
template: '<ng-content></ng-content>',
|
|
737
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
738
|
+
inputs: ['disabled', 'error', 'errorHint', 'hint', 'label', 'width'],
|
|
739
|
+
})
|
|
740
|
+
export class AdmiraltySelect {
|
|
741
|
+
protected el: HTMLElement;
|
|
742
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
743
|
+
c.detach();
|
|
744
|
+
this.el = r.nativeElement;
|
|
745
|
+
proxyOutputs(this, this.el, ['admiraltyChange', 'admiraltyBlur']);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
export declare interface AdmiraltySelect extends Components.AdmiraltySelect {
|
|
751
|
+
/**
|
|
752
|
+
* Emitted when the value has changed.
|
|
753
|
+
*/
|
|
754
|
+
admiraltyChange: EventEmitter<CustomEvent<EventTarget>>;
|
|
755
|
+
/**
|
|
756
|
+
* Emitted when the component loses focus.
|
|
757
|
+
*/
|
|
758
|
+
admiraltyBlur: EventEmitter<CustomEvent<void>>;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
@ProxyCmp({
|
|
763
|
+
inputs: ['label']
|
|
764
|
+
})
|
|
765
|
+
@Component({
|
|
766
|
+
selector: 'admiralty-side-nav',
|
|
767
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
768
|
+
template: '<ng-content></ng-content>',
|
|
769
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
770
|
+
inputs: ['label'],
|
|
771
|
+
})
|
|
772
|
+
export class AdmiraltySideNav {
|
|
773
|
+
protected el: HTMLElement;
|
|
774
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
775
|
+
c.detach();
|
|
776
|
+
this.el = r.nativeElement;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
export declare interface AdmiraltySideNav extends Components.AdmiraltySideNav {}
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
@ProxyCmp({
|
|
785
|
+
inputs: ['headingTitle', 'navActive', 'sideNavItemId']
|
|
786
|
+
})
|
|
787
|
+
@Component({
|
|
788
|
+
selector: 'admiralty-side-nav-item',
|
|
789
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
790
|
+
template: '<ng-content></ng-content>',
|
|
791
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
792
|
+
inputs: ['headingTitle', 'navActive', 'sideNavItemId'],
|
|
793
|
+
})
|
|
794
|
+
export class AdmiraltySideNavItem {
|
|
795
|
+
protected el: HTMLElement;
|
|
796
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
797
|
+
c.detach();
|
|
798
|
+
this.el = r.nativeElement;
|
|
799
|
+
proxyOutputs(this, this.el, ['sideNavItemSelected']);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
export declare interface AdmiraltySideNavItem extends Components.AdmiraltySideNavItem {
|
|
805
|
+
/**
|
|
806
|
+
* An event emitted when this Side Nav item is selected containing the sideNavItemId
|
|
807
|
+
*/
|
|
808
|
+
sideNavItemSelected: EventEmitter<CustomEvent<string>>;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
@ProxyCmp({
|
|
813
|
+
inputs: ['caption']
|
|
814
|
+
})
|
|
815
|
+
@Component({
|
|
816
|
+
selector: 'admiralty-table',
|
|
817
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
818
|
+
template: '<ng-content></ng-content>',
|
|
819
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
820
|
+
inputs: ['caption'],
|
|
821
|
+
})
|
|
822
|
+
export class AdmiraltyTable {
|
|
823
|
+
protected el: HTMLElement;
|
|
824
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
825
|
+
c.detach();
|
|
826
|
+
this.el = r.nativeElement;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
export declare interface AdmiraltyTable extends Components.AdmiraltyTable {}
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
@ProxyCmp({
|
|
835
|
+
})
|
|
836
|
+
@Component({
|
|
837
|
+
selector: 'admiralty-table-body',
|
|
838
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
839
|
+
template: '<ng-content></ng-content>',
|
|
840
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
841
|
+
inputs: [],
|
|
842
|
+
})
|
|
843
|
+
export class AdmiraltyTableBody {
|
|
844
|
+
protected el: HTMLElement;
|
|
845
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
846
|
+
c.detach();
|
|
847
|
+
this.el = r.nativeElement;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
export declare interface AdmiraltyTableBody extends Components.AdmiraltyTableBody {}
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
@ProxyCmp({
|
|
856
|
+
})
|
|
857
|
+
@Component({
|
|
858
|
+
selector: 'admiralty-table-cell',
|
|
859
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
860
|
+
template: '<ng-content></ng-content>',
|
|
861
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
862
|
+
inputs: [],
|
|
863
|
+
})
|
|
864
|
+
export class AdmiraltyTableCell {
|
|
865
|
+
protected el: HTMLElement;
|
|
866
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
867
|
+
c.detach();
|
|
868
|
+
this.el = r.nativeElement;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
export declare interface AdmiraltyTableCell extends Components.AdmiraltyTableCell {}
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
@ProxyCmp({
|
|
877
|
+
})
|
|
878
|
+
@Component({
|
|
879
|
+
selector: 'admiralty-table-header',
|
|
880
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
881
|
+
template: '<ng-content></ng-content>',
|
|
882
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
883
|
+
inputs: [],
|
|
884
|
+
})
|
|
885
|
+
export class AdmiraltyTableHeader {
|
|
886
|
+
protected el: HTMLElement;
|
|
887
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
888
|
+
c.detach();
|
|
889
|
+
this.el = r.nativeElement;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
export declare interface AdmiraltyTableHeader extends Components.AdmiraltyTableHeader {}
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
@ProxyCmp({
|
|
898
|
+
})
|
|
899
|
+
@Component({
|
|
900
|
+
selector: 'admiralty-table-header-cell',
|
|
901
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
902
|
+
template: '<ng-content></ng-content>',
|
|
903
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
904
|
+
inputs: [],
|
|
905
|
+
})
|
|
906
|
+
export class AdmiraltyTableHeaderCell {
|
|
907
|
+
protected el: HTMLElement;
|
|
908
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
909
|
+
c.detach();
|
|
910
|
+
this.el = r.nativeElement;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
export declare interface AdmiraltyTableHeaderCell extends Components.AdmiraltyTableHeaderCell {}
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
@ProxyCmp({
|
|
919
|
+
})
|
|
920
|
+
@Component({
|
|
921
|
+
selector: 'admiralty-table-row',
|
|
922
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
923
|
+
template: '<ng-content></ng-content>',
|
|
924
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
925
|
+
inputs: [],
|
|
926
|
+
})
|
|
927
|
+
export class AdmiraltyTableRow {
|
|
928
|
+
protected el: HTMLElement;
|
|
929
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
930
|
+
c.detach();
|
|
931
|
+
this.el = r.nativeElement;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
export declare interface AdmiraltyTableRow extends Components.AdmiraltyTableRow {}
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
@ProxyCmp({
|
|
940
|
+
inputs: ['disabled', 'hint', 'invalid', 'invalidMessage', 'label', 'text', 'width']
|
|
941
|
+
})
|
|
942
|
+
@Component({
|
|
943
|
+
selector: 'admiralty-textarea',
|
|
944
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
945
|
+
template: '<ng-content></ng-content>',
|
|
946
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
947
|
+
inputs: ['disabled', 'hint', 'invalid', 'invalidMessage', 'label', 'text', 'width'],
|
|
948
|
+
})
|
|
949
|
+
export class AdmiraltyTextarea {
|
|
950
|
+
protected el: HTMLElement;
|
|
951
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
952
|
+
c.detach();
|
|
953
|
+
this.el = r.nativeElement;
|
|
954
|
+
proxyOutputs(this, this.el, ['textareaBlur', 'textareaChanged']);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
export declare interface AdmiraltyTextarea extends Components.AdmiraltyTextarea {
|
|
960
|
+
/**
|
|
961
|
+
* Event is fired when the form control loses focus @event textareaBlur
|
|
962
|
+
*/
|
|
963
|
+
textareaBlur: EventEmitter<CustomEvent<any>>;
|
|
964
|
+
/**
|
|
965
|
+
* Event is fired when the form control changes @event textareaChanged
|
|
966
|
+
*/
|
|
967
|
+
textareaChanged: EventEmitter<CustomEvent<string>>;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
@ProxyCmp({
|
|
972
|
+
inputs: ['label', 'placeholder', 'resultsOnInitFocus', 'value']
|
|
973
|
+
})
|
|
974
|
+
@Component({
|
|
975
|
+
selector: 'admiralty-type-ahead',
|
|
976
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
977
|
+
template: '<ng-content></ng-content>',
|
|
978
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
979
|
+
inputs: ['label', 'placeholder', 'resultsOnInitFocus', 'value'],
|
|
980
|
+
})
|
|
981
|
+
export class AdmiraltyTypeAhead {
|
|
982
|
+
protected el: HTMLElement;
|
|
983
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
984
|
+
c.detach();
|
|
985
|
+
this.el = r.nativeElement;
|
|
986
|
+
proxyOutputs(this, this.el, ['selectionChanged', 'valueChanged']);
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
export declare interface AdmiraltyTypeAhead extends Components.AdmiraltyTypeAhead {
|
|
992
|
+
/**
|
|
993
|
+
* Optional function that will be executed when the user selects an item from the typeahead
|
|
994
|
+
*/
|
|
995
|
+
selectionChanged: EventEmitter<CustomEvent<string>>;
|
|
996
|
+
/**
|
|
997
|
+
* Event that is fired whenever the value of the typeahead changes
|
|
998
|
+
e.g. selection from the dropdown or manually typed entry
|
|
999
|
+
*/
|
|
1000
|
+
valueChanged: EventEmitter<CustomEvent<string>>;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
@ProxyCmp({
|
|
1005
|
+
inputs: ['value']
|
|
1006
|
+
})
|
|
1007
|
+
@Component({
|
|
1008
|
+
selector: 'admiralty-type-ahead-item',
|
|
1009
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1010
|
+
template: '<ng-content></ng-content>',
|
|
1011
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1012
|
+
inputs: ['value'],
|
|
1013
|
+
})
|
|
1014
|
+
export class AdmiraltyTypeAheadItem {
|
|
1015
|
+
protected el: HTMLElement;
|
|
1016
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
|
1017
|
+
c.detach();
|
|
1018
|
+
this.el = r.nativeElement;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
export declare interface AdmiraltyTypeAheadItem extends Components.AdmiraltyTypeAheadItem {}
|
|
1024
|
+
|
|
1025
|
+
|