@inera/ids-angular 1.5.3 → 1.8.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.
Files changed (27) hide show
  1. package/bundles/inera-ids-angular.umd.js +1149 -961
  2. package/bundles/inera-ids-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/breadcrumbs/breadcrumbs.component.js +33 -0
  4. package/esm2015/lib/components/breadcrumbs/breadcrumbs.module.js +32 -0
  5. package/esm2015/lib/components/button/button.component.js +7 -6
  6. package/esm2015/lib/components/card/card.component.js +20 -0
  7. package/esm2015/lib/components/card/card.module.js +22 -0
  8. package/esm2015/lib/components/dialog/actions/dialog-actions.component.js +16 -0
  9. package/esm2015/lib/components/dialog/dialog.component.js +35 -0
  10. package/esm2015/lib/components/dialog/dialog.module.js +27 -0
  11. package/esm2015/lib/components/form/checkbox/checkbox.component.js +9 -5
  12. package/esm2015/lib/components/form/input/input.component.js +9 -4
  13. package/esm2015/public-api.js +11 -1
  14. package/fesm2015/inera-ids-angular.js +368 -195
  15. package/fesm2015/inera-ids-angular.js.map +1 -1
  16. package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +12 -0
  17. package/lib/components/breadcrumbs/breadcrumbs.module.d.ts +10 -0
  18. package/lib/components/button/button.component.d.ts +2 -1
  19. package/lib/components/card/card.component.d.ts +7 -0
  20. package/lib/components/card/card.module.d.ts +8 -0
  21. package/lib/components/dialog/actions/dialog-actions.component.d.ts +6 -0
  22. package/lib/components/dialog/dialog.component.d.ts +12 -0
  23. package/lib/components/dialog/dialog.module.d.ts +9 -0
  24. package/lib/components/form/checkbox/checkbox.component.d.ts +2 -1
  25. package/lib/components/form/input/input.component.d.ts +2 -1
  26. package/package.json +2 -2
  27. package/public-api.d.ts +7 -0
@@ -6,7 +6,13 @@ import '@inera/ids-core/components/alert/register';
6
6
  import '@inera/ids-core/components/alert-global/register';
7
7
  import '@inera/ids-core/components/button/register';
8
8
  import '@inera/ids-core/components/button-group/register';
9
+ import * as i1 from '@angular/platform-browser';
10
+ import * as i3 from '@angular/router';
11
+ import { RouterModule } from '@angular/router';
12
+ import '@inera/ids-core/components/breadcrumbs/register';
13
+ import '@inera/ids-core/components/card/register';
9
14
  import '@inera/ids-core/components/date-label/register';
15
+ import '@inera/ids-core/components/dialog/register';
10
16
  import '@inera/ids-core/components/icon/register';
11
17
  import '@inera/ids-core/components/form/input/register';
12
18
  import '@inera/ids-core/components/form/checkbox/register';
@@ -22,9 +28,6 @@ import '@inera/ids-core/components/form/textarea/register';
22
28
  import '@inera/ids-core/components/grid/row/register';
23
29
  import '@inera/ids-core/components/grid/column/register';
24
30
  import '@inera/ids-core/components/grid/container/register';
25
- import * as i1 from '@angular/platform-browser';
26
- import * as i3 from '@angular/router';
27
- import { RouterModule } from '@angular/router';
28
31
  import '@inera/ids-core/components/link/register';
29
32
  import '@inera/ids-core/components/list/register';
30
33
  import '@inera/ids-core/components/notification/badge/register';
@@ -141,6 +144,7 @@ class IDButtonComponent {
141
144
  constructor() {
142
145
  this.secondary = false;
143
146
  this.toggle = false;
147
+ this.responsive = false;
144
148
  this.active = false;
145
149
  this.submit = false;
146
150
  this.search = false;
@@ -149,26 +153,26 @@ class IDButtonComponent {
149
153
  }
150
154
  }
151
155
  IDButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
152
- IDButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDButtonComponent, selector: "id-button", inputs: { secondary: "secondary", toggle: "toggle", active: "active", submit: "submit", search: "search", disabled: "disabled", type: "type" }, host: { properties: { "class.ids-btn-search": "this.search" } }, ngImport: i0, template: "<ids-button \n [secondary]=\"secondary\"\n [toggle]=\"toggle\"\n [toggle]=\"toggle\"\n [active]=\"toggle\"\n [submit]=\"submit\"\n [search]=\"search\"\n [disabled]=\"disabled\"\n [type]=\"type\">\n <ng-content></ng-content>\n</ids-button>", encapsulation: i0.ViewEncapsulation.None });
156
+ IDButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDButtonComponent, selector: "id-button", inputs: { secondary: "secondary", toggle: "toggle", responsive: "responsive", active: "active", submit: "submit", search: "search", disabled: "disabled", type: "type" }, ngImport: i0, template: "<ids-button \n [secondary]=\"secondary\"\n [toggle]=\"toggle\"\n [toggle]=\"toggle\"\n [active]=\"toggle\"\n [submit]=\"submit\"\n [search]=\"search\"\n [disabled]=\"disabled\"\n [responsive]=\"responsive\"\n [type]=\"type\">\n <ng-content></ng-content>\n</ids-button>", styles: ["id-button[ng-reflect-responsive=true] { display: contents; }"], encapsulation: i0.ViewEncapsulation.None });
153
157
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDButtonComponent, decorators: [{
154
158
  type: Component,
155
159
  args: [{
156
160
  selector: 'id-button',
157
161
  templateUrl: './button.component.html',
162
+ styles: ['id-button[ng-reflect-responsive=true] { display: contents; }'],
158
163
  encapsulation: ViewEncapsulation.None,
159
164
  }]
160
165
  }], ctorParameters: function () { return []; }, propDecorators: { secondary: [{
161
166
  type: Input
162
167
  }], toggle: [{
163
168
  type: Input
169
+ }], responsive: [{
170
+ type: Input
164
171
  }], active: [{
165
172
  type: Input
166
173
  }], submit: [{
167
174
  type: Input
168
175
  }], search: [{
169
- type: HostBinding,
170
- args: ['class.ids-btn-search']
171
- }, {
172
176
  type: Input
173
177
  }], disabled: [{
174
178
  type: Input
@@ -230,6 +234,279 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
230
234
  }]
231
235
  }] });
232
236
 
237
+ class IDLink {
238
+ constructor(_label, _id, _classes) {
239
+ this._label = _label;
240
+ this._id = _id;
241
+ this._classes = _classes;
242
+ }
243
+ get label() {
244
+ return this._label;
245
+ }
246
+ get id() {
247
+ return this._id;
248
+ }
249
+ get classes() {
250
+ return this._classes;
251
+ }
252
+ set label(label) {
253
+ this._label = label;
254
+ }
255
+ set id(id) {
256
+ this._id = id;
257
+ }
258
+ set classes(classes) {
259
+ this._classes = classes;
260
+ }
261
+ }
262
+
263
+ class IDLinkFunction extends IDLink {
264
+ constructor(_label, _action, _id, _classes) {
265
+ super(_label, _id, _classes);
266
+ this._action = _action;
267
+ }
268
+ get action() {
269
+ return this._action;
270
+ }
271
+ set action(action) {
272
+ this._action = action;
273
+ }
274
+ click() {
275
+ this._action();
276
+ }
277
+ }
278
+
279
+ class IDLinkRoute extends IDLink {
280
+ constructor(_label, _route, _queries = {}, router, _id, _classes) {
281
+ super(_label, _id, _classes);
282
+ this._route = _route;
283
+ this._queries = _queries;
284
+ this.router = router;
285
+ }
286
+ get route() {
287
+ return this._route;
288
+ }
289
+ set route(route) {
290
+ this._route = route;
291
+ }
292
+ get queries() {
293
+ return this._queries;
294
+ }
295
+ set queries(_queries) {
296
+ this._queries = _queries;
297
+ }
298
+ click() {
299
+ if (this.router) {
300
+ this.router.navigate([this.route]);
301
+ }
302
+ else {
303
+ console.error('No router supplied in IcLinkRoute Object');
304
+ }
305
+ }
306
+ }
307
+
308
+ class IDLinkWeb extends IDLink {
309
+ constructor(_label, _url, _target, _id, _classes) {
310
+ super(_label, _id, _classes);
311
+ this._url = _url;
312
+ this._target = _target;
313
+ }
314
+ get target() {
315
+ return this._target;
316
+ }
317
+ set target(target) {
318
+ this._target = target;
319
+ }
320
+ get url() {
321
+ return this._url;
322
+ }
323
+ set url(url) {
324
+ this._url = url;
325
+ }
326
+ click() {
327
+ window.open(this._url, this.target);
328
+ }
329
+ }
330
+
331
+ class IDAnchorComponent {
332
+ constructor(sanitizer) {
333
+ this.sanitizer = sanitizer;
334
+ this.linkType = '';
335
+ this.isLinkExternal = false;
336
+ this.isLinkRoute = false;
337
+ this.isLinkWeb = false;
338
+ this.isLinkFunction = false;
339
+ this.classes = '';
340
+ this.scriptHref = this.sanitizer.bypassSecurityTrustUrl('javascript:');
341
+ /** Apply classes to <a> element */
342
+ this.contextClasses = [];
343
+ }
344
+ setLinkType() {
345
+ this.isLinkRoute = this.link instanceof IDLinkRoute;
346
+ this.isLinkWeb = this.link instanceof IDLinkWeb;
347
+ this.isLinkFunction = this.link instanceof IDLinkFunction;
348
+ if (this.link && this.isLinkWeb) {
349
+ const weblink = this.link;
350
+ this.isLinkExternal = weblink.target === '_blank' || weblink.target === 'blank';
351
+ }
352
+ else {
353
+ this.isLinkExternal = false;
354
+ }
355
+ }
356
+ setClasses() {
357
+ if (this.link && this.link.classes) {
358
+ this.classes = [...this.contextClasses, ...this.link.classes].join(' ');
359
+ }
360
+ else {
361
+ this.classes = this.contextClasses.join(' ');
362
+ }
363
+ }
364
+ get linkWeb() {
365
+ return this.link;
366
+ }
367
+ get linkRoute() {
368
+ return this.link;
369
+ }
370
+ get linkFunction() {
371
+ return this.link;
372
+ }
373
+ ngOnChanges(changes) {
374
+ if (changes.link) {
375
+ this.setLinkType();
376
+ this.setClasses();
377
+ }
378
+ if (changes.contextClasses) {
379
+ this.setClasses();
380
+ }
381
+ }
382
+ }
383
+ IDAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
384
+ IDAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDAnchorComponent, selector: "id-anchor", inputs: { link: "link", contextClasses: "contextClasses" }, usesOnChanges: true, ngImport: i0, template: "<a *ngIf=\"isLinkRoute\" \n [attr.id]=\"linkRoute.id\"\n [class]=\"classes\" \n [routerLink]=\"linkRoute.route\"\n routerLinkActive=\"selected\"\n [queryParams]=\"linkRoute.queries\">\n {{linkRoute.label}}\n</a>\n<a *ngIf=\"isLinkWeb\" \n [attr.id]=\"linkWeb.id\"\n [class]=\"classes\" \n [href]=\"linkWeb.url\"\n [class.ic-link--external]=\"isLinkExternal\"\n [attr.target]=\"linkWeb.target\"\n [attr.rel]=\"isLinkExternal ? 'noopener' : null\">\n {{linkWeb.label}}\n</a>\n<a *ngIf=\"isLinkFunction\" \n [attr.id]=\"linkFunction.id\"\n [class]=\"classes\" \n [attr.href]=\"scriptHref\"\n (click)=\"linkFunction.action()\">\n {{linkFunction.label}}\n</a>", styles: ["a { color: inherit; text-decoration: inherit; font-size: inherit }"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }] });
385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorComponent, decorators: [{
386
+ type: Component,
387
+ args: [{
388
+ selector: 'id-anchor',
389
+ templateUrl: './anchor.component.html',
390
+ styles: ['a { color: inherit; text-decoration: inherit; font-size: inherit }',]
391
+ }]
392
+ }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; }, propDecorators: { link: [{
393
+ type: Input
394
+ }], contextClasses: [{
395
+ type: Input
396
+ }] } });
397
+
398
+ class IDBreadcrumbsComponent {
399
+ constructor() {
400
+ this.links = [];
401
+ this.current = '';
402
+ this.lead = '';
403
+ this.srlabel = '';
404
+ }
405
+ }
406
+ IDBreadcrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
407
+ IDBreadcrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDBreadcrumbsComponent, selector: "id-breadcrumbs", inputs: { links: "links", mobileLink: "mobileLink", current: "current", lead: "lead", srlabel: "srlabel" }, ngImport: i0, template: "<ids-breadcrumbs\r\n [current]=\"current\"\r\n [lead]=\"lead\"\r\n [srlabel]=\"srlabel\">\r\n <ids-crumb *ngFor=\"let link of links\">\r\n <id-anchor [link]=\"link\"></id-anchor>\r\n </ids-crumb>\r\n <ids-crumb mobile=\"true\" *ngIf=\"mobileLink\">\r\n <id-anchor [link]=\"mobileLink\"></id-anchor>\r\n </ids-crumb>\r\n</ids-breadcrumbs>", components: [{ type: IDAnchorComponent, selector: "id-anchor", inputs: ["link", "contextClasses"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
408
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsComponent, decorators: [{
409
+ type: Component,
410
+ args: [{
411
+ selector: 'id-breadcrumbs',
412
+ templateUrl: './breadcrumbs.component.html',
413
+ encapsulation: ViewEncapsulation.None,
414
+ }]
415
+ }], ctorParameters: function () { return []; }, propDecorators: { links: [{
416
+ type: Input
417
+ }], mobileLink: [{
418
+ type: Input
419
+ }], current: [{
420
+ type: Input
421
+ }], lead: [{
422
+ type: Input
423
+ }], srlabel: [{
424
+ type: Input
425
+ }] } });
426
+
427
+ class IDAnchorModule {
428
+ }
429
+ IDAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
430
+ IDAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, declarations: [IDAnchorComponent], imports: [CommonModule,
431
+ RouterModule], exports: [IDAnchorComponent] });
432
+ IDAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, imports: [[
433
+ CommonModule,
434
+ RouterModule,
435
+ ]] });
436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, decorators: [{
437
+ type: NgModule,
438
+ args: [{
439
+ declarations: [IDAnchorComponent],
440
+ imports: [
441
+ CommonModule,
442
+ RouterModule,
443
+ ],
444
+ exports: [IDAnchorComponent]
445
+ }]
446
+ }] });
447
+
448
+ class IDBreadcrumbsModule {
449
+ }
450
+ IDBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
451
+ IDBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, declarations: [IDBreadcrumbsComponent], imports: [CommonModule,
452
+ IDAnchorModule], exports: [IDBreadcrumbsComponent] });
453
+ IDBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, imports: [[
454
+ CommonModule,
455
+ IDAnchorModule
456
+ ]] });
457
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, decorators: [{
458
+ type: NgModule,
459
+ args: [{
460
+ declarations: [
461
+ IDBreadcrumbsComponent
462
+ ],
463
+ exports: [
464
+ IDBreadcrumbsComponent
465
+ ],
466
+ imports: [
467
+ CommonModule,
468
+ IDAnchorModule
469
+ ],
470
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
471
+ }]
472
+ }] });
473
+
474
+ class IDCardComponent {
475
+ constructor() {
476
+ this.fill = false;
477
+ }
478
+ }
479
+ IDCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
480
+ IDCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDCardComponent, selector: "id-card", inputs: { fill: "fill" }, ngImport: i0, template: "<ids-card \n [fill]=\"fill\">\n <ng-content></ng-content>\n</ids-card>", encapsulation: i0.ViewEncapsulation.None });
481
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDCardComponent, decorators: [{
482
+ type: Component,
483
+ args: [{
484
+ selector: 'id-card',
485
+ templateUrl: './card.component.html',
486
+ encapsulation: ViewEncapsulation.None,
487
+ }]
488
+ }], ctorParameters: function () { return []; }, propDecorators: { fill: [{
489
+ type: Input
490
+ }] } });
491
+
492
+ class IDCardModule {
493
+ }
494
+ IDCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
495
+ IDCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDCardModule, declarations: [IDCardComponent], exports: [IDCardComponent] });
496
+ IDCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDCardModule });
497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDCardModule, decorators: [{
498
+ type: NgModule,
499
+ args: [{
500
+ declarations: [
501
+ IDCardComponent
502
+ ],
503
+ exports: [
504
+ IDCardComponent
505
+ ],
506
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
507
+ }]
508
+ }] });
509
+
233
510
  class IDDateLabelComponent {
234
511
  constructor() {
235
512
  this.date = null;
@@ -278,6 +555,75 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
278
555
  }]
279
556
  }] });
280
557
 
558
+ class IDDialogComponent {
559
+ constructor() {
560
+ this.dismissible = false;
561
+ this.headline = '';
562
+ this.overlay = false;
563
+ this.persistent = false;
564
+ this.show = false;
565
+ this.width = '';
566
+ }
567
+ }
568
+ IDDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
569
+ IDDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDDialogComponent, selector: "id-dialog", inputs: { dismissible: "dismissible", headline: "headline", overlay: "overlay", persistent: "persistent", show: "show", width: "width" }, ngImport: i0, template: "<ids-dialog \n [dismissible]=\"dismissible\"\n [headline]=\"headline\"\n [overlay]=\"overlay\"\n [persistent]=\"persistent\"\n [show]=\"show\"\n [width]=\"width\">\n <ng-content></ng-content>\n</ids-dialog>", encapsulation: i0.ViewEncapsulation.None });
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDDialogComponent, decorators: [{
571
+ type: Component,
572
+ args: [{
573
+ selector: 'id-dialog',
574
+ templateUrl: './dialog.component.html',
575
+ encapsulation: ViewEncapsulation.None,
576
+ }]
577
+ }], ctorParameters: function () { return []; }, propDecorators: { dismissible: [{
578
+ type: Input
579
+ }], headline: [{
580
+ type: Input
581
+ }], overlay: [{
582
+ type: Input
583
+ }], persistent: [{
584
+ type: Input
585
+ }], show: [{
586
+ type: Input
587
+ }], width: [{
588
+ type: Input
589
+ }] } });
590
+
591
+ class IDDialogActionsComponent {
592
+ constructor() { }
593
+ }
594
+ IDDialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDDialogActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
595
+ IDDialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDDialogActionsComponent, selector: "id-dialog-actions", ngImport: i0, template: "<ids-dialog-actions>\n <ng-content></ng-content>\n</ids-dialog-actions>", encapsulation: i0.ViewEncapsulation.None });
596
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDDialogActionsComponent, decorators: [{
597
+ type: Component,
598
+ args: [{
599
+ selector: 'id-dialog-actions',
600
+ templateUrl: './dialog-actions.component.html',
601
+ encapsulation: ViewEncapsulation.None,
602
+ }]
603
+ }], ctorParameters: function () { return []; } });
604
+
605
+ class IDDialogModule {
606
+ }
607
+ IDDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
608
+ IDDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDDialogModule, declarations: [IDDialogComponent,
609
+ IDDialogActionsComponent], exports: [IDDialogComponent,
610
+ IDDialogActionsComponent] });
611
+ IDDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDDialogModule });
612
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDDialogModule, decorators: [{
613
+ type: NgModule,
614
+ args: [{
615
+ declarations: [
616
+ IDDialogComponent,
617
+ IDDialogActionsComponent
618
+ ],
619
+ exports: [
620
+ IDDialogComponent,
621
+ IDDialogActionsComponent
622
+ ],
623
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
624
+ }]
625
+ }] });
626
+
281
627
  class IDIcon {
282
628
  constructor(_props) {
283
629
  this._props = _props;
@@ -369,9 +715,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
369
715
  }] });
370
716
 
371
717
  class IDInputComponent {
718
+ constructor() {
719
+ this.autofocus = false;
720
+ }
372
721
  }
373
722
  IDInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
374
- IDInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDInputComponent, selector: "id-input", ngImport: i0, template: "<ids-input>\r\n <ng-content></ng-content>\r\n</ids-input>", encapsulation: i0.ViewEncapsulation.None });
723
+ IDInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDInputComponent, selector: "id-input", inputs: { autofocus: "autofocus" }, ngImport: i0, template: "<ids-input [autofocus]=\"autofocus\">\r\n <ng-content></ng-content>\r\n</ids-input>", encapsulation: i0.ViewEncapsulation.None });
375
724
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDInputComponent, decorators: [{
376
725
  type: Component,
377
726
  args: [{
@@ -379,7 +728,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
379
728
  templateUrl: './input.component.html',
380
729
  encapsulation: ViewEncapsulation.None,
381
730
  }]
382
- }] });
731
+ }], propDecorators: { autofocus: [{
732
+ type: Input
733
+ }] } });
383
734
 
384
735
  class IDInputModule {
385
736
  }
@@ -400,10 +751,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
400
751
  }] });
401
752
 
402
753
  class IDCheckboxComponent {
403
- constructor() { }
754
+ constructor() {
755
+ this.valid = true;
756
+ }
404
757
  }
405
758
  IDCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
406
- IDCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDCheckboxComponent, selector: "id-checkbox", ngImport: i0, template: "<ids-checkbox>\r\n <ng-content></ng-content>\r\n</ids-checkbox>", encapsulation: i0.ViewEncapsulation.None });
759
+ IDCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDCheckboxComponent, selector: "id-checkbox", inputs: { valid: "valid" }, ngImport: i0, template: "<ids-checkbox [valid]=\"valid\">\r\n <ng-content></ng-content>\r\n</ids-checkbox>", encapsulation: i0.ViewEncapsulation.None });
407
760
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDCheckboxComponent, decorators: [{
408
761
  type: Component,
409
762
  args: [{
@@ -411,7 +764,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
411
764
  templateUrl: './checkbox.component.html',
412
765
  encapsulation: ViewEncapsulation.None,
413
766
  }]
414
- }], ctorParameters: function () { return []; } });
767
+ }], ctorParameters: function () { return []; }, propDecorators: { valid: [{
768
+ type: Input
769
+ }] } });
415
770
 
416
771
  class IDCheckboxModule {
417
772
  }
@@ -902,167 +1257,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
902
1257
  }]
903
1258
  }] });
904
1259
 
905
- class IDLink {
906
- constructor(_label, _id, _classes) {
907
- this._label = _label;
908
- this._id = _id;
909
- this._classes = _classes;
910
- }
911
- get label() {
912
- return this._label;
913
- }
914
- get id() {
915
- return this._id;
916
- }
917
- get classes() {
918
- return this._classes;
919
- }
920
- set label(label) {
921
- this._label = label;
922
- }
923
- set id(id) {
924
- this._id = id;
925
- }
926
- set classes(classes) {
927
- this._classes = classes;
928
- }
929
- }
930
-
931
- class IDLinkFunction extends IDLink {
932
- constructor(_label, _action, _id, _classes) {
933
- super(_label, _id, _classes);
934
- this._action = _action;
935
- }
936
- get action() {
937
- return this._action;
938
- }
939
- set action(action) {
940
- this._action = action;
941
- }
942
- click() {
943
- this._action();
944
- }
945
- }
946
-
947
- class IDLinkRoute extends IDLink {
948
- constructor(_label, _route, _queries = {}, router, _id, _classes) {
949
- super(_label, _id, _classes);
950
- this._route = _route;
951
- this._queries = _queries;
952
- this.router = router;
953
- }
954
- get route() {
955
- return this._route;
956
- }
957
- set route(route) {
958
- this._route = route;
959
- }
960
- get queries() {
961
- return this._queries;
962
- }
963
- set queries(_queries) {
964
- this._queries = _queries;
965
- }
966
- click() {
967
- if (this.router) {
968
- this.router.navigate([this.route]);
969
- }
970
- else {
971
- console.error('No router supplied in IcLinkRoute Object');
972
- }
973
- }
974
- }
975
-
976
- class IDLinkWeb extends IDLink {
977
- constructor(_label, _url, _target, _id, _classes) {
978
- super(_label, _id, _classes);
979
- this._url = _url;
980
- this._target = _target;
981
- }
982
- get target() {
983
- return this._target;
984
- }
985
- set target(target) {
986
- this._target = target;
987
- }
988
- get url() {
989
- return this._url;
990
- }
991
- set url(url) {
992
- this._url = url;
993
- }
994
- click() {
995
- window.open(this._url, this.target);
996
- }
997
- }
998
-
999
- class IDAnchorComponent {
1000
- constructor(sanitizer) {
1001
- this.sanitizer = sanitizer;
1002
- this.linkType = '';
1003
- this.isLinkExternal = false;
1004
- this.isLinkRoute = false;
1005
- this.isLinkWeb = false;
1006
- this.isLinkFunction = false;
1007
- this.classes = '';
1008
- this.scriptHref = this.sanitizer.bypassSecurityTrustUrl('javascript:');
1009
- /** Apply classes to <a> element */
1010
- this.contextClasses = [];
1011
- }
1012
- setLinkType() {
1013
- this.isLinkRoute = this.link instanceof IDLinkRoute;
1014
- this.isLinkWeb = this.link instanceof IDLinkWeb;
1015
- this.isLinkFunction = this.link instanceof IDLinkFunction;
1016
- if (this.link && this.isLinkWeb) {
1017
- const weblink = this.link;
1018
- this.isLinkExternal = weblink.target === '_blank' || weblink.target === 'blank';
1019
- }
1020
- else {
1021
- this.isLinkExternal = false;
1022
- }
1023
- }
1024
- setClasses() {
1025
- if (this.link && this.link.classes) {
1026
- this.classes = [...this.contextClasses, ...this.link.classes].join(' ');
1027
- }
1028
- else {
1029
- this.classes = this.contextClasses.join(' ');
1030
- }
1031
- }
1032
- get linkWeb() {
1033
- return this.link;
1034
- }
1035
- get linkRoute() {
1036
- return this.link;
1037
- }
1038
- get linkFunction() {
1039
- return this.link;
1040
- }
1041
- ngOnChanges(changes) {
1042
- if (changes.link) {
1043
- this.setLinkType();
1044
- this.setClasses();
1045
- }
1046
- if (changes.contextClasses) {
1047
- this.setClasses();
1048
- }
1049
- }
1050
- }
1051
- IDAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
1052
- IDAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IDAnchorComponent, selector: "id-anchor", inputs: { link: "link", contextClasses: "contextClasses" }, usesOnChanges: true, ngImport: i0, template: "<a *ngIf=\"isLinkRoute\" \n [attr.id]=\"linkRoute.id\"\n [class]=\"classes\" \n [routerLink]=\"linkRoute.route\"\n routerLinkActive=\"selected\"\n [queryParams]=\"linkRoute.queries\">\n {{linkRoute.label}}\n</a>\n<a *ngIf=\"isLinkWeb\" \n [attr.id]=\"linkWeb.id\"\n [class]=\"classes\" \n [href]=\"linkWeb.url\"\n [class.ic-link--external]=\"isLinkExternal\"\n [attr.target]=\"linkWeb.target\"\n [attr.rel]=\"isLinkExternal ? 'noopener' : null\">\n {{linkWeb.label}}\n</a>\n<a *ngIf=\"isLinkFunction\" \n [attr.id]=\"linkFunction.id\"\n [class]=\"classes\" \n [attr.href]=\"scriptHref\"\n (click)=\"linkFunction.action()\">\n {{linkFunction.label}}\n</a>", styles: ["a { color: inherit; text-decoration: inherit; font-size: inherit }"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }] });
1053
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorComponent, decorators: [{
1054
- type: Component,
1055
- args: [{
1056
- selector: 'id-anchor',
1057
- templateUrl: './anchor.component.html',
1058
- styles: ['a { color: inherit; text-decoration: inherit; font-size: inherit }',]
1059
- }]
1060
- }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; }, propDecorators: { link: [{
1061
- type: Input
1062
- }], contextClasses: [{
1063
- type: Input
1064
- }] } });
1065
-
1066
1260
  class IDLinkComponent {
1067
1261
  constructor() {
1068
1262
  this.link = null;
@@ -1119,27 +1313,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1119
1313
  type: Input
1120
1314
  }] } });
1121
1315
 
1122
- class IDAnchorModule {
1123
- }
1124
- IDAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1125
- IDAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, declarations: [IDAnchorComponent], imports: [CommonModule,
1126
- RouterModule], exports: [IDAnchorComponent] });
1127
- IDAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, imports: [[
1128
- CommonModule,
1129
- RouterModule,
1130
- ]] });
1131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, decorators: [{
1132
- type: NgModule,
1133
- args: [{
1134
- declarations: [IDAnchorComponent],
1135
- imports: [
1136
- CommonModule,
1137
- RouterModule,
1138
- ],
1139
- exports: [IDAnchorComponent]
1140
- }]
1141
- }] });
1142
-
1143
1316
  class IDLinkModule {
1144
1317
  }
1145
1318
  IDLinkModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDLinkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1681,5 +1854,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
1681
1854
  * Generated bundle index. Do not edit.
1682
1855
  */
1683
1856
 
1684
- export { IDAlertComponent, IDAlertGlobalComponent, IDAlertGlobalModule, IDAlertModule, IDButtonComponent, IDButtonGroupComponent, IDButtonGroupModule, IDButtonModule, IDCheckboxComponent, IDCheckboxGroupComponent, IDCheckboxGroupModule, IDCheckboxModule, IDColumnComponent, IDColumnModule, IDContainerComponent, IDContainerModule, IDDateLabelComponent, IDDateLabelModule, IDErrorMessageComponent, IDErrorMessageModule, IDFooterComponent, IDFooterModule, IDHeaderAvatar, IDHeaderComponent, IDHeaderItem, IDHeaderModule, IDHeaderNavItem, IDIcon, IDIconComponent, IDIconModule, IDInputComponent, IDInputModule, IDLink, IDLinkComponent, IDLinkFunction, IDLinkModule, IDLinkRoute, IDLinkWeb, IDListComponent, IDListItemComponent, IDListItemInfoComponent, IDListItemInfoModule, IDListItemModule, IDListModule, IDMobileMenuComponent, IDMobileMenuItem, IDMobileMenuModule, IDNotificationBadge, IDNotificationBadgeComponent, IDNotificationBadgeModule, IDRadioComponent, IDRadioGroupComponent, IDRadioModule, IDRangeComponent, IDRangeModule, IDRowComponent, IDRowModule, IDSelectComponent, IDSelectModule, IDSelectMultipleComponent, IDSelectMultipleModule, IDSpinnerComponent, IDSpinnerModule, IDTabComponent, IDTabPanelComponent, IDTabsComponent, IDTabsModule, IDTextareaComponent, IDTextareaModule, IDTimeComponent, IDTimeModule };
1857
+ export { IDAlertComponent, IDAlertGlobalComponent, IDAlertGlobalModule, IDAlertModule, IDBreadcrumbsComponent, IDBreadcrumbsModule, IDButtonComponent, IDButtonGroupComponent, IDButtonGroupModule, IDButtonModule, IDCardComponent, IDCardModule, IDCheckboxComponent, IDCheckboxGroupComponent, IDCheckboxGroupModule, IDCheckboxModule, IDColumnComponent, IDColumnModule, IDContainerComponent, IDContainerModule, IDDateLabelComponent, IDDateLabelModule, IDDialogActionsComponent, IDDialogComponent, IDDialogModule, IDErrorMessageComponent, IDErrorMessageModule, IDFooterComponent, IDFooterModule, IDHeaderAvatar, IDHeaderComponent, IDHeaderItem, IDHeaderModule, IDHeaderNavItem, IDIcon, IDIconComponent, IDIconModule, IDInputComponent, IDInputModule, IDLink, IDLinkComponent, IDLinkFunction, IDLinkModule, IDLinkRoute, IDLinkWeb, IDListComponent, IDListItemComponent, IDListItemInfoComponent, IDListItemInfoModule, IDListItemModule, IDListModule, IDMobileMenuComponent, IDMobileMenuItem, IDMobileMenuModule, IDNotificationBadge, IDNotificationBadgeComponent, IDNotificationBadgeModule, IDRadioComponent, IDRadioGroupComponent, IDRadioModule, IDRangeComponent, IDRangeModule, IDRowComponent, IDRowModule, IDSelectComponent, IDSelectModule, IDSelectMultipleComponent, IDSelectMultipleModule, IDSpinnerComponent, IDSpinnerModule, IDTabComponent, IDTabPanelComponent, IDTabsComponent, IDTabsModule, IDTextareaComponent, IDTextareaModule, IDTimeComponent, IDTimeModule };
1685
1858
  //# sourceMappingURL=inera-ids-angular.js.map