@hestia-earth/ui-components 0.6.0-3 → 0.6.0-4

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.
@@ -737,6 +737,33 @@
737
737
  type: i0.Input
738
738
  }] } });
739
739
 
740
+ /* eslint-disable @angular-eslint/directive-selector */
741
+ var ClickOutsideDirective = /** @class */ (function () {
742
+ function ClickOutsideDirective(elementRef) {
743
+ this.elementRef = elementRef;
744
+ this.clickOutside = new i0.EventEmitter();
745
+ }
746
+ ClickOutsideDirective.prototype.onClick = function (event) {
747
+ if (!this.elementRef.nativeElement.contains(event.target)) {
748
+ this.clickOutside.emit();
749
+ }
750
+ };
751
+ return ClickOutsideDirective;
752
+ }());
753
+ ClickOutsideDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClickOutsideDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
754
+ ClickOutsideDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: { clickOutside: "clickOutside" }, host: { listeners: { "document:click": "onClick($event)" } }, ngImport: i0__namespace });
755
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClickOutsideDirective, decorators: [{
756
+ type: i0.Directive,
757
+ args: [{
758
+ selector: '[clickOutside]'
759
+ }]
760
+ }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { clickOutside: [{
761
+ type: i0.Output
762
+ }], onClick: [{
763
+ type: i0.HostListener,
764
+ args: ['document:click', ['$event']]
765
+ }] } });
766
+
740
767
  var shouldDefault = {
741
768
  string: function (value) { return !value; },
742
769
  number: function (value) { return !value && value !== 0; },
@@ -1042,6 +1069,7 @@
1042
1069
  SocialTagsComponent,
1043
1070
  ToastComponent,
1044
1071
  BindOnceDirective,
1072
+ ClickOutsideDirective,
1045
1073
  DefaultPipe,
1046
1074
  EllipsisPipe,
1047
1075
  KeysPipe,
@@ -1059,6 +1087,7 @@
1059
1087
  SocialTagsComponent,
1060
1088
  ToastComponent,
1061
1089
  BindOnceDirective,
1090
+ ClickOutsideDirective,
1062
1091
  DefaultPipe,
1063
1092
  EllipsisPipe,
1064
1093
  KeysPipe,
@@ -1069,6 +1098,7 @@
1069
1098
  SocialTagsComponent,
1070
1099
  ToastComponent,
1071
1100
  BindOnceDirective,
1101
+ ClickOutsideDirective,
1072
1102
  DefaultPipe,
1073
1103
  EllipsisPipe,
1074
1104
  KeysPipe,
@@ -2430,10 +2460,8 @@
2430
2460
  });
2431
2461
  Object.defineProperty(UnitConverterComponent.prototype, "units", {
2432
2462
  get: function () {
2433
- var _this = this;
2434
- return this.fromUnits ?
2435
- Object.values(utils.ConvertUnits).filter(function (v) { return v in utils.converters[_this.fromUnits]; }) :
2436
- [];
2463
+ var values = utils.converters[this.fromUnits] || {};
2464
+ return Object.values(utils.ConvertUnits).filter(function (v) { return v in values; });
2437
2465
  },
2438
2466
  enumerable: false,
2439
2467
  configurable: true
@@ -2486,33 +2514,6 @@
2486
2514
  type: i0.Input
2487
2515
  }] } });
2488
2516
 
2489
- /* eslint-disable @angular-eslint/directive-selector */
2490
- var ClickOutsideDirective = /** @class */ (function () {
2491
- function ClickOutsideDirective(elementRef) {
2492
- this.elementRef = elementRef;
2493
- this.clickOutside = new i0.EventEmitter();
2494
- }
2495
- ClickOutsideDirective.prototype.onClick = function (event) {
2496
- if (!this.elementRef.nativeElement.contains(event.target)) {
2497
- this.clickOutside.emit();
2498
- }
2499
- };
2500
- return ClickOutsideDirective;
2501
- }());
2502
- ClickOutsideDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClickOutsideDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
2503
- ClickOutsideDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: { clickOutside: "clickOutside" }, host: { listeners: { "document:click": "onClick($event)" } }, ngImport: i0__namespace });
2504
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ClickOutsideDirective, decorators: [{
2505
- type: i0.Directive,
2506
- args: [{
2507
- selector: '[clickOutside]'
2508
- }]
2509
- }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { clickOutside: [{
2510
- type: i0.Output
2511
- }], onClick: [{
2512
- type: i0.HostListener,
2513
- args: ['document:click', ['$event']]
2514
- }] } });
2515
-
2516
2517
  var get$4 = require('lodash.get');
2517
2518
  var GetPipe = /** @class */ (function () {
2518
2519
  function GetPipe() {
@@ -4209,7 +4210,6 @@
4209
4210
  UnitConverterComponent,
4210
4211
  TagsInputDirective,
4211
4212
  TimesPipe,
4212
- ClickOutsideDirective,
4213
4213
  GetPipe,
4214
4214
  IsArrayPipe,
4215
4215
  IsObjectPipe,
@@ -4235,7 +4235,6 @@
4235
4235
  UnitConverterComponent,
4236
4236
  TagsInputDirective,
4237
4237
  TimesPipe,
4238
- ClickOutsideDirective,
4239
4238
  GetPipe,
4240
4239
  IsArrayPipe,
4241
4240
  IsObjectPipe,
@@ -4258,7 +4257,6 @@
4258
4257
  UnitConverterComponent,
4259
4258
  TagsInputDirective,
4260
4259
  TimesPipe,
4261
- ClickOutsideDirective,
4262
4260
  GetPipe,
4263
4261
  IsArrayPipe,
4264
4262
  IsObjectPipe,
@@ -9080,7 +9078,7 @@
9080
9078
  ],
9081
9079
  minimum_should_match: 1
9082
9080
  }
9083
- }, 5, _this.suggestTermFields);
9081
+ }, 10, _this.suggestTermFields);
9084
9082
  };
9085
9083
  this.suggestNode = function (type, suggestDefault) { return function (term, property) {
9086
9084
  var _a, _b;