@inera/ids-angular 1.5.3 → 1.6.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/bundles/inera-ids-angular.umd.js +829 -768
- package/bundles/inera-ids-angular.umd.js.map +1 -1
- package/esm2015/lib/components/breadcrumbs/breadcrumbs.component.js +33 -0
- package/esm2015/lib/components/breadcrumbs/breadcrumbs.module.js +32 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/inera-ids-angular.js +242 -186
- package/fesm2015/inera-ids-angular.js.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +12 -0
- package/lib/components/breadcrumbs/breadcrumbs.module.d.ts +10 -0
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../../internals/anchor.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export class IDBreadcrumbsComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.links = [];
|
|
8
|
+
this.current = '';
|
|
9
|
+
this.lead = '';
|
|
10
|
+
this.srlabel = '';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
IDBreadcrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
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\n [current]=\"current\"\n [lead]=\"lead\"\n [srlabel]=\"srlabel\">\n <ids-crumb *ngFor=\"let link of links\">\n <id-anchor [link]=\"link\"></id-anchor>\n </ids-crumb>\n <ids-crumb mobile=\"true\" *ngIf=\"mobileLink\">\n <id-anchor [link]=\"mobileLink\"></id-anchor>\n </ids-crumb>\n</ids-breadcrumbs>", components: [{ type: i1.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 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: 'id-breadcrumbs',
|
|
19
|
+
templateUrl: './breadcrumbs.component.html',
|
|
20
|
+
encapsulation: ViewEncapsulation.None,
|
|
21
|
+
}]
|
|
22
|
+
}], ctorParameters: function () { return []; }, propDecorators: { links: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}], mobileLink: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}], current: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], lead: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], srlabel: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}] } });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaWRzLWFuZ3VsYXIvc3JjL2xpYi9jb21wb25lbnRzL2JyZWFkY3J1bWJzL2JyZWFkY3J1bWJzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1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wc3VsYXRpb246IFZpZXdFbmNhcHN1bGF0aW9uLk5vbmUsXG59KVxuZXhwb3J0IGNsYXNzIElEQnJlYWRjcnVtYnNDb21wb25lbnQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG4gIEBJbnB1dCgpXG4gIGxpbmtzOiBJRExpbmtbXSA9IFtdO1xuICBASW5wdXQoKVxuICBtb2JpbGVMaW5rOiBJRExpbmsgfCB1bmRlZmluZWQ7XG4gIEBJbnB1dCgpXG4gIGN1cnJlbnQ6IHN0cmluZyA9ICcnO1xuICBASW5wdXQoKVxuICBsZWFkOiBzdHJpbmcgPSAnJztcbiAgQElucHV0KClcbiAgc3JsYWJlbDogc3RyaW5nID0gJyc7XG5cbn1cbiIsIjxpZHMtYnJlYWRjcnVtYnNcbiAgW2N1cnJlbnRdPVwiY3VycmVudFwiXG4gIFtsZWFkXT1cImxlYWRcIlxuICBbc3JsYWJlbF09XCJzcmxhYmVsXCI+XG4gIDxpZHMtY3J1bWIgKm5nRm9yPVwibGV0IGxpbmsgb2YgbGlua3NcIj5cbiAgICA8aWQtYW5jaG9yIFtsaW5rXT1cImxpbmtcIj48L2lkLWFuY2hvcj5cbiAgPC9pZHMtY3J1bWI+XG4gIDxpZHMtY3J1bWIgbW9iaWxlPVwidHJ1ZVwiICpuZ0lmPVwibW9iaWxlTGlua1wiPlxuICAgIDxpZC1hbmNob3IgW2xpbmtdPVwibW9iaWxlTGlua1wiPjwvaWQtYW5jaG9yPlxuICA8L2lkcy1jcnVtYj5cbjwvaWRzLWJyZWFkY3J1bWJzPiJdfQ==
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
2
|
+
import { IDBreadcrumbsComponent } from './breadcrumbs.component';
|
|
3
|
+
import '@inera/ids-core/components/breadcrumbs/register';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { IDAnchorModule } from '../../internals/anchor.module';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class IDBreadcrumbsModule {
|
|
8
|
+
}
|
|
9
|
+
IDBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
IDBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, declarations: [IDBreadcrumbsComponent], imports: [CommonModule,
|
|
11
|
+
IDAnchorModule], exports: [IDBreadcrumbsComponent] });
|
|
12
|
+
IDBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, imports: [[
|
|
13
|
+
CommonModule,
|
|
14
|
+
IDAnchorModule
|
|
15
|
+
]] });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, decorators: [{
|
|
17
|
+
type: NgModule,
|
|
18
|
+
args: [{
|
|
19
|
+
declarations: [
|
|
20
|
+
IDBreadcrumbsComponent
|
|
21
|
+
],
|
|
22
|
+
exports: [
|
|
23
|
+
IDBreadcrumbsComponent
|
|
24
|
+
],
|
|
25
|
+
imports: [
|
|
26
|
+
CommonModule,
|
|
27
|
+
IDAnchorModule
|
|
28
|
+
],
|
|
29
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
30
|
+
}]
|
|
31
|
+
}] });
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYnMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaWRzLWFuZ3VsYXIvc3JjL2xpYi9jb21wb25lb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zL2JyZWFkY3J1bWJzL3JlZ2lzdGVyJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBJREFuY2hvck1vZHVsZSB9IGZyb20gJy4uLy4uL2ludGVybmFscy9hbmNob3IubW9kdWxlJztcblxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBJREJyZWFkY3J1bWJzQ29tcG9uZW50XG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBJREJyZWFkY3J1bWJzQ29tcG9uZW50XG4gIF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgSURBbmNob3JNb2R1bGVcbiAgXSxcbiAgc2NoZW1hczogW0NVU1RPTV9FTEVNRU5UU19TQ0hFTUFdLFxufSlcbmV4cG9ydCBjbGFzcyBJREJyZWFkY3J1bWJzTW9kdWxlIHsgfVxuIl19
|
package/esm2015/public-api.js
CHANGED
|
@@ -11,6 +11,9 @@ export * from './lib/components/button/button.component';
|
|
|
11
11
|
export * from './lib/components/button/button.module';
|
|
12
12
|
export * from './lib/components/button-group/button-group.component';
|
|
13
13
|
export * from './lib/components/button-group/button-group.module';
|
|
14
|
+
/* Breadcrumbs */
|
|
15
|
+
export * from './lib/components/breadcrumbs/breadcrumbs.component';
|
|
16
|
+
export * from './lib/components/breadcrumbs/breadcrumbs.module';
|
|
14
17
|
/* Date-label */
|
|
15
18
|
export * from './lib/components/date-label/date-label.component';
|
|
16
19
|
export * from './lib/components/date-label/date-label.module';
|
|
@@ -90,4 +93,4 @@ export * from './lib/components/tabs/tabs.component';
|
|
|
90
93
|
export * from './lib/components/tabs/panel/tab-panel.component';
|
|
91
94
|
export * from './lib/components/tabs/tab/tab.component';
|
|
92
95
|
export * from './lib/components/tabs/tabs.module';
|
|
93
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
96
|
+
//# sourceMappingURL=data:application/json;base64,e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nRzL2Zvb3Rlci9mb290ZXIubW9kdWxlJztcblxuLyogSGVhZGVyICovXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL2hlYWRlci9oZWFkZXIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvaGVhZGVyL2hlYWRlci5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY2xhc3Nlcy9oZWFkZXIvSURIZWFkZXJJdGVtJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NsYXNzZXMvaGVhZGVyL0lESGVhZGVySXRlbVByb3BzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NsYXNzZXMvaGVhZGVyL0lESGVhZGVyQXZhdGFyJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NsYXNzZXMvaGVhZGVyL0lESGVhZGVyQXZhdGFyUHJvcHMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY2xhc3Nlcy9oZWFkZXIvSURIZWFkZXJOYXZJdGVtJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NsYXNzZXMvaGVhZGVyL0lESGVhZGVyTmF2SXRlbVByb3BzJztcblxuLyogVGFicyAqL1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy90YWJzL3RhYnMuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvdGFicy9wYW5lbC90YWItcGFuZWwuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMvdGFicy90YWIvdGFiLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3RhYnMvdGFicy5tb2R1bGUnO1xuXG4iXX0=
|
|
@@ -6,6 +6,10 @@ 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';
|
|
9
13
|
import '@inera/ids-core/components/date-label/register';
|
|
10
14
|
import '@inera/ids-core/components/icon/register';
|
|
11
15
|
import '@inera/ids-core/components/form/input/register';
|
|
@@ -22,9 +26,6 @@ import '@inera/ids-core/components/form/textarea/register';
|
|
|
22
26
|
import '@inera/ids-core/components/grid/row/register';
|
|
23
27
|
import '@inera/ids-core/components/grid/column/register';
|
|
24
28
|
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
29
|
import '@inera/ids-core/components/link/register';
|
|
29
30
|
import '@inera/ids-core/components/list/register';
|
|
30
31
|
import '@inera/ids-core/components/notification/badge/register';
|
|
@@ -230,6 +231,243 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
230
231
|
}]
|
|
231
232
|
}] });
|
|
232
233
|
|
|
234
|
+
class IDLink {
|
|
235
|
+
constructor(_label, _id, _classes) {
|
|
236
|
+
this._label = _label;
|
|
237
|
+
this._id = _id;
|
|
238
|
+
this._classes = _classes;
|
|
239
|
+
}
|
|
240
|
+
get label() {
|
|
241
|
+
return this._label;
|
|
242
|
+
}
|
|
243
|
+
get id() {
|
|
244
|
+
return this._id;
|
|
245
|
+
}
|
|
246
|
+
get classes() {
|
|
247
|
+
return this._classes;
|
|
248
|
+
}
|
|
249
|
+
set label(label) {
|
|
250
|
+
this._label = label;
|
|
251
|
+
}
|
|
252
|
+
set id(id) {
|
|
253
|
+
this._id = id;
|
|
254
|
+
}
|
|
255
|
+
set classes(classes) {
|
|
256
|
+
this._classes = classes;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
class IDLinkFunction extends IDLink {
|
|
261
|
+
constructor(_label, _action, _id, _classes) {
|
|
262
|
+
super(_label, _id, _classes);
|
|
263
|
+
this._action = _action;
|
|
264
|
+
}
|
|
265
|
+
get action() {
|
|
266
|
+
return this._action;
|
|
267
|
+
}
|
|
268
|
+
set action(action) {
|
|
269
|
+
this._action = action;
|
|
270
|
+
}
|
|
271
|
+
click() {
|
|
272
|
+
this._action();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
class IDLinkRoute extends IDLink {
|
|
277
|
+
constructor(_label, _route, _queries = {}, router, _id, _classes) {
|
|
278
|
+
super(_label, _id, _classes);
|
|
279
|
+
this._route = _route;
|
|
280
|
+
this._queries = _queries;
|
|
281
|
+
this.router = router;
|
|
282
|
+
}
|
|
283
|
+
get route() {
|
|
284
|
+
return this._route;
|
|
285
|
+
}
|
|
286
|
+
set route(route) {
|
|
287
|
+
this._route = route;
|
|
288
|
+
}
|
|
289
|
+
get queries() {
|
|
290
|
+
return this._queries;
|
|
291
|
+
}
|
|
292
|
+
set queries(_queries) {
|
|
293
|
+
this._queries = _queries;
|
|
294
|
+
}
|
|
295
|
+
click() {
|
|
296
|
+
if (this.router) {
|
|
297
|
+
this.router.navigate([this.route]);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
console.error('No router supplied in IcLinkRoute Object');
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
class IDLinkWeb extends IDLink {
|
|
306
|
+
constructor(_label, _url, _target, _id, _classes) {
|
|
307
|
+
super(_label, _id, _classes);
|
|
308
|
+
this._url = _url;
|
|
309
|
+
this._target = _target;
|
|
310
|
+
}
|
|
311
|
+
get target() {
|
|
312
|
+
return this._target;
|
|
313
|
+
}
|
|
314
|
+
set target(target) {
|
|
315
|
+
this._target = target;
|
|
316
|
+
}
|
|
317
|
+
get url() {
|
|
318
|
+
return this._url;
|
|
319
|
+
}
|
|
320
|
+
set url(url) {
|
|
321
|
+
this._url = url;
|
|
322
|
+
}
|
|
323
|
+
click() {
|
|
324
|
+
window.open(this._url, this.target);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
class IDAnchorComponent {
|
|
329
|
+
constructor(sanitizer) {
|
|
330
|
+
this.sanitizer = sanitizer;
|
|
331
|
+
this.linkType = '';
|
|
332
|
+
this.isLinkExternal = false;
|
|
333
|
+
this.isLinkRoute = false;
|
|
334
|
+
this.isLinkWeb = false;
|
|
335
|
+
this.isLinkFunction = false;
|
|
336
|
+
this.classes = '';
|
|
337
|
+
this.scriptHref = this.sanitizer.bypassSecurityTrustUrl('javascript:');
|
|
338
|
+
/** Apply classes to <a> element */
|
|
339
|
+
this.contextClasses = [];
|
|
340
|
+
}
|
|
341
|
+
setLinkType() {
|
|
342
|
+
this.isLinkRoute = this.link instanceof IDLinkRoute;
|
|
343
|
+
this.isLinkWeb = this.link instanceof IDLinkWeb;
|
|
344
|
+
this.isLinkFunction = this.link instanceof IDLinkFunction;
|
|
345
|
+
if (this.link && this.isLinkWeb) {
|
|
346
|
+
const weblink = this.link;
|
|
347
|
+
this.isLinkExternal = weblink.target === '_blank' || weblink.target === 'blank';
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
this.isLinkExternal = false;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
setClasses() {
|
|
354
|
+
if (this.link && this.link.classes) {
|
|
355
|
+
this.classes = [...this.contextClasses, ...this.link.classes].join(' ');
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
this.classes = this.contextClasses.join(' ');
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
get linkWeb() {
|
|
362
|
+
return this.link;
|
|
363
|
+
}
|
|
364
|
+
get linkRoute() {
|
|
365
|
+
return this.link;
|
|
366
|
+
}
|
|
367
|
+
get linkFunction() {
|
|
368
|
+
return this.link;
|
|
369
|
+
}
|
|
370
|
+
ngOnChanges(changes) {
|
|
371
|
+
if (changes.link) {
|
|
372
|
+
this.setLinkType();
|
|
373
|
+
this.setClasses();
|
|
374
|
+
}
|
|
375
|
+
if (changes.contextClasses) {
|
|
376
|
+
this.setClasses();
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
IDAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
381
|
+
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"] }] });
|
|
382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorComponent, decorators: [{
|
|
383
|
+
type: Component,
|
|
384
|
+
args: [{
|
|
385
|
+
selector: 'id-anchor',
|
|
386
|
+
templateUrl: './anchor.component.html',
|
|
387
|
+
styles: ['a { color: inherit; text-decoration: inherit; font-size: inherit }',]
|
|
388
|
+
}]
|
|
389
|
+
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; }, propDecorators: { link: [{
|
|
390
|
+
type: Input
|
|
391
|
+
}], contextClasses: [{
|
|
392
|
+
type: Input
|
|
393
|
+
}] } });
|
|
394
|
+
|
|
395
|
+
class IDBreadcrumbsComponent {
|
|
396
|
+
constructor() {
|
|
397
|
+
this.links = [];
|
|
398
|
+
this.current = '';
|
|
399
|
+
this.lead = '';
|
|
400
|
+
this.srlabel = '';
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
IDBreadcrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
404
|
+
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\n [current]=\"current\"\n [lead]=\"lead\"\n [srlabel]=\"srlabel\">\n <ids-crumb *ngFor=\"let link of links\">\n <id-anchor [link]=\"link\"></id-anchor>\n </ids-crumb>\n <ids-crumb mobile=\"true\" *ngIf=\"mobileLink\">\n <id-anchor [link]=\"mobileLink\"></id-anchor>\n </ids-crumb>\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 });
|
|
405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsComponent, decorators: [{
|
|
406
|
+
type: Component,
|
|
407
|
+
args: [{
|
|
408
|
+
selector: 'id-breadcrumbs',
|
|
409
|
+
templateUrl: './breadcrumbs.component.html',
|
|
410
|
+
encapsulation: ViewEncapsulation.None,
|
|
411
|
+
}]
|
|
412
|
+
}], ctorParameters: function () { return []; }, propDecorators: { links: [{
|
|
413
|
+
type: Input
|
|
414
|
+
}], mobileLink: [{
|
|
415
|
+
type: Input
|
|
416
|
+
}], current: [{
|
|
417
|
+
type: Input
|
|
418
|
+
}], lead: [{
|
|
419
|
+
type: Input
|
|
420
|
+
}], srlabel: [{
|
|
421
|
+
type: Input
|
|
422
|
+
}] } });
|
|
423
|
+
|
|
424
|
+
class IDAnchorModule {
|
|
425
|
+
}
|
|
426
|
+
IDAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
427
|
+
IDAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, declarations: [IDAnchorComponent], imports: [CommonModule,
|
|
428
|
+
RouterModule], exports: [IDAnchorComponent] });
|
|
429
|
+
IDAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, imports: [[
|
|
430
|
+
CommonModule,
|
|
431
|
+
RouterModule,
|
|
432
|
+
]] });
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDAnchorModule, decorators: [{
|
|
434
|
+
type: NgModule,
|
|
435
|
+
args: [{
|
|
436
|
+
declarations: [IDAnchorComponent],
|
|
437
|
+
imports: [
|
|
438
|
+
CommonModule,
|
|
439
|
+
RouterModule,
|
|
440
|
+
],
|
|
441
|
+
exports: [IDAnchorComponent]
|
|
442
|
+
}]
|
|
443
|
+
}] });
|
|
444
|
+
|
|
445
|
+
class IDBreadcrumbsModule {
|
|
446
|
+
}
|
|
447
|
+
IDBreadcrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
448
|
+
IDBreadcrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, declarations: [IDBreadcrumbsComponent], imports: [CommonModule,
|
|
449
|
+
IDAnchorModule], exports: [IDBreadcrumbsComponent] });
|
|
450
|
+
IDBreadcrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, imports: [[
|
|
451
|
+
CommonModule,
|
|
452
|
+
IDAnchorModule
|
|
453
|
+
]] });
|
|
454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDBreadcrumbsModule, decorators: [{
|
|
455
|
+
type: NgModule,
|
|
456
|
+
args: [{
|
|
457
|
+
declarations: [
|
|
458
|
+
IDBreadcrumbsComponent
|
|
459
|
+
],
|
|
460
|
+
exports: [
|
|
461
|
+
IDBreadcrumbsComponent
|
|
462
|
+
],
|
|
463
|
+
imports: [
|
|
464
|
+
CommonModule,
|
|
465
|
+
IDAnchorModule
|
|
466
|
+
],
|
|
467
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
468
|
+
}]
|
|
469
|
+
}] });
|
|
470
|
+
|
|
233
471
|
class IDDateLabelComponent {
|
|
234
472
|
constructor() {
|
|
235
473
|
this.date = null;
|
|
@@ -902,167 +1140,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
902
1140
|
}]
|
|
903
1141
|
}] });
|
|
904
1142
|
|
|
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
1143
|
class IDLinkComponent {
|
|
1067
1144
|
constructor() {
|
|
1068
1145
|
this.link = null;
|
|
@@ -1119,27 +1196,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1119
1196
|
type: Input
|
|
1120
1197
|
}] } });
|
|
1121
1198
|
|
|
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
1199
|
class IDLinkModule {
|
|
1144
1200
|
}
|
|
1145
1201
|
IDLinkModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IDLinkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1681,5 +1737,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1681
1737
|
* Generated bundle index. Do not edit.
|
|
1682
1738
|
*/
|
|
1683
1739
|
|
|
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 };
|
|
1740
|
+
export { IDAlertComponent, IDAlertGlobalComponent, IDAlertGlobalModule, IDAlertModule, IDBreadcrumbsComponent, IDBreadcrumbsModule, 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 };
|
|
1685
1741
|
//# sourceMappingURL=inera-ids-angular.js.map
|