@hestia-earth/ui-components 0.0.8 → 0.0.9

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('@ng-bootstrap/ng-bootstrap'), require('@angular/google-maps'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-regular-svg-icons'), require('@fortawesome/free-solid-svg-icons'), require('random-material-color'), require('@hestia-earth/schema'), require('@hestia-earth/api'), require('@hestia-earth/utils'), require('rxjs'), require('rxjs/operators'), require('csvtojson'), require('@angular/common/http'), require('@angular/platform-browser'), require('pluralize'), require('@hestia-earth/bulma-tagsinput'), require('json-2-csv'), require('@angular/cdk/drag-drop'), require('@hestia-earth/schema-convert'), require('@hestia-earth/json-schema/schema-utils'), require('jsondiffpatch'), require('chart.js'), require('moment'), require('moment/locale/en-gb'), require('uuid'), require('@google/markerclustererplus'), require('chartjs-plugin-datalabels')) :
3
- typeof define === 'function' && define.amd ? define('@hestia-earth/ui-components', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/router', '@ng-bootstrap/ng-bootstrap', '@angular/google-maps', '@fortawesome/angular-fontawesome', '@fortawesome/free-regular-svg-icons', '@fortawesome/free-solid-svg-icons', 'random-material-color', '@hestia-earth/schema', '@hestia-earth/api', '@hestia-earth/utils', 'rxjs', 'rxjs/operators', 'csvtojson', '@angular/common/http', '@angular/platform-browser', 'pluralize', '@hestia-earth/bulma-tagsinput', 'json-2-csv', '@angular/cdk/drag-drop', '@hestia-earth/schema-convert', '@hestia-earth/json-schema/schema-utils', 'jsondiffpatch', 'chart.js', 'moment', 'moment/locale/en-gb', 'uuid', '@google/markerclustererplus', 'chartjs-plugin-datalabels'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["hestia-earth"] = global["hestia-earth"] || {}, global["hestia-earth"]["ui-components"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.router, global.i10, global.ng.googleMaps, global.i1, global.freeRegularSvgIcons, global.freeSolidSvgIcons, global.randomMaterialColor, global.schema, global.api, global.utils, global.rxjs, global.rxjs.operators, global.csvtojson, global.ng.common.http, global.ng.platformBrowser, global.pluralize, global.BulmaTagsInput, global.json2Csv, global.ng.cdk.dragDrop, global.schemaConvert, global.schemaUtils, global.jsondiffpatch, global.chart_js, global.moment, null, global.uuid, global.MarkerClusterer, global.ChartDataLabels));
5
- })(this, (function (exports, i0, i3, i1$4, i4, i10, i1$2, i1, freeRegularSvgIcons, freeSolidSvgIcons, randomMaterialColor, schema, api, utils, rxjs, operators, csvtojson, i1$1, i1$3, pluralize, BulmaTagsInput, json2Csv, i6, schemaConvert, schemaUtils, jsondiffpatch, chart_js, moment, enGb, uuid, MarkerClusterer, ChartDataLabels) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('@ng-bootstrap/ng-bootstrap'), require('@angular/google-maps'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-regular-svg-icons'), require('@fortawesome/free-solid-svg-icons'), require('@angular/platform-browser'), require('rxjs'), require('random-material-color'), require('@hestia-earth/schema'), require('@hestia-earth/api'), require('@hestia-earth/utils'), require('pluralize'), require('rxjs/operators'), require('csvtojson'), require('@angular/common/http'), require('@hestia-earth/bulma-tagsinput'), require('json-2-csv'), require('@angular/cdk/drag-drop'), require('@hestia-earth/schema-convert'), require('@hestia-earth/json-schema/schema-utils'), require('jsondiffpatch'), require('chart.js'), require('moment'), require('moment/locale/en-gb'), require('uuid'), require('@google/markerclustererplus'), require('chartjs-plugin-datalabels')) :
3
+ typeof define === 'function' && define.amd ? define('@hestia-earth/ui-components', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/router', '@ng-bootstrap/ng-bootstrap', '@angular/google-maps', '@fortawesome/angular-fontawesome', '@fortawesome/free-regular-svg-icons', '@fortawesome/free-solid-svg-icons', '@angular/platform-browser', 'rxjs', 'random-material-color', '@hestia-earth/schema', '@hestia-earth/api', '@hestia-earth/utils', 'pluralize', 'rxjs/operators', 'csvtojson', '@angular/common/http', '@hestia-earth/bulma-tagsinput', 'json-2-csv', '@angular/cdk/drag-drop', '@hestia-earth/schema-convert', '@hestia-earth/json-schema/schema-utils', 'jsondiffpatch', 'chart.js', 'moment', 'moment/locale/en-gb', 'uuid', '@google/markerclustererplus', 'chartjs-plugin-datalabels'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["hestia-earth"] = global["hestia-earth"] || {}, global["hestia-earth"]["ui-components"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.router, global.i10, global.ng.googleMaps, global.i1, global.freeRegularSvgIcons, global.freeSolidSvgIcons, global.ng.platformBrowser, global.rxjs, global.randomMaterialColor, global.schema, global.api, global.utils, global.pluralize, global.rxjs.operators, global.csvtojson, global.ng.common.http, global.BulmaTagsInput, global.json2Csv, global.ng.cdk.dragDrop, global.schemaConvert, global.schemaUtils, global.jsondiffpatch, global.chart_js, global.moment, null, global.uuid, global.MarkerClusterer, global.ChartDataLabels));
5
+ })(this, (function (exports, i0, i3, i1$2, i4, i10, i1$4, i1, freeRegularSvgIcons, freeSolidSvgIcons, i1$1, rxjs, randomMaterialColor, schema, api, utils, pluralize, operators, csvtojson, i1$3, BulmaTagsInput, json2Csv, i6, schemaConvert, schemaUtils, jsondiffpatch, chart_js, moment, enGb, uuid, MarkerClusterer, ChartDataLabels) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -26,15 +26,15 @@
26
26
 
27
27
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
28
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
- var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
29
+ var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$2);
30
30
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
31
31
  var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
32
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
32
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
33
33
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
34
- var csvtojson__namespace = /*#__PURE__*/_interopNamespace(csvtojson);
35
34
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
36
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
37
35
  var pluralize__namespace = /*#__PURE__*/_interopNamespace(pluralize);
36
+ var csvtojson__namespace = /*#__PURE__*/_interopNamespace(csvtojson);
37
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
38
38
  var BulmaTagsInput__default = /*#__PURE__*/_interopDefaultLegacy(BulmaTagsInput);
39
39
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
40
40
  var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
@@ -417,6 +417,161 @@
417
417
  }]
418
418
  }], ctorParameters: function () { return [{ type: i1__namespace.FaIconLibrary }]; } });
419
419
 
420
+ var SocialTagsComponent = /** @class */ (function () {
421
+ function SocialTagsComponent(meta) {
422
+ this.meta = meta;
423
+ this.config = {};
424
+ this.classes = 'is-hidden';
425
+ }
426
+ SocialTagsComponent.prototype.ngOnInit = function () {
427
+ var _this = this;
428
+ this.meta.addTag({ charset: 'UTF-8' });
429
+ var config = Object.assign({ 'og:url': window.location.href.split('?')[0] }, this.config);
430
+ Object.keys(config).map(function (name) {
431
+ var content = config[name];
432
+ _this.meta.updateTag({ name: name, content: content });
433
+ if (name === 'og:description') {
434
+ _this.meta.updateTag({ name: 'description', content: content });
435
+ }
436
+ });
437
+ };
438
+ return SocialTagsComponent;
439
+ }());
440
+ SocialTagsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SocialTagsComponent, deps: [{ token: i1__namespace$1.Meta }], target: i0__namespace.ɵɵFactoryTarget.Component });
441
+ SocialTagsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SocialTagsComponent, selector: "he-social-tags", inputs: { config: "config" }, host: { properties: { "class": "this.classes" } }, ngImport: i0__namespace, template: "<span></span>\n", styles: [""] });
442
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SocialTagsComponent, decorators: [{
443
+ type: i0.Component,
444
+ args: [{
445
+ selector: 'he-social-tags',
446
+ templateUrl: './social-tags.component.html',
447
+ styleUrls: ['./social-tags.component.scss']
448
+ }]
449
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.Meta }]; }, propDecorators: { config: [{
450
+ type: i0.Input
451
+ }], classes: [{
452
+ type: i0.HostBinding,
453
+ args: ['class']
454
+ }] } });
455
+
456
+ var toastId = 0;
457
+ var HeToastService = /** @class */ (function () {
458
+ function HeToastService() {
459
+ this.toasts = new rxjs.ReplaySubject(1);
460
+ }
461
+ HeToastService.prototype.success = function (message, duration) {
462
+ if (duration === void 0) { duration = 3000; }
463
+ this.toasts.next({
464
+ id: ++toastId,
465
+ message: message,
466
+ duration: duration,
467
+ color: 'success',
468
+ showRawMessage: true
469
+ });
470
+ };
471
+ HeToastService.prototype.error = function (message, showRawMessage, duration) {
472
+ if (showRawMessage === void 0) { showRawMessage = true; }
473
+ if (duration === void 0) { duration = 3000; }
474
+ this.toasts.next({
475
+ id: ++toastId,
476
+ message: ("" + message || '').trim(),
477
+ duration: duration,
478
+ color: 'danger',
479
+ showRawMessage: showRawMessage
480
+ });
481
+ };
482
+ return HeToastService;
483
+ }());
484
+ HeToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
485
+ HeToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeToastService, providedIn: 'root' });
486
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeToastService, decorators: [{
487
+ type: i0.Injectable,
488
+ args: [{
489
+ providedIn: 'root'
490
+ }]
491
+ }] });
492
+
493
+ var ToastComponent = /** @class */ (function () {
494
+ function ToastComponent(toastService) {
495
+ this.toastService = toastService;
496
+ this.subscriptions = [];
497
+ this.toasts = [];
498
+ }
499
+ ToastComponent.prototype.ngOnInit = function () {
500
+ var _this = this;
501
+ this.subscriptions.push(this.toastService.toasts.subscribe(function (toast) { return _this.add(toast); }));
502
+ };
503
+ ToastComponent.prototype.ngOnDestroy = function () {
504
+ this.subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
505
+ };
506
+ ToastComponent.prototype.add = function (toast) {
507
+ var _this = this;
508
+ this.toasts.push(toast);
509
+ if (toast.duration) {
510
+ toast.timeout = setTimeout(function () { return _this.dismiss(toast); }, toast.duration);
511
+ }
512
+ };
513
+ ToastComponent.prototype.dismiss = function (toast) {
514
+ this.toasts.splice(this.toasts.findIndex(function (val) { return val.id === toast.id; }), 1);
515
+ };
516
+ return ToastComponent;
517
+ }());
518
+ ToastComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastComponent, deps: [{ token: HeToastService }], target: i0__namespace.ɵɵFactoryTarget.Component });
519
+ ToastComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToastComponent, selector: "he-toast", ngImport: i0__namespace, template: "<div class=\"mb-3 columns is-centered is-vcentered\">\n <div class=\"notification is-{{toast.color}}\" role=\"alert\" *ngFor=\"let toast of toasts\">\n <button class=\"delete\" aria-label=\"delete\" (click)=\"dismiss(toast)\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <strong [ngSwitch]=\"toast.color\">\n <ng-container *ngSwitchCase=\"'danger'\">\n <ng-container [ngSwitch]=\"toast.message\">\n <span *ngSwitchCase=\"'Unauthorized'\">You are not allowed to perform this action.</span>\n <span *ngSwitchCase=\"'form-invalid'\">Please fix all the errors on this page.</span>\n <span *ngSwitchCase=\"'users-email-already-taken'\">Email already taken.</span>\n <span *ngSwitchCase=\"'users-auth-already-taken'\">Account already connected.</span>\n <span *ngSwitchDefault>\n <span *ngIf=\"toast.showRawMessage\">{{toast.message}}</span>\n <span [class.is-hidden]=\"toast.showRawMessage\">An unknown error occurred. Please try again later.</span>\n </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <span *ngIf=\"toast.showRawMessage\">{{toast.message}}</span>\n <span [class.is-hidden]=\"toast.showRawMessage\">An unknown error occurred. Please try again later.</span>\n </ng-container>\n </strong>\n </div>\n</div>\n", styles: [":host{bottom:0;position:fixed;width:100%}\n"], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
520
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastComponent, decorators: [{
521
+ type: i0.Component,
522
+ args: [{
523
+ selector: 'he-toast',
524
+ templateUrl: './toast.component.html',
525
+ styleUrls: ['./toast.component.scss']
526
+ }]
527
+ }], ctorParameters: function () { return [{ type: HeToastService }]; } });
528
+
529
+ /* eslint-disable @angular-eslint/directive-selector */
530
+ var BindOnceDirective = /** @class */ (function () {
531
+ function BindOnceDirective(templateRef, viewContainerRef) {
532
+ this.embeddedViewRef = viewContainerRef.createEmbeddedView(templateRef);
533
+ this.embeddedViewRef.detach();
534
+ }
535
+ BindOnceDirective.prototype.ngOnChanges = function () {
536
+ this.embeddedViewRef.detectChanges();
537
+ };
538
+ return BindOnceDirective;
539
+ }());
540
+ BindOnceDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BindOnceDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
541
+ BindOnceDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BindOnceDirective, selector: "[bindOnce]", inputs: { bindOnce: "bindOnce" }, usesOnChanges: true, ngImport: i0__namespace });
542
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BindOnceDirective, decorators: [{
543
+ type: i0.Directive,
544
+ args: [{
545
+ selector: '[bindOnce]'
546
+ }]
547
+ }], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: { bindOnce: [{
548
+ type: i0.Input
549
+ }] } });
550
+
551
+ var shouldDefault = {
552
+ string: function (value) { return !value; },
553
+ number: function (value) { return !value && value !== 0; },
554
+ boolean: function (value) { return !value; },
555
+ object: function (value) { return !value || !Object.keys(value).length; },
556
+ undefined: function () { return true; }
557
+ };
558
+ var DefaultPipe = /** @class */ (function () {
559
+ function DefaultPipe() {
560
+ }
561
+ DefaultPipe.prototype.transform = function (value, defaultValue) {
562
+ return shouldDefault[typeof value](value) ? defaultValue : value;
563
+ };
564
+ return DefaultPipe;
565
+ }());
566
+ DefaultPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
567
+ DefaultPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultPipe, name: "default" });
568
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultPipe, decorators: [{
569
+ type: i0.Pipe,
570
+ args: [{
571
+ name: 'default'
572
+ }]
573
+ }] });
574
+
420
575
  var _a$6;
421
576
  var get$4 = require('lodash.get');
422
577
  var gitHome = 'https://gitlab.com/hestia-earth';
@@ -429,7 +584,6 @@
429
584
  window.location.origin :
430
585
  'https://www.hestia.earth'; };
431
586
  var isExternal = function () { return baseUrl() !== window.location.origin; };
432
- ;
433
587
  var parseErrorStatus = function (error) { return ((error === null || error === void 0 ? void 0 : error.statusText) || '').toLowerCase().replace(/\s/g, '-'); };
434
588
  var parseErrorMessage = function (error) { return get$4(error, 'error.error', get$4(error, 'error.message', get$4(error, 'error', get$4(error, 'message', error)))); };
435
589
  var handleAPIError = function (error) {
@@ -623,176 +777,24 @@
623
777
  return file.endsWith('.') ? file.substring(0, file.length - 1) : file;
624
778
  };
625
779
 
626
- var _a$5, _b$2, _c$2, _d$2;
627
- var SUCCESS_CRITERION_MAX_DELTA_PERCENT = 5;
628
- var WARNING_CRITERION_MAX_DELTA_PERCENT = 20;
629
- exports.DeltaColour = void 0;
630
- (function (DeltaColour) {
631
- DeltaColour["Success"] = "success";
632
- DeltaColour["Warning"] = "warning";
633
- DeltaColour["Danger"] = "danger";
634
- })(exports.DeltaColour || (exports.DeltaColour = {}));
635
- exports.DeltaDisplayType = void 0;
636
- (function (DeltaDisplayType) {
637
- DeltaDisplayType["absolute"] = "absolute";
638
- DeltaDisplayType["percent"] = "percent";
639
- })(exports.DeltaDisplayType || (exports.DeltaDisplayType = {}));
640
- var deltaPerType = (_a$5 = {},
641
- _a$5[exports.DeltaDisplayType.absolute] = function (value, original) { return value - original; },
642
- _a$5[exports.DeltaDisplayType.percent] = function (value, original) { return ((value - original) / original) * 100; },
643
- _a$5);
644
- var roundValue = function (value) { return +("" + value).substring(0, 10); };
645
- var delta = function (value, originalValue, displayType, mapping) {
646
- if (displayType === void 0) { displayType = exports.DeltaDisplayType.percent; }
647
- var vvalue = roundValue(propertyValue$1(value));
648
- var voriginalValue = roundValue(propertyValue$1(originalValue));
649
- var deltaFuncs = Object.assign(Object.assign({}, deltaPerType), mapping);
650
- var diff = vvalue === voriginalValue ? 0 : deltaFuncs[displayType](vvalue, voriginalValue);
651
- return Number.isFinite(diff) ? (diff === -0 ? 0 : diff) : 0;
652
- };
653
- var PercentDeltaConditions;
654
- (function (PercentDeltaConditions) {
655
- PercentDeltaConditions["recalculated0"] = "recalculated should be 0";
656
- PercentDeltaConditions["original0"] = "original is 0";
657
- })(PercentDeltaConditions || (PercentDeltaConditions = {}));
658
- var calculatePercentDeltaConditions = (_b$2 = {},
659
- _b$2[PercentDeltaConditions.recalculated0] = function (original, recalculated) { return original > 0 && recalculated === 0; },
660
- _b$2[PercentDeltaConditions.original0] = function (original, recalculated) { return original === 0 && recalculated > 0; },
661
- _b$2);
662
- var calculatePercentDeltaResult = (_c$2 = {},
663
- _c$2[PercentDeltaConditions.recalculated0] = function (original, recalculated) { return (recalculated - original) / (original + 1); },
664
- // Always considered an error so deliberately exceed SUCCESS_CRITERION_MAX_DELTA_PERCENT
665
- _c$2[PercentDeltaConditions.original0] = function (original, recalculated) { return Math.sign(recalculated - original); },
666
- _c$2.default = function (original, recalculated) { return (recalculated - original) / original; },
667
- _c$2);
668
- var calculatePercentDelta = function (recalculated, original) {
669
- var matchingCondition = Object.values(PercentDeltaConditions).find(function (value) { return calculatePercentDeltaConditions[value](original, recalculated); }) || 'default';
670
- return calculatePercentDeltaResult[matchingCondition](original, recalculated) * 100;
671
- };
672
- var customDeltaFuncs = (_d$2 = {},
673
- _d$2[exports.DeltaDisplayType.percent] = calculatePercentDelta,
674
- _d$2);
675
- var evaluateSuccess = function (deltaValue) { return Math.abs(deltaValue) < SUCCESS_CRITERION_MAX_DELTA_PERCENT
676
- ? exports.DeltaColour.Success
677
- : Math.abs(deltaValue) < WARNING_CRITERION_MAX_DELTA_PERCENT
678
- ? exports.DeltaColour.Warning
679
- : exports.DeltaColour.Danger; };
680
-
681
- /* eslint-disable @angular-eslint/directive-selector */
682
- var BindOnceDirective = /** @class */ (function () {
683
- function BindOnceDirective(templateRef, viewContainerRef) {
684
- this.embeddedViewRef = viewContainerRef.createEmbeddedView(templateRef);
685
- this.embeddedViewRef.detach();
686
- }
687
- BindOnceDirective.prototype.ngOnChanges = function () {
688
- this.embeddedViewRef.detectChanges();
689
- };
690
- return BindOnceDirective;
691
- }());
692
- BindOnceDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BindOnceDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
693
- BindOnceDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BindOnceDirective, selector: "[bindOnce]", inputs: { bindOnce: "bindOnce" }, usesOnChanges: true, ngImport: i0__namespace });
694
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BindOnceDirective, decorators: [{
695
- type: i0.Directive,
696
- args: [{
697
- selector: '[bindOnce]'
698
- }]
699
- }], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ViewContainerRef }]; }, propDecorators: { bindOnce: [{
700
- type: i0.Input
701
- }] } });
702
-
703
- var PrecisionPipe = /** @class */ (function () {
704
- function PrecisionPipe() {
780
+ var EllipsisPipe = /** @class */ (function () {
781
+ function EllipsisPipe() {
705
782
  }
706
- PrecisionPipe.prototype.transform = function (value, precision) {
707
- return utils.isUndefined(value) ?
708
- null : (utils.isNumber(value) ?
709
- ("" + utils.toPrecision(parseFloat("" + value), parseInt("" + precision, 10))).replace(/\.00$/, '') :
710
- value);
783
+ EllipsisPipe.prototype.transform = function (value, maxLength) {
784
+ return ellipsis("" + value, maxLength);
711
785
  };
712
- return PrecisionPipe;
786
+ return EllipsisPipe;
713
787
  }());
714
- PrecisionPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PrecisionPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
715
- PrecisionPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PrecisionPipe, name: "precision" });
716
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PrecisionPipe, decorators: [{
788
+ EllipsisPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EllipsisPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
789
+ EllipsisPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EllipsisPipe, name: "ellipsis" });
790
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EllipsisPipe, decorators: [{
717
791
  type: i0.Pipe,
718
792
  args: [{
719
- name: 'precision'
793
+ name: 'ellipsis'
720
794
  }]
721
795
  }] });
722
796
 
723
- var BlankNodeValueDeltaComponent = /** @class */ (function () {
724
- function BlankNodeValueDeltaComponent() {
725
- this.displayType = exports.DeltaDisplayType.percent;
726
- this.DeltaDisplayType = exports.DeltaDisplayType;
727
- }
728
- Object.defineProperty(BlankNodeValueDeltaComponent.prototype, "hide", {
729
- get: function () {
730
- return emptyValue(this.value) || emptyValue(this.originalValue);
731
- },
732
- enumerable: false,
733
- configurable: true
734
- });
735
- Object.defineProperty(BlankNodeValueDeltaComponent.prototype, "delta", {
736
- get: function () {
737
- return delta(this.value, this.originalValue, this.displayType, customDeltaFuncs);
738
- },
739
- enumerable: false,
740
- configurable: true
741
- });
742
- Object.defineProperty(BlankNodeValueDeltaComponent.prototype, "color", {
743
- get: function () {
744
- return this.displayType === exports.DeltaDisplayType.percent ? evaluateSuccess(this.delta) : '';
745
- },
746
- enumerable: false,
747
- configurable: true
748
- });
749
- return BlankNodeValueDeltaComponent;
750
- }());
751
- BlankNodeValueDeltaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BlankNodeValueDeltaComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
752
- BlankNodeValueDeltaComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BlankNodeValueDeltaComponent, selector: "he-blank-node-value-delta", inputs: { value: "value", originalValue: "originalValue", displayType: "displayType" }, ngImport: i0__namespace, template: "<small [class.is-hidden]=\"hide\">\n <span class=\"has-text-{{color}}\">\n <span *ngIf=\"delta > 0\">+</span>\n <ng-container [ngSwitch]=\"displayType\">\n <ng-container *ngSwitchCase=\"DeltaDisplayType.absolute\">\n <span *bindOnce=\"delta\">{{delta | precision:3}}</span>\n </ng-container>\n <ng-container *ngSwitchCase=\"DeltaDisplayType.percent\">\n <span *bindOnce=\"delta\">{{delta | number:'1.0-2'}}</span>\n <span>%</span>\n </ng-container>\n </ng-container>\n </span>\n</small>\n", styles: [""], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: BindOnceDirective, selector: "[bindOnce]", inputs: ["bindOnce"] }], pipes: { "precision": PrecisionPipe, "number": i3__namespace.DecimalPipe } });
753
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BlankNodeValueDeltaComponent, decorators: [{
754
- type: i0.Component,
755
- args: [{
756
- selector: 'he-blank-node-value-delta',
757
- templateUrl: './blank-node-value-delta.component.html',
758
- styleUrls: ['./blank-node-value-delta.component.scss']
759
- }]
760
- }], propDecorators: { value: [{
761
- type: i0.Input
762
- }], originalValue: [{
763
- type: i0.Input
764
- }], displayType: [{
765
- type: i0.Input
766
- }] } });
767
-
768
- var BlankNodeDiffsComponent = /** @class */ (function () {
769
- function BlankNodeDiffsComponent() {
770
- this.originalValues = [];
771
- this.recalculatedValues = [];
772
- this.propertyValue = propertyValue$1;
773
- this.values = [];
774
- }
775
- BlankNodeDiffsComponent.prototype.ngOnInit = function () {
776
- this.values = formatDiffValues(this.originalValues, this.recalculatedValues);
777
- };
778
- return BlankNodeDiffsComponent;
779
- }());
780
- BlankNodeDiffsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BlankNodeDiffsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
781
- BlankNodeDiffsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BlankNodeDiffsComponent, selector: "he-blank-node-diffs", inputs: { originalValues: "originalValues", recalculatedValues: "recalculatedValues" }, ngImport: i0__namespace, template: "<div class=\"table-container data-table-container mb-1\">\n <table class=\"table is-narrow data-table has-children-3\" *bindOnce=\"values\">\n <thead>\n <tr>\n <th class=\"width-auto\"></th>\n <th>Original</th>\n <th>Recalculated</th>\n <th>Difference</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let value of values\"\n [class.has-background-light]=\"!!value.original && value.original !== value.recalculated\"\n >\n <td class=\"width-auto\" [attr.title]=\"value.term.name\">\n <ng-container *ngTemplateOutlet=\"termLink; context: {$implicit: value.term}\"></ng-container>\n </td>\n <td>\n <span>{{value.original === undefined ? '-' : value.original}}</span>\n </td>\n <td>\n <span>{{value.recalculated === undefined ? '-' : value.recalculated}}</span>\n </td>\n <td class=\"is-nowrap\">\n <he-blank-node-value-delta\n [value]=\"value.recalculated\"\n [originalValue]=\"value.original\"\n ></he-blank-node-value-delta>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n\n<ng-template #termLink let-term>\n <a [routerLink]=\"['/', 'term', term['@id']]\" target=\"_blank\">\n <span class=\"is-nowrap has-text-ellipsis\">{{term.name}}</span>\n </a>\n</ng-template>\n", styles: ["table.data-table th:first-child,table.data-table td:first-child{width:auto}\n"], components: [{ type: BlankNodeValueDeltaComponent, selector: "he-blank-node-value-delta", inputs: ["value", "originalValue", "displayType"] }], directives: [{ type: BindOnceDirective, selector: "[bindOnce]", inputs: ["bindOnce"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }] });
782
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BlankNodeDiffsComponent, decorators: [{
783
- type: i0.Component,
784
- args: [{
785
- selector: 'he-blank-node-diffs',
786
- templateUrl: './blank-node-diffs.component.html',
787
- styleUrls: ['./blank-node-diffs.component.scss']
788
- }]
789
- }], propDecorators: { originalValues: [{
790
- type: i0.Input
791
- }], recalculatedValues: [{
792
- type: i0.Input
793
- }] } });
794
-
795
- var _a$4, _b$1, _c$1;
797
+ var _a$5, _b$2, _c$2;
796
798
  var termProperties = function (term) { return Object.keys(term).filter(function (key) { return !schema.isExpandable(term[key]) && ![
797
799
  'pinned', 'expanded', 'extended', 'selected', 'loading',
798
800
  '_score', '@type', '@id', '@context', 'createdAt',
@@ -818,20 +820,20 @@
818
820
  lng: longitude
819
821
  });
820
822
  };
821
- var termTypeToLabel = (_a$4 = {},
822
- _a$4[schema.TermTermType.methodEmissionResourceUse] = 'Method (Emissions)',
823
- _a$4[schema.TermTermType.methodMeasurement] = 'Method (Measurement)',
824
- _a$4[schema.TermTermType.pesticideAI] = 'Pesticide Active Ingredient',
825
- _a$4[schema.TermTermType.standardsLabels] = 'Standards & Labels',
826
- _a$4[schema.TermTermType.usdaSoilType] = 'USDA Soil Type',
827
- _a$4);
823
+ var termTypeToLabel = (_a$5 = {},
824
+ _a$5[schema.TermTermType.methodEmissionResourceUse] = 'Method (Emissions)',
825
+ _a$5[schema.TermTermType.methodMeasurement] = 'Method (Measurement)',
826
+ _a$5[schema.TermTermType.pesticideAI] = 'Pesticide Active Ingredient',
827
+ _a$5[schema.TermTermType.standardsLabels] = 'Standards & Labels',
828
+ _a$5[schema.TermTermType.usdaSoilType] = 'USDA Soil Type',
829
+ _a$5);
828
830
  var termTypeLabel = function (type) {
829
831
  if (type === void 0) { type = 'N/A'; }
830
832
  return type in termTypeToLabel ? termTypeToLabel[type] : keyToLabel(type);
831
833
  };
832
834
  var termTypesToChildren = function (termTypes) { return termTypes.map(function (termType) { return ({ label: termTypeLabel(termType), termType: termType }); }); };
833
- var groups = Object.freeze((_b$1 = {},
834
- _b$1[schema.TermTermType.emission] = {
835
+ var groups = Object.freeze((_b$2 = {},
836
+ _b$2[schema.TermTermType.emission] = {
835
837
  label: 'Emissions & Resource Use',
836
838
  termType: 'Emissions & Resource Use',
837
839
  children: termTypesToChildren([
@@ -843,12 +845,12 @@
843
845
  schema.TermTermType.methodEmissionResourceUse
844
846
  ])
845
847
  },
846
- _b$1[schema.TermTermType.region] = {
848
+ _b$2[schema.TermTermType.region] = {
847
849
  label: termTypeLabel(schema.TermTermType.region),
848
850
  termType: schema.TermTermType.region,
849
851
  children: []
850
852
  },
851
- _b$1.infrastructure = {
853
+ _b$2.infrastructure = {
852
854
  label: 'Infrastructure & Equipment',
853
855
  termType: 'Infrastructure & Equipment',
854
856
  children: termTypesToChildren([
@@ -859,7 +861,7 @@
859
861
  schema.TermTermType.machinery
860
862
  ])
861
863
  },
862
- _b$1.input = {
864
+ _b$2.input = {
863
865
  label: 'Inputs',
864
866
  termType: 'Inputs',
865
867
  children: termTypesToChildren([
@@ -877,7 +879,7 @@
877
879
  schema.TermTermType.water
878
880
  ])
879
881
  },
880
- _b$1[schema.TermTermType.measurement] = {
882
+ _b$2[schema.TermTermType.measurement] = {
881
883
  label: 'Measurements',
882
884
  termType: 'Measurements',
883
885
  children: termTypesToChildren([
@@ -888,7 +890,7 @@
888
890
  schema.TermTermType.methodMeasurement
889
891
  ])
890
892
  },
891
- _b$1.practice = {
893
+ _b$2.practice = {
892
894
  label: 'Practices',
893
895
  termType: 'Production Practices',
894
896
  children: termTypesToChildren([
@@ -906,7 +908,7 @@
906
908
  schema.TermTermType.waterRegime,
907
909
  ])
908
910
  },
909
- _b$1.product = {
911
+ _b$2.product = {
910
912
  label: 'Products',
911
913
  termType: 'Products',
912
914
  children: termTypesToChildren([
@@ -919,12 +921,12 @@
919
921
  schema.TermTermType.processedFood
920
922
  ])
921
923
  },
922
- _b$1[schema.TermTermType.property] = {
924
+ _b$2[schema.TermTermType.property] = {
923
925
  label: termTypeLabel(schema.TermTermType.property),
924
926
  termType: schema.TermTermType.property,
925
927
  children: []
926
928
  },
927
- _b$1));
929
+ _b$2));
928
930
  var termTypeGroups = [
929
931
  groups.property,
930
932
  groups.region,
@@ -935,10 +937,10 @@
935
937
  groups.measurement,
936
938
  groups.infrastructure
937
939
  ];
938
- var termToParent = (_c$1 = {},
939
- _c$1[schema.TermTermType.property] = 'Properties',
940
- _c$1[schema.TermTermType.region] = 'Geographies',
941
- _c$1);
940
+ var termToParent = (_c$2 = {},
941
+ _c$2[schema.TermTermType.property] = 'Properties',
942
+ _c$2[schema.TermTermType.region] = 'Geographies',
943
+ _c$2);
942
944
  var termChildToParent = function (termType) { return termTypeGroups.find(function (_a) {
943
945
  var children = _a.children;
944
946
  return (children || []).some(function (child) { return child.termType === termType; });
@@ -993,6 +995,264 @@
993
995
  schema.TermTermType.standardsLabels
994
996
  ];
995
997
 
998
+ var KeyToLabelPipe = /** @class */ (function () {
999
+ function KeyToLabelPipe() {
1000
+ }
1001
+ KeyToLabelPipe.prototype.transform = function (value) {
1002
+ // using termTypeLabel here which defaults to `keyToLabel` function
1003
+ return termTypeLabel(value);
1004
+ };
1005
+ return KeyToLabelPipe;
1006
+ }());
1007
+ KeyToLabelPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyToLabelPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1008
+ KeyToLabelPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyToLabelPipe, name: "keyToLabel" });
1009
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyToLabelPipe, decorators: [{
1010
+ type: i0.Pipe,
1011
+ args: [{
1012
+ name: 'keyToLabel'
1013
+ }]
1014
+ }] });
1015
+
1016
+ var KeysPipe = /** @class */ (function () {
1017
+ function KeysPipe() {
1018
+ }
1019
+ KeysPipe.prototype.transform = function (value, sort) {
1020
+ if (sort === void 0) { sort = false; }
1021
+ var keys = Object.keys(value).map(function (key) { return ({ key: key, value: value[key] }); });
1022
+ if (sort) {
1023
+ keys.sort(function (a, b) { return a.key.localeCompare(b.key); });
1024
+ }
1025
+ return keys;
1026
+ };
1027
+ return KeysPipe;
1028
+ }());
1029
+ KeysPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeysPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1030
+ KeysPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeysPipe, name: "keys" });
1031
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeysPipe, decorators: [{
1032
+ type: i0.Pipe,
1033
+ args: [{
1034
+ name: 'keys'
1035
+ }]
1036
+ }] });
1037
+
1038
+ var PluralizePipe = /** @class */ (function () {
1039
+ function PluralizePipe() {
1040
+ }
1041
+ PluralizePipe.prototype.transform = function (value, times) {
1042
+ if (times === void 0) { times = 0; }
1043
+ return pluralize__namespace(value, times);
1044
+ };
1045
+ return PluralizePipe;
1046
+ }());
1047
+ PluralizePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PluralizePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1048
+ PluralizePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PluralizePipe, name: "pluralize" });
1049
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PluralizePipe, decorators: [{
1050
+ type: i0.Pipe,
1051
+ args: [{
1052
+ name: 'pluralize'
1053
+ }]
1054
+ }] });
1055
+
1056
+ var PrecisionPipe = /** @class */ (function () {
1057
+ function PrecisionPipe() {
1058
+ }
1059
+ PrecisionPipe.prototype.transform = function (value, precision) {
1060
+ return utils.isUndefined(value) ?
1061
+ null : (utils.isNumber(value) ?
1062
+ ("" + utils.toPrecision(parseFloat("" + value), parseInt("" + precision, 10))).replace(/\.00$/, '') :
1063
+ value);
1064
+ };
1065
+ return PrecisionPipe;
1066
+ }());
1067
+ PrecisionPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PrecisionPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1068
+ PrecisionPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PrecisionPipe, name: "precision" });
1069
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PrecisionPipe, decorators: [{
1070
+ type: i0.Pipe,
1071
+ args: [{
1072
+ name: 'precision'
1073
+ }]
1074
+ }] });
1075
+
1076
+ var components$7 = [
1077
+ SocialTagsComponent,
1078
+ ToastComponent,
1079
+ BindOnceDirective,
1080
+ DefaultPipe,
1081
+ EllipsisPipe,
1082
+ KeysPipe,
1083
+ PluralizePipe,
1084
+ KeyToLabelPipe,
1085
+ PrecisionPipe
1086
+ ];
1087
+ var HeCommonLightModule = /** @class */ (function () {
1088
+ function HeCommonLightModule() {
1089
+ }
1090
+ return HeCommonLightModule;
1091
+ }());
1092
+ HeCommonLightModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeCommonLightModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1093
+ HeCommonLightModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeCommonLightModule, declarations: [SocialTagsComponent,
1094
+ ToastComponent,
1095
+ BindOnceDirective,
1096
+ DefaultPipe,
1097
+ EllipsisPipe,
1098
+ KeysPipe,
1099
+ PluralizePipe,
1100
+ KeyToLabelPipe,
1101
+ PrecisionPipe], imports: [i3.CommonModule, i1$2.FormsModule, i4.RouterModule,
1102
+ HeFontawesomeModule], exports: [HeFontawesomeModule, SocialTagsComponent,
1103
+ ToastComponent,
1104
+ BindOnceDirective,
1105
+ DefaultPipe,
1106
+ EllipsisPipe,
1107
+ KeysPipe,
1108
+ PluralizePipe,
1109
+ KeyToLabelPipe,
1110
+ PrecisionPipe] });
1111
+ HeCommonLightModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeCommonLightModule, imports: [[
1112
+ i3.CommonModule, i1$2.FormsModule, i4.RouterModule,
1113
+ HeFontawesomeModule
1114
+ ], HeFontawesomeModule] });
1115
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeCommonLightModule, decorators: [{
1116
+ type: i0.NgModule,
1117
+ args: [{
1118
+ declarations: components$7,
1119
+ exports: __spreadArray([
1120
+ HeFontawesomeModule
1121
+ ], __read(components$7)),
1122
+ imports: [
1123
+ i3.CommonModule, i1$2.FormsModule, i4.RouterModule,
1124
+ HeFontawesomeModule
1125
+ ]
1126
+ }]
1127
+ }] });
1128
+
1129
+ var _a$4, _b$1, _c$1, _d$2;
1130
+ var SUCCESS_CRITERION_MAX_DELTA_PERCENT = 5;
1131
+ var WARNING_CRITERION_MAX_DELTA_PERCENT = 20;
1132
+ exports.DeltaColour = void 0;
1133
+ (function (DeltaColour) {
1134
+ DeltaColour["Success"] = "success";
1135
+ DeltaColour["Warning"] = "warning";
1136
+ DeltaColour["Danger"] = "danger";
1137
+ })(exports.DeltaColour || (exports.DeltaColour = {}));
1138
+ exports.DeltaDisplayType = void 0;
1139
+ (function (DeltaDisplayType) {
1140
+ DeltaDisplayType["absolute"] = "absolute";
1141
+ DeltaDisplayType["percent"] = "percent";
1142
+ })(exports.DeltaDisplayType || (exports.DeltaDisplayType = {}));
1143
+ var deltaPerType = (_a$4 = {},
1144
+ _a$4[exports.DeltaDisplayType.absolute] = function (value, original) { return value - original; },
1145
+ _a$4[exports.DeltaDisplayType.percent] = function (value, original) { return ((value - original) / original) * 100; },
1146
+ _a$4);
1147
+ var roundValue = function (value) { return +("" + value).substring(0, 10); };
1148
+ var delta = function (value, originalValue, displayType, mapping) {
1149
+ if (displayType === void 0) { displayType = exports.DeltaDisplayType.percent; }
1150
+ var vvalue = roundValue(propertyValue$1(value));
1151
+ var voriginalValue = roundValue(propertyValue$1(originalValue));
1152
+ var deltaFuncs = Object.assign(Object.assign({}, deltaPerType), mapping);
1153
+ var diff = vvalue === voriginalValue ? 0 : deltaFuncs[displayType](vvalue, voriginalValue);
1154
+ return Number.isFinite(diff) ? (diff === -0 ? 0 : diff) : 0;
1155
+ };
1156
+ var PercentDeltaConditions;
1157
+ (function (PercentDeltaConditions) {
1158
+ PercentDeltaConditions["recalculated0"] = "recalculated should be 0";
1159
+ PercentDeltaConditions["original0"] = "original is 0";
1160
+ })(PercentDeltaConditions || (PercentDeltaConditions = {}));
1161
+ var calculatePercentDeltaConditions = (_b$1 = {},
1162
+ _b$1[PercentDeltaConditions.recalculated0] = function (original, recalculated) { return original > 0 && recalculated === 0; },
1163
+ _b$1[PercentDeltaConditions.original0] = function (original, recalculated) { return original === 0 && recalculated > 0; },
1164
+ _b$1);
1165
+ var calculatePercentDeltaResult = (_c$1 = {},
1166
+ _c$1[PercentDeltaConditions.recalculated0] = function (original, recalculated) { return (recalculated - original) / (original + 1); },
1167
+ // Always considered an error so deliberately exceed SUCCESS_CRITERION_MAX_DELTA_PERCENT
1168
+ _c$1[PercentDeltaConditions.original0] = function (original, recalculated) { return Math.sign(recalculated - original); },
1169
+ _c$1.default = function (original, recalculated) { return (recalculated - original) / original; },
1170
+ _c$1);
1171
+ var calculatePercentDelta = function (recalculated, original) {
1172
+ var matchingCondition = Object.values(PercentDeltaConditions).find(function (value) { return calculatePercentDeltaConditions[value](original, recalculated); }) || 'default';
1173
+ return calculatePercentDeltaResult[matchingCondition](original, recalculated) * 100;
1174
+ };
1175
+ var customDeltaFuncs = (_d$2 = {},
1176
+ _d$2[exports.DeltaDisplayType.percent] = calculatePercentDelta,
1177
+ _d$2);
1178
+ var evaluateSuccess = function (deltaValue) { return Math.abs(deltaValue) < SUCCESS_CRITERION_MAX_DELTA_PERCENT
1179
+ ? exports.DeltaColour.Success
1180
+ : Math.abs(deltaValue) < WARNING_CRITERION_MAX_DELTA_PERCENT
1181
+ ? exports.DeltaColour.Warning
1182
+ : exports.DeltaColour.Danger; };
1183
+
1184
+ var BlankNodeValueDeltaComponent = /** @class */ (function () {
1185
+ function BlankNodeValueDeltaComponent() {
1186
+ this.displayType = exports.DeltaDisplayType.percent;
1187
+ this.DeltaDisplayType = exports.DeltaDisplayType;
1188
+ }
1189
+ Object.defineProperty(BlankNodeValueDeltaComponent.prototype, "hide", {
1190
+ get: function () {
1191
+ return emptyValue(this.value) || emptyValue(this.originalValue);
1192
+ },
1193
+ enumerable: false,
1194
+ configurable: true
1195
+ });
1196
+ Object.defineProperty(BlankNodeValueDeltaComponent.prototype, "delta", {
1197
+ get: function () {
1198
+ return delta(this.value, this.originalValue, this.displayType, customDeltaFuncs);
1199
+ },
1200
+ enumerable: false,
1201
+ configurable: true
1202
+ });
1203
+ Object.defineProperty(BlankNodeValueDeltaComponent.prototype, "color", {
1204
+ get: function () {
1205
+ return this.displayType === exports.DeltaDisplayType.percent ? evaluateSuccess(this.delta) : '';
1206
+ },
1207
+ enumerable: false,
1208
+ configurable: true
1209
+ });
1210
+ return BlankNodeValueDeltaComponent;
1211
+ }());
1212
+ BlankNodeValueDeltaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BlankNodeValueDeltaComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1213
+ BlankNodeValueDeltaComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BlankNodeValueDeltaComponent, selector: "he-blank-node-value-delta", inputs: { value: "value", originalValue: "originalValue", displayType: "displayType" }, ngImport: i0__namespace, template: "<small [class.is-hidden]=\"hide\">\n <span class=\"has-text-{{color}}\">\n <span *ngIf=\"delta > 0\">+</span>\n <ng-container [ngSwitch]=\"displayType\">\n <ng-container *ngSwitchCase=\"DeltaDisplayType.absolute\">\n <span *bindOnce=\"delta\">{{delta | precision:3}}</span>\n </ng-container>\n <ng-container *ngSwitchCase=\"DeltaDisplayType.percent\">\n <span *bindOnce=\"delta\">{{delta | number:'1.0-2'}}</span>\n <span>%</span>\n </ng-container>\n </ng-container>\n </span>\n</small>\n", styles: [""], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: BindOnceDirective, selector: "[bindOnce]", inputs: ["bindOnce"] }], pipes: { "precision": PrecisionPipe, "number": i3__namespace.DecimalPipe } });
1214
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BlankNodeValueDeltaComponent, decorators: [{
1215
+ type: i0.Component,
1216
+ args: [{
1217
+ selector: 'he-blank-node-value-delta',
1218
+ templateUrl: './blank-node-value-delta.component.html',
1219
+ styleUrls: ['./blank-node-value-delta.component.scss']
1220
+ }]
1221
+ }], propDecorators: { value: [{
1222
+ type: i0.Input
1223
+ }], originalValue: [{
1224
+ type: i0.Input
1225
+ }], displayType: [{
1226
+ type: i0.Input
1227
+ }] } });
1228
+
1229
+ var BlankNodeDiffsComponent = /** @class */ (function () {
1230
+ function BlankNodeDiffsComponent() {
1231
+ this.originalValues = [];
1232
+ this.recalculatedValues = [];
1233
+ this.propertyValue = propertyValue$1;
1234
+ this.values = [];
1235
+ }
1236
+ BlankNodeDiffsComponent.prototype.ngOnInit = function () {
1237
+ this.values = formatDiffValues(this.originalValues, this.recalculatedValues);
1238
+ };
1239
+ return BlankNodeDiffsComponent;
1240
+ }());
1241
+ BlankNodeDiffsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BlankNodeDiffsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1242
+ BlankNodeDiffsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BlankNodeDiffsComponent, selector: "he-blank-node-diffs", inputs: { originalValues: "originalValues", recalculatedValues: "recalculatedValues" }, ngImport: i0__namespace, template: "<div class=\"table-container data-table-container mb-1\">\n <table class=\"table is-narrow data-table has-children-3\" *bindOnce=\"values\">\n <thead>\n <tr>\n <th class=\"width-auto\"></th>\n <th>Original</th>\n <th>Recalculated</th>\n <th>Difference</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let value of values\"\n [class.has-background-light]=\"!!value.original && value.original !== value.recalculated\"\n >\n <td class=\"width-auto\" [attr.title]=\"value.term.name\">\n <ng-container *ngTemplateOutlet=\"termLink; context: {$implicit: value.term}\"></ng-container>\n </td>\n <td>\n <span>{{value.original === undefined ? '-' : value.original}}</span>\n </td>\n <td>\n <span>{{value.recalculated === undefined ? '-' : value.recalculated}}</span>\n </td>\n <td class=\"is-nowrap\">\n <he-blank-node-value-delta\n [value]=\"value.recalculated\"\n [originalValue]=\"value.original\"\n ></he-blank-node-value-delta>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n\n<ng-template #termLink let-term>\n <a [routerLink]=\"['/', 'term', term['@id']]\" target=\"_blank\">\n <span class=\"is-nowrap has-text-ellipsis\">{{term.name}}</span>\n </a>\n</ng-template>\n", styles: ["table.data-table th:first-child,table.data-table td:first-child{width:auto}\n"], components: [{ type: BlankNodeValueDeltaComponent, selector: "he-blank-node-value-delta", inputs: ["value", "originalValue", "displayType"] }], directives: [{ type: BindOnceDirective, selector: "[bindOnce]", inputs: ["bindOnce"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }] });
1243
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BlankNodeDiffsComponent, decorators: [{
1244
+ type: i0.Component,
1245
+ args: [{
1246
+ selector: 'he-blank-node-diffs',
1247
+ templateUrl: './blank-node-diffs.component.html',
1248
+ styleUrls: ['./blank-node-diffs.component.scss']
1249
+ }]
1250
+ }], propDecorators: { originalValues: [{
1251
+ type: i0.Input
1252
+ }], recalculatedValues: [{
1253
+ type: i0.Input
1254
+ }] } });
1255
+
996
1256
  var HE_API_BASE_URL = new i0.InjectionToken('HE_API_BASE_URL');
997
1257
  var HeCommonService = /** @class */ (function () {
998
1258
  function HeCommonService(_apiBaseUrl) {
@@ -1137,14 +1397,14 @@
1137
1397
  };
1138
1398
  return HeNodeService;
1139
1399
  }());
1140
- HeNodeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeNodeService, deps: [{ token: i1__namespace$1.HttpClient }, { token: HeAuthService }, { token: HeCommonService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1400
+ HeNodeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeNodeService, deps: [{ token: i1__namespace$2.HttpClient }, { token: HeAuthService }, { token: HeCommonService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1141
1401
  HeNodeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeNodeService, providedIn: 'root' });
1142
1402
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeNodeService, decorators: [{
1143
1403
  type: i0.Injectable,
1144
1404
  args: [{
1145
1405
  providedIn: 'root'
1146
1406
  }]
1147
- }], ctorParameters: function () { return [{ type: i1__namespace$1.HttpClient }, { type: HeAuthService }, { type: HeCommonService }]; } });
1407
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }, { type: HeAuthService }, { type: HeCommonService }]; } });
1148
1408
 
1149
1409
  var gitUrl$1 = function () { return gitHome + "/hestia-aggregation-engine/-/blob/" + gitBranch(); };
1150
1410
  var rawUrl$1 = function () { return gitRawBaseUrl + "/hestia-aggregation-engine/-/raw/" + gitBranch(); };
@@ -1243,14 +1503,14 @@
1243
1503
  };
1244
1504
  return HeAggregationEngineService;
1245
1505
  }());
1246
- HeAggregationEngineService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeAggregationEngineService, deps: [{ token: i1__namespace$1.HttpClient }, { token: HeNodeService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1506
+ HeAggregationEngineService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeAggregationEngineService, deps: [{ token: i1__namespace$2.HttpClient }, { token: HeNodeService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1247
1507
  HeAggregationEngineService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeAggregationEngineService, providedIn: 'root' });
1248
1508
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeAggregationEngineService, decorators: [{
1249
1509
  type: i0.Injectable,
1250
1510
  args: [{
1251
1511
  providedIn: 'root'
1252
1512
  }]
1253
- }], ctorParameters: function () { return [{ type: i1__namespace$1.HttpClient }, { type: HeNodeService }]; } });
1513
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }, { type: HeNodeService }]; } });
1254
1514
 
1255
1515
  var HE_ORCHESTRATOR_BASE_URL = new i0.InjectionToken('HE_ORCHESTRATOR_BASE_URL');
1256
1516
  var gitUrl = function () { return gitHome + "/hestia-engine-models/-/blob/" + gitBranch(); };
@@ -1329,7 +1589,7 @@
1329
1589
  };
1330
1590
  return HeEngineService;
1331
1591
  }());
1332
- HeEngineService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeEngineService, deps: [{ token: HE_ORCHESTRATOR_BASE_URL }, { token: i1__namespace$1.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1592
+ HeEngineService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeEngineService, deps: [{ token: HE_ORCHESTRATOR_BASE_URL }, { token: i1__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1333
1593
  HeEngineService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeEngineService, providedIn: 'root' });
1334
1594
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeEngineService, decorators: [{
1335
1595
  type: i0.Injectable,
@@ -1340,7 +1600,7 @@
1340
1600
  return [{ type: undefined, decorators: [{
1341
1601
  type: i0.Inject,
1342
1602
  args: [HE_ORCHESTRATOR_BASE_URL]
1343
- }] }, { type: i1__namespace$1.HttpClient }];
1603
+ }] }, { type: i1__namespace$2.HttpClient }];
1344
1604
  } });
1345
1605
 
1346
1606
  var NodeKeyState;
@@ -1794,7 +2054,7 @@
1794
2054
  return MapsDrawingConfirmComponent;
1795
2055
  }());
1796
2056
  MapsDrawingConfirmComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapsDrawingConfirmComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1797
- MapsDrawingConfirmComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapsDrawingConfirmComponent, selector: "he-maps-drawing-confirm", inputs: { value: "value", modes: "modes", center: "center", zoom: "zoom" }, outputs: { closed: "closed" }, viewQueries: [{ propertyName: "map", first: true, predicate: i1$2.GoogleMap, descendants: true }], ngImport: i0__namespace, template: "<div class=\"modal is-large is-active\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">Draw on Map</p>\n <button class=\"delete\" aria-label=\"close\" (click)=\"closed.next(value)\"></button>\n </header>\n <section class=\"modal-card-body p-0\">\n <google-map\n height=\"100%\"\n width=\"100%\"\n [zoom]=\"zoom\"\n [center]=\"center\"\n [options]=\"options\"\n ></google-map>\n </section>\n <footer class=\"modal-card-foot\">\n <button class=\"button is-primary\" (click)=\"confirm()\">\n <span>Confirm</span>\n </button>\n <button class=\"button\" (click)=\"closed.next(value)\">\n <span>Close</span>\n </button>\n <button class=\"button is-danger is-outlined\" (click)=\"clear()\">\n <fa-icon class=\"mr-2\" icon=\"times\"></fa-icon>\n <span>Clear</span>\n </button>\n </footer>\n </div>\n</div>\n", styles: ["google-map{display:block;height:100%;max-height:calc(100vh - 146px);min-height:500px}\n"], components: [{ type: i1__namespace$2.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { type: i1__namespace.FaIconComponent, selector: "fa-icon", inputs: ["classes", "icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }] });
2057
+ MapsDrawingConfirmComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapsDrawingConfirmComponent, selector: "he-maps-drawing-confirm", inputs: { value: "value", modes: "modes", center: "center", zoom: "zoom" }, outputs: { closed: "closed" }, viewQueries: [{ propertyName: "map", first: true, predicate: i1$4.GoogleMap, descendants: true }], ngImport: i0__namespace, template: "<div class=\"modal is-large is-active\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">Draw on Map</p>\n <button class=\"delete\" aria-label=\"close\" (click)=\"closed.next(value)\"></button>\n </header>\n <section class=\"modal-card-body p-0\">\n <google-map\n height=\"100%\"\n width=\"100%\"\n [zoom]=\"zoom\"\n [center]=\"center\"\n [options]=\"options\"\n ></google-map>\n </section>\n <footer class=\"modal-card-foot\">\n <button class=\"button is-primary\" (click)=\"confirm()\">\n <span>Confirm</span>\n </button>\n <button class=\"button\" (click)=\"closed.next(value)\">\n <span>Close</span>\n </button>\n <button class=\"button is-danger is-outlined\" (click)=\"clear()\">\n <fa-icon class=\"mr-2\" icon=\"times\"></fa-icon>\n <span>Clear</span>\n </button>\n </footer>\n </div>\n</div>\n", styles: ["google-map{display:block;height:100%;max-height:calc(100vh - 146px);min-height:500px}\n"], components: [{ type: i1__namespace$3.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { type: i1__namespace.FaIconComponent, selector: "fa-icon", inputs: ["classes", "icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }] });
1798
2058
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapsDrawingConfirmComponent, decorators: [{
1799
2059
  type: i0.Component,
1800
2060
  args: [{
@@ -1804,7 +2064,7 @@
1804
2064
  }]
1805
2065
  }], propDecorators: { map: [{
1806
2066
  type: i0.ViewChild,
1807
- args: [i1$2.GoogleMap]
2067
+ args: [i1$4.GoogleMap]
1808
2068
  }], value: [{
1809
2069
  type: i0.Input
1810
2070
  }], modes: [{
@@ -1980,137 +2240,6 @@
1980
2240
  args: ['style.height']
1981
2241
  }] } });
1982
2242
 
1983
- var SocialTagsComponent = /** @class */ (function () {
1984
- function SocialTagsComponent(meta) {
1985
- this.meta = meta;
1986
- this.config = {};
1987
- this.classes = 'is-hidden';
1988
- }
1989
- SocialTagsComponent.prototype.ngOnInit = function () {
1990
- var _this = this;
1991
- this.meta.addTag({ charset: 'UTF-8' });
1992
- var config = Object.assign({ 'og:url': window.location.href.split('?')[0] }, this.config);
1993
- Object.keys(config).map(function (name) {
1994
- var content = config[name];
1995
- _this.meta.updateTag({ name: name, content: content });
1996
- if (name === 'og:description') {
1997
- _this.meta.updateTag({ name: 'description', content: content });
1998
- }
1999
- });
2000
- };
2001
- return SocialTagsComponent;
2002
- }());
2003
- SocialTagsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SocialTagsComponent, deps: [{ token: i1__namespace$3.Meta }], target: i0__namespace.ɵɵFactoryTarget.Component });
2004
- SocialTagsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SocialTagsComponent, selector: "he-social-tags", inputs: { config: "config" }, host: { properties: { "class": "this.classes" } }, ngImport: i0__namespace, template: "<span></span>\n", styles: [""] });
2005
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SocialTagsComponent, decorators: [{
2006
- type: i0.Component,
2007
- args: [{
2008
- selector: 'he-social-tags',
2009
- templateUrl: './social-tags.component.html',
2010
- styleUrls: ['./social-tags.component.scss']
2011
- }]
2012
- }], ctorParameters: function () { return [{ type: i1__namespace$3.Meta }]; }, propDecorators: { config: [{
2013
- type: i0.Input
2014
- }], classes: [{
2015
- type: i0.HostBinding,
2016
- args: ['class']
2017
- }] } });
2018
-
2019
- var toastId = 0;
2020
- var HeToastService = /** @class */ (function () {
2021
- function HeToastService() {
2022
- this.toasts = new rxjs.ReplaySubject(1);
2023
- }
2024
- HeToastService.prototype.success = function (message, duration) {
2025
- if (duration === void 0) { duration = 3000; }
2026
- this.toasts.next({
2027
- id: ++toastId,
2028
- message: message,
2029
- duration: duration,
2030
- color: 'success',
2031
- showRawMessage: true
2032
- });
2033
- };
2034
- HeToastService.prototype.error = function (message, showRawMessage, duration) {
2035
- if (showRawMessage === void 0) { showRawMessage = true; }
2036
- if (duration === void 0) { duration = 3000; }
2037
- this.toasts.next({
2038
- id: ++toastId,
2039
- message: ("" + message || '').trim(),
2040
- duration: duration,
2041
- color: 'danger',
2042
- showRawMessage: showRawMessage
2043
- });
2044
- };
2045
- return HeToastService;
2046
- }());
2047
- HeToastService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeToastService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2048
- HeToastService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeToastService, providedIn: 'root' });
2049
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeToastService, decorators: [{
2050
- type: i0.Injectable,
2051
- args: [{
2052
- providedIn: 'root'
2053
- }]
2054
- }] });
2055
-
2056
- var ToastComponent = /** @class */ (function () {
2057
- function ToastComponent(toastService) {
2058
- this.toastService = toastService;
2059
- this.subscriptions = [];
2060
- this.toasts = [];
2061
- }
2062
- ToastComponent.prototype.ngOnInit = function () {
2063
- var _this = this;
2064
- this.subscriptions.push(this.toastService.toasts.subscribe(function (toast) { return _this.add(toast); }));
2065
- };
2066
- ToastComponent.prototype.ngOnDestroy = function () {
2067
- this.subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
2068
- };
2069
- ToastComponent.prototype.add = function (toast) {
2070
- var _this = this;
2071
- this.toasts.push(toast);
2072
- if (toast.duration) {
2073
- toast.timeout = setTimeout(function () { return _this.dismiss(toast); }, toast.duration);
2074
- }
2075
- };
2076
- ToastComponent.prototype.dismiss = function (toast) {
2077
- this.toasts.splice(this.toasts.findIndex(function (val) { return val.id === toast.id; }), 1);
2078
- };
2079
- return ToastComponent;
2080
- }());
2081
- ToastComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastComponent, deps: [{ token: HeToastService }], target: i0__namespace.ɵɵFactoryTarget.Component });
2082
- ToastComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToastComponent, selector: "he-toast", ngImport: i0__namespace, template: "<div class=\"mb-3 columns is-centered is-vcentered\">\n <div class=\"notification is-{{toast.color}}\" role=\"alert\" *ngFor=\"let toast of toasts\">\n <button class=\"delete\" aria-label=\"delete\" (click)=\"dismiss(toast)\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <strong [ngSwitch]=\"toast.color\">\n <ng-container *ngSwitchCase=\"'danger'\">\n <ng-container [ngSwitch]=\"toast.message\">\n <span *ngSwitchCase=\"'Unauthorized'\">You are not allowed to perform this action.</span>\n <span *ngSwitchCase=\"'form-invalid'\">Please fix all the errors on this page.</span>\n <span *ngSwitchCase=\"'users-email-already-taken'\">Email already taken.</span>\n <span *ngSwitchCase=\"'users-auth-already-taken'\">Account already connected.</span>\n <span *ngSwitchDefault>\n <span *ngIf=\"toast.showRawMessage\">{{toast.message}}</span>\n <span [class.is-hidden]=\"toast.showRawMessage\">An unknown error occurred. Please try again later.</span>\n </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <span *ngIf=\"toast.showRawMessage\">{{toast.message}}</span>\n <span [class.is-hidden]=\"toast.showRawMessage\">An unknown error occurred. Please try again later.</span>\n </ng-container>\n </strong>\n </div>\n</div>\n", styles: [":host{bottom:0;position:fixed;width:100%}\n"], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2083
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToastComponent, decorators: [{
2084
- type: i0.Component,
2085
- args: [{
2086
- selector: 'he-toast',
2087
- templateUrl: './toast.component.html',
2088
- styleUrls: ['./toast.component.scss']
2089
- }]
2090
- }], ctorParameters: function () { return [{ type: HeToastService }]; } });
2091
-
2092
- var KeysPipe = /** @class */ (function () {
2093
- function KeysPipe() {
2094
- }
2095
- KeysPipe.prototype.transform = function (value, sort) {
2096
- if (sort === void 0) { sort = false; }
2097
- var keys = Object.keys(value).map(function (key) { return ({ key: key, value: value[key] }); });
2098
- if (sort) {
2099
- keys.sort(function (a, b) { return a.key.localeCompare(b.key); });
2100
- }
2101
- return keys;
2102
- };
2103
- return KeysPipe;
2104
- }());
2105
- KeysPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeysPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2106
- KeysPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeysPipe, name: "keys" });
2107
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeysPipe, decorators: [{
2108
- type: i0.Pipe,
2109
- args: [{
2110
- name: 'keys'
2111
- }]
2112
- }] });
2113
-
2114
2243
  var parsePropertyValue = function (value) { return utils.isNumber(value) ? +value : (utils.isBoolean(value) ? value.toString() === 'true' : value); };
2115
2244
  var parseResult = function (value) { return isNaN(value) ? '' : ("" + value).replace(',', '.'); };
2116
2245
  var UnitConverterComponent = /** @class */ (function () {
@@ -2219,47 +2348,6 @@
2219
2348
  args: ['document:click', ['$event']]
2220
2349
  }] } });
2221
2350
 
2222
- var shouldDefault = {
2223
- string: function (value) { return !value; },
2224
- number: function (value) { return !value && value !== 0; },
2225
- boolean: function (value) { return !value; },
2226
- object: function (value) { return !value || !Object.keys(value).length; },
2227
- undefined: function () { return true; }
2228
- };
2229
- var DefaultPipe = /** @class */ (function () {
2230
- function DefaultPipe() {
2231
- }
2232
- DefaultPipe.prototype.transform = function (value, defaultValue) {
2233
- return shouldDefault[typeof value](value) ? defaultValue : value;
2234
- };
2235
- return DefaultPipe;
2236
- }());
2237
- DefaultPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2238
- DefaultPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultPipe, name: "default" });
2239
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultPipe, decorators: [{
2240
- type: i0.Pipe,
2241
- args: [{
2242
- name: 'default'
2243
- }]
2244
- }] });
2245
-
2246
- var EllipsisPipe = /** @class */ (function () {
2247
- function EllipsisPipe() {
2248
- }
2249
- EllipsisPipe.prototype.transform = function (value, maxLength) {
2250
- return ellipsis("" + value, maxLength);
2251
- };
2252
- return EllipsisPipe;
2253
- }());
2254
- EllipsisPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EllipsisPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2255
- EllipsisPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EllipsisPipe, name: "ellipsis" });
2256
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EllipsisPipe, decorators: [{
2257
- type: i0.Pipe,
2258
- args: [{
2259
- name: 'ellipsis'
2260
- }]
2261
- }] });
2262
-
2263
2351
  var get$3 = require('lodash.get');
2264
2352
  var GetPipe = /** @class */ (function () {
2265
2353
  function GetPipe() {
@@ -2279,42 +2367,6 @@
2279
2367
  }]
2280
2368
  }] });
2281
2369
 
2282
- var KeyToLabelPipe = /** @class */ (function () {
2283
- function KeyToLabelPipe() {
2284
- }
2285
- KeyToLabelPipe.prototype.transform = function (value) {
2286
- // using termTypeLabel here which defaults to `keyToLabel` function
2287
- return termTypeLabel(value);
2288
- };
2289
- return KeyToLabelPipe;
2290
- }());
2291
- KeyToLabelPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyToLabelPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2292
- KeyToLabelPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyToLabelPipe, name: "keyToLabel" });
2293
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KeyToLabelPipe, decorators: [{
2294
- type: i0.Pipe,
2295
- args: [{
2296
- name: 'keyToLabel'
2297
- }]
2298
- }] });
2299
-
2300
- var PluralizePipe = /** @class */ (function () {
2301
- function PluralizePipe() {
2302
- }
2303
- PluralizePipe.prototype.transform = function (value, times) {
2304
- if (times === void 0) { times = 0; }
2305
- return pluralize__namespace(value, times);
2306
- };
2307
- return PluralizePipe;
2308
- }());
2309
- PluralizePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PluralizePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2310
- PluralizePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PluralizePipe, name: "pluralize" });
2311
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PluralizePipe, decorators: [{
2312
- type: i0.Pipe,
2313
- args: [{
2314
- name: 'pluralize'
2315
- }]
2316
- }] });
2317
-
2318
2370
  var restrictToType = {
2319
2371
  number: function (val) { return parseFloat(val) === +val ? val : false; }
2320
2372
  };
@@ -2436,18 +2488,9 @@
2436
2488
  UnitConverterComponent,
2437
2489
  BlankNodeDiffsComponent,
2438
2490
  TimesPipe,
2439
- ToastComponent,
2440
2491
  ClickOutsideDirective,
2441
- KeysPipe,
2442
- PrecisionPipe,
2443
- SocialTagsComponent,
2444
- DefaultPipe,
2445
2492
  SkeletonTextComponent,
2446
- PluralizePipe,
2447
- KeyToLabelPipe,
2448
- BindOnceDirective,
2449
- GetPipe,
2450
- EllipsisPipe
2493
+ GetPipe
2451
2494
  ];
2452
2495
  var HeCommonModule = /** @class */ (function () {
2453
2496
  function HeCommonModule() {
@@ -2468,23 +2511,14 @@
2468
2511
  UnitConverterComponent,
2469
2512
  BlankNodeDiffsComponent,
2470
2513
  TimesPipe,
2471
- ToastComponent,
2472
2514
  ClickOutsideDirective,
2473
- KeysPipe,
2474
- PrecisionPipe,
2475
- SocialTagsComponent,
2476
- DefaultPipe,
2477
2515
  SkeletonTextComponent,
2478
- PluralizePipe,
2479
- KeyToLabelPipe,
2480
- BindOnceDirective,
2481
- GetPipe,
2482
- EllipsisPipe], imports: [i3.CommonModule, i1$4.FormsModule, i4.RouterModule,
2516
+ GetPipe], imports: [i3.CommonModule, i1$2.FormsModule, i4.RouterModule,
2483
2517
  i10.NgbTypeaheadModule, i10.NgbTooltipModule, i10.NgbPopoverModule,
2484
- i1$2.GoogleMapsModule,
2485
- HeFontawesomeModule], exports: [i10.NgbTypeaheadModule, i10.NgbTooltipModule, i10.NgbPopoverModule,
2486
- i1$2.GoogleMapsModule,
2487
- HeFontawesomeModule, ClipboardComponent,
2518
+ i1$4.GoogleMapsModule,
2519
+ HeCommonLightModule], exports: [i10.NgbTypeaheadModule, i10.NgbTooltipModule, i10.NgbPopoverModule,
2520
+ i1$4.GoogleMapsModule,
2521
+ HeCommonLightModule, ClipboardComponent,
2488
2522
  PopoverComponent,
2489
2523
  PopoverConfirmComponent,
2490
2524
  TagsInputDirective,
@@ -2497,40 +2531,31 @@
2497
2531
  UnitConverterComponent,
2498
2532
  BlankNodeDiffsComponent,
2499
2533
  TimesPipe,
2500
- ToastComponent,
2501
2534
  ClickOutsideDirective,
2502
- KeysPipe,
2503
- PrecisionPipe,
2504
- SocialTagsComponent,
2505
- DefaultPipe,
2506
2535
  SkeletonTextComponent,
2507
- PluralizePipe,
2508
- KeyToLabelPipe,
2509
- BindOnceDirective,
2510
- GetPipe,
2511
- EllipsisPipe] });
2536
+ GetPipe] });
2512
2537
  HeCommonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeCommonModule, imports: [[
2513
- i3.CommonModule, i1$4.FormsModule, i4.RouterModule,
2538
+ i3.CommonModule, i1$2.FormsModule, i4.RouterModule,
2514
2539
  i10.NgbTypeaheadModule, i10.NgbTooltipModule, i10.NgbPopoverModule,
2515
- i1$2.GoogleMapsModule,
2516
- HeFontawesomeModule
2540
+ i1$4.GoogleMapsModule,
2541
+ HeCommonLightModule
2517
2542
  ], i10.NgbTypeaheadModule, i10.NgbTooltipModule, i10.NgbPopoverModule,
2518
- i1$2.GoogleMapsModule,
2519
- HeFontawesomeModule] });
2543
+ i1$4.GoogleMapsModule,
2544
+ HeCommonLightModule] });
2520
2545
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeCommonModule, decorators: [{
2521
2546
  type: i0.NgModule,
2522
2547
  args: [{
2523
2548
  declarations: components$6,
2524
2549
  exports: __spreadArray([
2525
2550
  i10.NgbTypeaheadModule, i10.NgbTooltipModule, i10.NgbPopoverModule,
2526
- i1$2.GoogleMapsModule,
2527
- HeFontawesomeModule
2551
+ i1$4.GoogleMapsModule,
2552
+ HeCommonLightModule
2528
2553
  ], __read(components$6)),
2529
2554
  imports: [
2530
- i3.CommonModule, i1$4.FormsModule, i4.RouterModule,
2555
+ i3.CommonModule, i1$2.FormsModule, i4.RouterModule,
2531
2556
  i10.NgbTypeaheadModule, i10.NgbTooltipModule, i10.NgbPopoverModule,
2532
- i1$2.GoogleMapsModule,
2533
- HeFontawesomeModule
2557
+ i1$4.GoogleMapsModule,
2558
+ HeCommonLightModule
2534
2559
  ]
2535
2560
  }]
2536
2561
  }] });
@@ -2562,14 +2587,14 @@
2562
2587
  };
2563
2588
  return HeMendeleyService;
2564
2589
  }());
2565
- HeMendeleyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeMendeleyService, deps: [{ token: i1__namespace$1.HttpClient }, { token: HeCommonService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2590
+ HeMendeleyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeMendeleyService, deps: [{ token: i1__namespace$2.HttpClient }, { token: HeCommonService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2566
2591
  HeMendeleyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeMendeleyService, providedIn: 'root' });
2567
2592
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeMendeleyService, decorators: [{
2568
2593
  type: i0.Injectable,
2569
2594
  args: [{
2570
2595
  providedIn: 'root'
2571
2596
  }]
2572
- }], ctorParameters: function () { return [{ type: i1__namespace$1.HttpClient }, { type: HeCommonService }]; } });
2597
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }, { type: HeCommonService }]; } });
2573
2598
 
2574
2599
  var _a$3, _b, _c, _d$1, _e;
2575
2600
  var searchableTypes = [
@@ -2913,14 +2938,14 @@
2913
2938
  };
2914
2939
  return HeSearchService;
2915
2940
  }());
2916
- HeSearchService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSearchService, deps: [{ token: i1__namespace$1.HttpClient }, { token: HeCommonService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2941
+ HeSearchService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSearchService, deps: [{ token: i1__namespace$2.HttpClient }, { token: HeCommonService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2917
2942
  HeSearchService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSearchService, providedIn: 'root' });
2918
2943
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSearchService, decorators: [{
2919
2944
  type: i0.Injectable,
2920
2945
  args: [{
2921
2946
  providedIn: 'root'
2922
2947
  }]
2923
- }], ctorParameters: function () { return [{ type: i1__namespace$1.HttpClient }, { type: HeCommonService }]; } });
2948
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }, { type: HeCommonService }]; } });
2924
2949
 
2925
2950
  var BibliographiesSearchConfirmComponent = /** @class */ (function () {
2926
2951
  function BibliographiesSearchConfirmComponent(formBuilder, mendeleyService, searchService) {
@@ -2935,7 +2960,7 @@
2935
2960
  this.loading = true;
2936
2961
  this.hasResults = false;
2937
2962
  this.formGroup = formBuilder.group({
2938
- search: ['', i1$4.Validators.required]
2963
+ search: ['', i1$2.Validators.required]
2939
2964
  });
2940
2965
  this.results = this.searchControl.valueChanges.pipe(operators.debounceTime(300), operators.distinctUntilChanged(), operators.tap(function () {
2941
2966
  _this.loading = true;
@@ -3033,10 +3058,10 @@
3033
3058
  return HeBibliographiesModule;
3034
3059
  }());
3035
3060
  HeBibliographiesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeBibliographiesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3036
- HeBibliographiesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeBibliographiesModule, declarations: [BibliographiesSearchConfirmComponent], imports: [i3.CommonModule, i1$4.ReactiveFormsModule,
3061
+ HeBibliographiesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeBibliographiesModule, declarations: [BibliographiesSearchConfirmComponent], imports: [i3.CommonModule, i1$2.ReactiveFormsModule,
3037
3062
  HeCommonModule], exports: [BibliographiesSearchConfirmComponent] });
3038
3063
  HeBibliographiesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeBibliographiesModule, imports: [[
3039
- i3.CommonModule, i1$4.ReactiveFormsModule,
3064
+ i3.CommonModule, i1$2.ReactiveFormsModule,
3040
3065
  HeCommonModule
3041
3066
  ]] });
3042
3067
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeBibliographiesModule, decorators: [{
@@ -3045,7 +3070,7 @@
3045
3070
  declarations: components$5,
3046
3071
  exports: components$5,
3047
3072
  imports: [
3048
- i3.CommonModule, i1$4.ReactiveFormsModule,
3073
+ i3.CommonModule, i1$2.ReactiveFormsModule,
3049
3074
  HeCommonModule
3050
3075
  ]
3051
3076
  }]
@@ -3299,14 +3324,14 @@
3299
3324
  ;
3300
3325
  return HeSchemaService;
3301
3326
  }());
3302
- HeSchemaService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSchemaService, deps: [{ token: i1__namespace$1.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3327
+ HeSchemaService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSchemaService, deps: [{ token: i1__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
3303
3328
  HeSchemaService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSchemaService, providedIn: 'root' });
3304
3329
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSchemaService, decorators: [{
3305
3330
  type: i0.Injectable,
3306
3331
  args: [{
3307
3332
  providedIn: 'root'
3308
3333
  }]
3309
- }], ctorParameters: function () { return [{ type: i1__namespace$1.HttpClient }]; } });
3334
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }]; } });
3310
3335
 
3311
3336
  var headerGroup = function (header) {
3312
3337
  var parts = header.split('.');
@@ -3508,7 +3533,7 @@
3508
3533
  });
3509
3534
  return NodeCsvExportConfirmComponent;
3510
3535
  }());
3511
- NodeCsvExportConfirmComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NodeCsvExportConfirmComponent, deps: [{ token: i1__namespace$3.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
3536
+ NodeCsvExportConfirmComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NodeCsvExportConfirmComponent, deps: [{ token: i1__namespace$1.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
3512
3537
  NodeCsvExportConfirmComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NodeCsvExportConfirmComponent, selector: "he-node-csv-export-confirm", inputs: { nodes: "nodes", filename: "filename", headerKeys: "headerKeys", extension: "extension", isUpload: "isUpload" }, outputs: { closed: "closed" }, ngImport: i0__namespace, template: "<div class=\"modal is-active\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">Export as CSV</p>\n <button class=\"delete\" aria-label=\"close\" (click)=\"closed.next(true)\"></button>\n </header>\n <section class=\"modal-card-body\">\n <div class=\"notification is-info\" role=\"alert\" *ngIf=\"isUpload\">\n <span>After Download, you can edit and</span>\n <a class=\"px-1\" routerLink=\"../\">upload the CSV file</a>\n <span>to submit your content on the Hestia platform, and your draft will remain unchanged.</span>\n\n <p>\n <span>Alternatively, you can import the CSV file right back by clicking on the \"Import from CSV\" button and selecting the exported file.</span>\n </p>\n </div>\n\n <ng-container *ngIf=\"!isUpload && includedNodes.length > 1\">\n <p class=\"mb-2\">\n <b>{{includedNodes.length}}</b>\n <span class=\"px-1\">Nodes will be included in your download.</span>\n <a (click)=\"showIncludeNodes = !showIncludeNodes\">\n <ng-container *ngIf=\"!showIncludeNodes\">Show list</ng-container>\n <ng-container *ngIf=\"showIncludeNodes\">Hide list</ng-container>\n </a>\n </p>\n\n <div class=\"table-container\" *ngIf=\"showIncludeNodes\">\n <table class=\"table is-fullwidth is-hoverable mb-0\">\n <thead class=\"has-background-black\">\n <tr>\n <th>\n <span class=\"has-text-white\">@type</span>\n </th>\n <th>\n <span class=\"has-text-white\">@id</span>\n </th>\n <th>\n <span class=\"has-text-white\">Name</span>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let node of includedNodes\">\n <td>\n <span *bindOnce=\"node\">{{node.node['@type']}}</span>\n </td>\n <td>\n <span *bindOnce=\"node\">{{node.node['@id']}}</span>\n </td>\n <td>\n <span *bindOnce=\"node\">{{node.node.name}}</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </ng-container>\n\n <he-node-csv-select-headers [class.is-hidden]=\"isUpload\"\n [csv]=\"csvData\" [keys]=\"headerKeys\" [includeDefaultCSV]=\"isUpload\"\n (headersChanged)=\"headersUpdated($event)\"\n ></he-node-csv-select-headers>\n </section>\n <footer class=\"modal-card-foot\">\n <a class=\"button is-success\" target=\"_blank\"\n [attr.disabled]=\"csvContent ? null : true\"\n [href]=\"csvContent\"\n [attr.download]=\"csvContent ? downloadFilename : null\"\n (click)=\"closed.next(true)\"\n >\n <fa-icon class=\"mr-2\" icon=\"download\"></fa-icon>\n <span>Download CSV</span>\n </a>\n <button class=\"button\" (click)=\"closed.next(true)\">\n <span>Cancel</span>\n </button>\n </footer>\n </div>\n</div>\n", styles: [""], components: [{ type: NodeCsvSelectHeadersComponent, selector: "he-node-csv-select-headers", inputs: ["csv", "keys", "includeDefaultCSV"], outputs: ["headersChanged"] }, { type: i1__namespace.FaIconComponent, selector: "fa-icon", inputs: ["classes", "icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: BindOnceDirective, selector: "[bindOnce]", inputs: ["bindOnce"] }] });
3513
3538
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NodeCsvExportConfirmComponent, decorators: [{
3514
3539
  type: i0.Component,
@@ -3517,7 +3542,7 @@
3517
3542
  templateUrl: './node-csv-export-confirm.component.html',
3518
3543
  styleUrls: ['./node-csv-export-confirm.component.scss']
3519
3544
  }]
3520
- }], ctorParameters: function () { return [{ type: i1__namespace$3.DomSanitizer }]; }, propDecorators: { nodes: [{
3545
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.DomSanitizer }]; }, propDecorators: { nodes: [{
3521
3546
  type: i0.Input
3522
3547
  }], filename: [{
3523
3548
  type: i0.Input
@@ -3739,7 +3764,7 @@
3739
3764
  };
3740
3765
  return NodeLogsFileComponent;
3741
3766
  }());
3742
- NodeLogsFileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NodeLogsFileComponent, deps: [{ token: i1__namespace$3.DomSanitizer }, { token: HeNodeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
3767
+ NodeLogsFileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NodeLogsFileComponent, deps: [{ token: i1__namespace$1.DomSanitizer }, { token: HeNodeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
3743
3768
  NodeLogsFileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NodeLogsFileComponent, selector: "he-node-logs-file", inputs: { node: "node", dataState: "dataState" }, ngImport: i0__namespace, template: "<div class=\"is-relative\">\n <div class=\"copy-clipboard\">\n <div class=\"field has-addons\">\n <div class=\"control\">\n <he-clipboard clipboardClass=\"button is-link is-small\"\n [value]=\"nodeLog | async\" [hideText]=\"true\" [icon]=\"['far', 'clone']\" size=\"lg\" rotate=\"180\"\n ></he-clipboard>\n </div>\n <ng-container *ngIf=\"showFilters\">\n <div class=\"control\">\n <input class=\"input is-link is-small\"\n [(ngModel)]=\"modelFilter\" id=\"modelFilter\"\n (input)=\"applyFilters()\"\n placeholder=\"Filter by Method / Model\"\n >\n </div>\n <div class=\"control\">\n <input class=\"input is-link is-small\"\n [(ngModel)]=\"termFilter\" id=\"termFilter\"\n (input)=\"applyFilters()\"\n placeholder=\"Filter by Term\"\n >\n </div>\n <div class=\"control\">\n <div class=\"select is-link is-small\">\n <select (change)=\"applyFilters()\"\n [(ngModel)]=\"selectedLevel\" id=\"selectedLevel\"\n >\n <option *ngFor=\"let level of Level | keys\" [value]=\"level.value\">{{level.value}}</option>\n </select>\n </div>\n </div>\n </ng-container>\n <div class=\"control\">\n <button class=\"button is-small\" (click)=\"showFilters = !showFilters\"\n [ngbTooltip]=\"showFilters ? 'Hide filters' : 'Show filters'\" placement=\"bottom\" container=\"body\"\n >\n <fa-icon icon=\"filter\"></fa-icon>\n </button>\n </div>\n <div class=\"control pl-3\">\n <a class=\"button is-dark is-outlined is-small\" target=\"_blank\"\n [href]=\"csvContent\"\n [download]=\"fileToExt(node!['@id'], 'csv')\"\n >\n <fa-icon class=\"mr-2\" icon=\"download\"></fa-icon>\n <span>Download (CSV)</span>\n </a>\n </div>\n </div>\n </div>\n\n <pre class=\"pl-3 pt-3 ml-3\"><code class=\"is-block {{line.class}}\" *ngFor=\"let line of nodeLogLines\">{{line.data.timestamp}} {{('[' + line.data.level + ']:').padEnd(9, ' ')}} {{line.data.message}}</code></pre>\n</div>\n", styles: [":host{display:block}pre{background-color:inherit;color:inherit;min-height:38px;max-height:500px}\n"], components: [{ type: ClipboardComponent, selector: "he-clipboard", inputs: ["value", "disabled", "hideText", "icon", "size", "rotate", "clipboardClass"] }, { type: i1__namespace.FaIconComponent, selector: "fa-icon", inputs: ["classes", "icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace$4.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1__namespace$4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i10__namespace.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }], pipes: { "async": i3__namespace.AsyncPipe, "keys": KeysPipe } });
3744
3769
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NodeLogsFileComponent, decorators: [{
3745
3770
  type: i0.Component,
@@ -3748,7 +3773,7 @@
3748
3773
  templateUrl: './node-logs-file.component.html',
3749
3774
  styleUrls: ['./node-logs-file.component.scss']
3750
3775
  }]
3751
- }], ctorParameters: function () { return [{ type: i1__namespace$3.DomSanitizer }, { type: HeNodeService }]; }, propDecorators: { node: [{
3776
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.DomSanitizer }, { type: HeNodeService }]; }, propDecorators: { node: [{
3752
3777
  type: i0.Input
3753
3778
  }], dataState: [{
3754
3779
  type: i0.Input
@@ -4059,7 +4084,7 @@
4059
4084
  NodeLogsFileComponent,
4060
4085
  NodeLogsModelsComponent,
4061
4086
  NodeMissingLookupFactorsComponent,
4062
- NodeValueDetailsComponent], imports: [i3.CommonModule, i4.RouterModule, i1$4.FormsModule,
4087
+ NodeValueDetailsComponent], imports: [i3.CommonModule, i4.RouterModule, i1$2.FormsModule,
4063
4088
  i6.DragDropModule,
4064
4089
  HeCommonModule], exports: [NodeIconComponent,
4065
4090
  NodeLinkComponent,
@@ -4071,7 +4096,7 @@
4071
4096
  NodeMissingLookupFactorsComponent,
4072
4097
  NodeValueDetailsComponent] });
4073
4098
  HeNodeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeNodeModule, imports: [[
4074
- i3.CommonModule, i4.RouterModule, i1$4.FormsModule,
4099
+ i3.CommonModule, i4.RouterModule, i1$2.FormsModule,
4075
4100
  i6.DragDropModule,
4076
4101
  HeCommonModule
4077
4102
  ]] });
@@ -4081,7 +4106,7 @@
4081
4106
  declarations: components$4,
4082
4107
  exports: components$4,
4083
4108
  imports: [
4084
- i3.CommonModule, i4.RouterModule, i1$4.FormsModule,
4109
+ i3.CommonModule, i4.RouterModule, i1$2.FormsModule,
4085
4110
  i6.DragDropModule,
4086
4111
  HeCommonModule
4087
4112
  ]
@@ -4117,7 +4142,7 @@
4117
4142
  this.cycles = [];
4118
4143
  this.cycleAdded = new i0.EventEmitter();
4119
4144
  this.form = this.formBuilder.group({
4120
- search: ['', i1$4.Validators.required]
4145
+ search: ['', i1$2.Validators.required]
4121
4146
  });
4122
4147
  this.loading = false;
4123
4148
  this.suggesting = false;
@@ -4758,7 +4783,7 @@
4758
4783
  CyclesEmissionsLogsComponent,
4759
4784
  CyclesFunctionalUnitMeasureComponent,
4760
4785
  CyclesResultComponent,
4761
- CyclesSuggestFormComponent], imports: [i3.CommonModule, i1$4.FormsModule, i1$4.ReactiveFormsModule,
4786
+ CyclesSuggestFormComponent], imports: [i3.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule,
4762
4787
  HeCommonModule,
4763
4788
  HeNodeModule], exports: [CyclesActivityComponent,
4764
4789
  CyclesActivityLogsComponent,
@@ -4770,7 +4795,7 @@
4770
4795
  CyclesResultComponent,
4771
4796
  CyclesSuggestFormComponent] });
4772
4797
  HeCyclesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeCyclesModule, imports: [[
4773
- i3.CommonModule, i1$4.FormsModule, i1$4.ReactiveFormsModule,
4798
+ i3.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule,
4774
4799
  HeCommonModule,
4775
4800
  HeNodeModule
4776
4801
  ]] });
@@ -4780,7 +4805,7 @@
4780
4805
  declarations: components$3,
4781
4806
  exports: components$3,
4782
4807
  imports: [
4783
- i3.CommonModule, i1$4.FormsModule, i1$4.ReactiveFormsModule,
4808
+ i3.CommonModule, i1$2.FormsModule, i1$2.ReactiveFormsModule,
4784
4809
  HeCommonModule,
4785
4810
  HeNodeModule
4786
4811
  ]
@@ -5800,7 +5825,7 @@
5800
5825
  return SitesMapsComponent;
5801
5826
  }());
5802
5827
  SitesMapsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SitesMapsComponent, deps: [{ token: HeNodeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
5803
- SitesMapsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SitesMapsComponent, selector: "he-sites-maps", inputs: { loadPolygons: "loadPolygons", sites: "sites", nodes: "nodes", center: "center", zoom: "zoom", showNotice: "showNotice" }, viewQueries: [{ propertyName: "map", first: true, predicate: i1$2.GoogleMap, descendants: true }], ngImport: i0__namespace, template: "<google-map *ngIf=\"googleLoaded\"\n height=\"100%\"\n width=\"100%\"\n [zoom]=\"zoom\"\n [center]=\"center\"\n></google-map>\n\n<p *ngIf=\"showNotice\" class=\"mt-2 is-italic is-size-7\">The information provided might not be complete</p>\n\n<div class=\"no-location has-text-center has-text-light\" *ngIf=\"showNoLocation\">\n <span>No precise location data</span>\n</div>\n", styles: [":host{display:block;height:100%;position:relative;width:100%}.no-location{background-color:#0000004d;left:0;height:100%;position:absolute;top:0;width:100%;z-index:9}.no-location>span{display:inline-block;margin-top:12%}\n"], components: [{ type: i1__namespace$2.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
5828
+ SitesMapsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SitesMapsComponent, selector: "he-sites-maps", inputs: { loadPolygons: "loadPolygons", sites: "sites", nodes: "nodes", center: "center", zoom: "zoom", showNotice: "showNotice" }, viewQueries: [{ propertyName: "map", first: true, predicate: i1$4.GoogleMap, descendants: true }], ngImport: i0__namespace, template: "<google-map *ngIf=\"googleLoaded\"\n height=\"100%\"\n width=\"100%\"\n [zoom]=\"zoom\"\n [center]=\"center\"\n></google-map>\n\n<p *ngIf=\"showNotice\" class=\"mt-2 is-italic is-size-7\">The information provided might not be complete</p>\n\n<div class=\"no-location has-text-center has-text-light\" *ngIf=\"showNoLocation\">\n <span>No precise location data</span>\n</div>\n", styles: [":host{display:block;height:100%;position:relative;width:100%}.no-location{background-color:#0000004d;left:0;height:100%;position:absolute;top:0;width:100%;z-index:9}.no-location>span{display:inline-block;margin-top:12%}\n"], components: [{ type: i1__namespace$3.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
5804
5829
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SitesMapsComponent, decorators: [{
5805
5830
  type: i0.Component,
5806
5831
  args: [{
@@ -5810,7 +5835,7 @@
5810
5835
  }]
5811
5836
  }], ctorParameters: function () { return [{ type: HeNodeService }]; }, propDecorators: { map: [{
5812
5837
  type: i0.ViewChild,
5813
- args: [i1$2.GoogleMap]
5838
+ args: [i1$4.GoogleMap]
5814
5839
  }], loadPolygons: [{
5815
5840
  type: i0.Input
5816
5841
  }], sites: [{
@@ -5995,13 +6020,13 @@
5995
6020
  HeSitesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSitesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
5996
6021
  HeSitesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSitesModule, declarations: [SitesMapsComponent,
5997
6022
  SitesMeasurementsComponent,
5998
- SitesMeasurementsLogsComponent], imports: [i3.CommonModule, i1$4.ReactiveFormsModule,
6023
+ SitesMeasurementsLogsComponent], imports: [i3.CommonModule, i1$2.ReactiveFormsModule,
5999
6024
  HeCommonModule,
6000
6025
  HeNodeModule], exports: [SitesMapsComponent,
6001
6026
  SitesMeasurementsComponent,
6002
6027
  SitesMeasurementsLogsComponent] });
6003
6028
  HeSitesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeSitesModule, imports: [[
6004
- i3.CommonModule, i1$4.ReactiveFormsModule,
6029
+ i3.CommonModule, i1$2.ReactiveFormsModule,
6005
6030
  HeCommonModule,
6006
6031
  HeNodeModule
6007
6032
  ]] });
@@ -6011,7 +6036,7 @@
6011
6036
  declarations: components$2,
6012
6037
  exports: components$2,
6013
6038
  imports: [
6014
- i3.CommonModule, i1$4.ReactiveFormsModule,
6039
+ i3.CommonModule, i1$2.ReactiveFormsModule,
6015
6040
  HeCommonModule,
6016
6041
  HeNodeModule
6017
6042
  ]
@@ -6495,13 +6520,13 @@
6495
6520
  return HeFilesModule;
6496
6521
  }());
6497
6522
  HeFilesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeFilesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
6498
- HeFilesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeFilesModule, declarations: [FilesFormComponent], imports: [i3.CommonModule, i1$4.FormsModule,
6523
+ HeFilesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeFilesModule, declarations: [FilesFormComponent], imports: [i3.CommonModule, i1$2.FormsModule,
6499
6524
  HeCommonModule,
6500
6525
  HeNodeModule,
6501
6526
  HeBibliographiesModule,
6502
6527
  HeSitesModule], exports: [FilesFormComponent] });
6503
6528
  HeFilesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeFilesModule, imports: [[
6504
- i3.CommonModule, i1$4.FormsModule,
6529
+ i3.CommonModule, i1$2.FormsModule,
6505
6530
  HeCommonModule,
6506
6531
  HeNodeModule,
6507
6532
  HeBibliographiesModule,
@@ -6513,7 +6538,7 @@
6513
6538
  declarations: components$1,
6514
6539
  exports: components$1,
6515
6540
  imports: [
6516
- i3.CommonModule, i1$4.FormsModule,
6541
+ i3.CommonModule, i1$2.FormsModule,
6517
6542
  HeCommonModule,
6518
6543
  HeNodeModule,
6519
6544
  HeBibliographiesModule,
@@ -6686,7 +6711,7 @@
6686
6711
  };
6687
6712
  return ImpactAssessmentsIndicatorBreakdownChartComponent;
6688
6713
  }());
6689
- ImpactAssessmentsIndicatorBreakdownChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImpactAssessmentsIndicatorBreakdownChartComponent, deps: [{ token: i1__namespace$3.DomSanitizer }, { token: HeSearchService }, { token: HeNodeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
6714
+ ImpactAssessmentsIndicatorBreakdownChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImpactAssessmentsIndicatorBreakdownChartComponent, deps: [{ token: i1__namespace$1.DomSanitizer }, { token: HeSearchService }, { token: HeNodeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
6690
6715
  ImpactAssessmentsIndicatorBreakdownChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ImpactAssessmentsIndicatorBreakdownChartComponent, selector: "he-impact-assessments-indicator-breakdown-chart", inputs: { impactAssessment: "impactAssessment", indicators: "indicators" }, viewQueries: [{ propertyName: "chartRef", first: true, predicate: ["chart"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"p-3\" [class.is-hidden]=\"loading || !terms?.length\">\n <div class=\"columns\">\n <div class=\"column\">\n <div class=\"field has-addons\">\n <div class=\"control\">\n <span class=\"button is-small is-static\">Select an Indicator</span>\n </div>\n <div class=\"control is-expanded\">\n <div class=\"select is-fullwidth is-small\">\n <select (change)=\"updateChart()\" [(ngModel)]=\"selectedTerm\" id=\"selectedTerm\">\n <option *ngFor=\"let term of terms\" [ngValue]=\"term\">{{term.name}} ({{term.units}})</option>\n </select>\n </div>\n </div>\n </div>\n </div>\n <div class=\"column is-narrow\">\n <a class=\"button is-dark is-outlined is-small\" [href]=\"csvContent\" [download]=\"id + '-logs.csv'\">\n <fa-icon icon=\"download\"></fa-icon>\n <span class=\"pl-2\">Download All (CSV)</span>\n </a>\n </div>\n </div>\n\n <div class=\"mt-1\">\n <p *ngIf=\"noData\" class=\"has-text-centered\">No breakdown available for {{selectedTerm?.name}}.</p>\n <div class=\"chart-container h-100\">\n <canvas #chart></canvas>\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"loading\">\n <div class=\"has-text-center py-3\">\n <fa-icon icon=\"spinner\" [pulse]=\"true\" size=\"lg\"></fa-icon>\n </div>\n</ng-container>\n", styles: [":host{display:block;overflow:visible}.chart-container{height:400px;position:relative}\n"], components: [{ type: i1__namespace.FaIconComponent, selector: "fa-icon", inputs: ["classes", "icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }], directives: [{ type: i1__namespace$4.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1__namespace$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1__namespace$4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
6691
6716
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImpactAssessmentsIndicatorBreakdownChartComponent, decorators: [{
6692
6717
  type: i0.Component,
@@ -6695,7 +6720,7 @@
6695
6720
  templateUrl: './impact-assessments-indicator-breakdown-chart.component.html',
6696
6721
  styleUrls: ['./impact-assessments-indicator-breakdown-chart.component.scss']
6697
6722
  }]
6698
- }], ctorParameters: function () { return [{ type: i1__namespace$3.DomSanitizer }, { type: HeSearchService }, { type: HeNodeService }]; }, propDecorators: { chartRef: [{
6723
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.DomSanitizer }, { type: HeSearchService }, { type: HeNodeService }]; }, propDecorators: { chartRef: [{
6699
6724
  type: i0.ViewChild,
6700
6725
  args: ['chart']
6701
6726
  }], impactAssessment: [{
@@ -6956,7 +6981,7 @@
6956
6981
  this.indicators = [];
6957
6982
  // Adding impacts to compare
6958
6983
  this.form = this.formBuilder.group({
6959
- search: ['', i1$4.Validators.required]
6984
+ search: ['', i1$2.Validators.required]
6960
6985
  });
6961
6986
  this.selectedImpactAssessments = [];
6962
6987
  this.loading = false;
@@ -7245,14 +7270,14 @@
7245
7270
  HeImpactAssessmentsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeImpactAssessmentsModule, declarations: [ImpactAssessmentsProductsComponent,
7246
7271
  ImpactAssessmentsIndicatorsChartComponent,
7247
7272
  ImpactAssessmentsProductsLogsComponent,
7248
- ImpactAssessmentsIndicatorBreakdownChartComponent], imports: [i3.CommonModule, i4.RouterModule, i1$4.FormsModule, i1$4.ReactiveFormsModule,
7273
+ ImpactAssessmentsIndicatorBreakdownChartComponent], imports: [i3.CommonModule, i4.RouterModule, i1$2.FormsModule, i1$2.ReactiveFormsModule,
7249
7274
  HeCommonModule,
7250
7275
  HeNodeModule], exports: [ImpactAssessmentsProductsComponent,
7251
7276
  ImpactAssessmentsIndicatorsChartComponent,
7252
7277
  ImpactAssessmentsProductsLogsComponent,
7253
7278
  ImpactAssessmentsIndicatorBreakdownChartComponent] });
7254
7279
  HeImpactAssessmentsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HeImpactAssessmentsModule, imports: [[
7255
- i3.CommonModule, i4.RouterModule, i1$4.FormsModule, i1$4.ReactiveFormsModule,
7280
+ i3.CommonModule, i4.RouterModule, i1$2.FormsModule, i1$2.ReactiveFormsModule,
7256
7281
  HeCommonModule,
7257
7282
  HeNodeModule
7258
7283
  ]] });
@@ -7262,7 +7287,7 @@
7262
7287
  declarations: components,
7263
7288
  exports: components,
7264
7289
  imports: [
7265
- i3.CommonModule, i4.RouterModule, i1$4.FormsModule, i1$4.ReactiveFormsModule,
7290
+ i3.CommonModule, i4.RouterModule, i1$2.FormsModule, i1$2.ReactiveFormsModule,
7266
7291
  HeCommonModule,
7267
7292
  HeNodeModule
7268
7293
  ]
@@ -7341,6 +7366,7 @@
7341
7366
  exports.HeAggregationEngineService = HeAggregationEngineService;
7342
7367
  exports.HeAuthService = HeAuthService;
7343
7368
  exports.HeBibliographiesModule = HeBibliographiesModule;
7369
+ exports.HeCommonLightModule = HeCommonLightModule;
7344
7370
  exports.HeCommonModule = HeCommonModule;
7345
7371
  exports.HeCommonService = HeCommonService;
7346
7372
  exports.HeCyclesModule = HeCyclesModule;