mapa-library-ui 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/esm2020/src/lib/components/capability/capability.mjs +9 -0
  2. package/esm2020/src/lib/components/capability/filters.mjs +7 -0
  3. package/esm2020/src/lib/components/capability/lib/components/button/public-api.mjs +6 -0
  4. package/esm2020/src/lib/components/{filters → capability/lib/components}/button/src/button.component.mjs +1 -1
  5. package/esm2020/src/lib/components/{filters → capability/lib/components}/button/src/button.module.mjs +1 -1
  6. package/esm2020/src/lib/components/capability/lib/components/capability/capability-grade.const.mjs +63 -0
  7. package/esm2020/src/lib/components/capability/lib/components/capability/capability.interfaces.mjs +2 -0
  8. package/esm2020/src/lib/components/capability/lib/components/capability/public-api.mjs +14 -0
  9. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.component.mjs +32 -0
  10. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.module.mjs +48 -0
  11. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.component.mjs +28 -0
  12. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.module.mjs +20 -0
  13. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.component.mjs +22 -0
  14. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.module.mjs +20 -0
  15. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-grade/capability-grade.component.mjs +24 -0
  16. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-grade/capability-grade.module.mjs +18 -0
  17. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-grade-bar/capability-grade-bar.component.mjs +31 -0
  18. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-grade-bar/capability-grade-bar.module.mjs +20 -0
  19. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator/capability-indicator.component.mjs +13 -0
  20. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator/capability-indicator.module.mjs +18 -0
  21. package/esm2020/src/lib/components/capability/lib/components/capability/src/services/reusable-grade-bar.service.mjs +32 -0
  22. package/esm2020/src/lib/components/capability/lib/components/filters/public-api.mjs +6 -0
  23. package/esm2020/src/lib/components/capability/lib/components/filters/src/filters.component.mjs +34 -0
  24. package/esm2020/src/lib/components/capability/lib/components/filters/src/filters.module.mjs +38 -0
  25. package/esm2020/src/lib/components/capability/lib/components/icon/public-api.mjs +6 -0
  26. package/esm2020/src/lib/components/capability/{icon → lib/components/icon}/src/icon.component.mjs +1 -1
  27. package/esm2020/src/lib/components/{dialog → capability/lib/components}/icon/src/icon.module.mjs +1 -1
  28. package/esm2020/src/lib/components/capability/lib/components/tag/public-api.mjs +6 -0
  29. package/esm2020/src/lib/components/capability/lib/components/tag/src/tag.component.mjs +15 -0
  30. package/esm2020/src/lib/components/capability/lib/components/tag/src/tag.module.mjs +24 -0
  31. package/esm2020/src/lib/components/capability/lib/components/tooltip/public-api.mjs +7 -0
  32. package/esm2020/src/lib/components/capability/lib/components/tooltip/src/tooltip.component.mjs +21 -0
  33. package/esm2020/src/lib/components/capability/lib/components/tooltip/src/tooltip.directive.mjs +140 -0
  34. package/esm2020/src/lib/components/capability/lib/components/tooltip/src/tooltip.enums.mjs +16 -0
  35. package/esm2020/src/lib/components/capability/lib/components/tooltip/src/tooltip.module.mjs +19 -0
  36. package/esm2020/src/lib/components/capability/mapa-library-ui-src-lib-components-capability.mjs +2 -2
  37. package/esm2020/src/lib/components/dialog/dialog.mjs +7 -0
  38. package/esm2020/src/lib/components/dialog/lib/components/button/public-api.mjs +6 -0
  39. package/esm2020/src/lib/components/{capability → dialog/lib/components}/button/src/button.component.mjs +1 -1
  40. package/esm2020/src/lib/components/dialog/{button → lib/components/button}/src/button.module.mjs +1 -1
  41. package/esm2020/src/lib/components/dialog/lib/components/dialog/public-api.mjs +6 -0
  42. package/esm2020/src/lib/components/dialog/lib/components/dialog/src/dialog.component.mjs +58 -0
  43. package/esm2020/src/lib/components/dialog/lib/components/dialog/src/dialog.module.mjs +36 -0
  44. package/esm2020/src/lib/components/dialog/lib/components/icon/public-api.mjs +6 -0
  45. package/esm2020/src/lib/components/{filters → dialog/lib/components}/icon/src/icon.component.mjs +1 -1
  46. package/esm2020/src/lib/components/{filters → dialog/lib/components}/icon/src/icon.module.mjs +1 -1
  47. package/esm2020/src/lib/components/dialog/mapa-library-ui-src-lib-components-dialog.mjs +2 -2
  48. package/esm2020/src/lib/components/filters/filters.mjs +7 -0
  49. package/esm2020/src/lib/components/filters/lib/components/button/public-api.mjs +6 -0
  50. package/esm2020/src/lib/components/{dialog → filters/lib/components}/button/src/button.component.mjs +1 -1
  51. package/esm2020/src/lib/components/{capability → filters/lib/components}/button/src/button.module.mjs +1 -1
  52. package/esm2020/src/lib/components/filters/lib/components/filters/public-api.mjs +6 -0
  53. package/esm2020/src/lib/components/filters/lib/components/filters/src/filters.component.mjs +34 -0
  54. package/esm2020/src/lib/components/filters/lib/components/filters/src/filters.module.mjs +38 -0
  55. package/esm2020/src/lib/components/filters/lib/components/icon/public-api.mjs +6 -0
  56. package/esm2020/src/lib/components/{dialog → filters/lib/components}/icon/src/icon.component.mjs +1 -1
  57. package/esm2020/src/lib/components/{capability → filters/lib/components}/icon/src/icon.module.mjs +1 -1
  58. package/esm2020/src/lib/components/filters/mapa-library-ui-src-lib-components-filters.mjs +2 -2
  59. package/esm2020/src/lib/components/tooltip/mapa-library-ui-src-lib-components-tooltip.mjs +5 -0
  60. package/esm2020/src/lib/components/tooltip/public-api.mjs +7 -0
  61. package/esm2020/src/lib/components/tooltip/src/tooltip.component.mjs +21 -0
  62. package/esm2020/src/lib/components/tooltip/src/tooltip.directive.mjs +140 -0
  63. package/esm2020/src/lib/components/tooltip/src/tooltip.enums.mjs +16 -0
  64. package/esm2020/src/lib/components/tooltip/src/tooltip.module.mjs +19 -0
  65. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +631 -8
  66. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  67. package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs +92 -3
  68. package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  69. package/fesm2015/mapa-library-ui-src-lib-components-filters.mjs +73 -4
  70. package/fesm2015/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
  71. package/fesm2015/mapa-library-ui-src-lib-components-tooltip.mjs +198 -0
  72. package/fesm2015/mapa-library-ui-src-lib-components-tooltip.mjs.map +1 -0
  73. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +631 -8
  74. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  75. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs +90 -3
  76. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  77. package/fesm2020/mapa-library-ui-src-lib-components-filters.mjs +73 -4
  78. package/fesm2020/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
  79. package/fesm2020/mapa-library-ui-src-lib-components-tooltip.mjs +198 -0
  80. package/fesm2020/mapa-library-ui-src-lib-components-tooltip.mjs.map +1 -0
  81. package/mapa-library-ui-0.0.12.tgz +0 -0
  82. package/package.json +9 -1
  83. package/src/lib/components/capability/capability.d.ts +5 -0
  84. package/src/lib/components/capability/filters.d.ts +3 -0
  85. package/src/lib/components/capability/index.d.ts +1 -1
  86. package/src/lib/components/capability/lib/components/capability/capability-grade.const.d.ts +6 -0
  87. package/src/lib/components/capability/lib/components/capability/capability.interfaces.d.ts +10 -0
  88. package/src/lib/components/capability/lib/components/capability/public-api.d.ts +10 -0
  89. package/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.component.d.ts +10 -0
  90. package/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.module.d.ts +13 -0
  91. package/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.component.d.ts +11 -0
  92. package/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.module.d.ts +10 -0
  93. package/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.component.d.ts +8 -0
  94. package/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.module.d.ts +10 -0
  95. package/src/lib/components/capability/lib/components/capability/src/capability-grade/capability-grade.component.d.ts +8 -0
  96. package/src/lib/components/capability/lib/components/capability/src/capability-grade/capability-grade.module.d.ts +8 -0
  97. package/src/lib/components/capability/lib/components/capability/src/capability-grade-bar/capability-grade-bar.component.d.ts +13 -0
  98. package/src/lib/components/capability/lib/components/capability/src/capability-grade-bar/capability-grade-bar.module.d.ts +10 -0
  99. package/src/lib/components/capability/lib/components/capability/src/capability-indicator/capability-indicator.component.d.ts +7 -0
  100. package/src/lib/components/capability/lib/components/capability/src/capability-indicator/capability-indicator.module.d.ts +8 -0
  101. package/src/lib/components/capability/lib/components/capability/src/services/reusable-grade-bar.service.d.ts +15 -0
  102. package/src/lib/components/capability/lib/components/filters/public-api.d.ts +2 -0
  103. package/src/lib/components/capability/lib/components/filters/src/filters.component.d.ts +14 -0
  104. package/src/lib/components/capability/lib/components/filters/src/filters.module.d.ts +12 -0
  105. package/src/lib/components/capability/lib/components/tag/public-api.d.ts +2 -0
  106. package/src/lib/components/capability/lib/components/tag/src/tag.component.d.ts +7 -0
  107. package/src/lib/components/capability/lib/components/tag/src/tag.module.d.ts +8 -0
  108. package/src/lib/components/capability/lib/components/tooltip/public-api.d.ts +3 -0
  109. package/src/lib/components/capability/lib/components/tooltip/src/tooltip.component.d.ts +15 -0
  110. package/src/lib/components/capability/lib/components/tooltip/src/tooltip.directive.d.ts +32 -0
  111. package/src/lib/components/capability/lib/components/tooltip/src/tooltip.enums.d.ts +13 -0
  112. package/src/lib/components/capability/lib/components/tooltip/src/tooltip.module.d.ts +9 -0
  113. package/src/lib/components/dialog/dialog.d.ts +3 -0
  114. package/src/lib/components/dialog/index.d.ts +1 -1
  115. package/src/lib/components/dialog/lib/components/dialog/public-api.d.ts +2 -0
  116. package/src/lib/components/dialog/lib/components/dialog/src/dialog.component.d.ts +28 -0
  117. package/src/lib/components/dialog/lib/components/dialog/src/dialog.module.d.ts +11 -0
  118. package/src/lib/components/filters/filters.d.ts +3 -0
  119. package/src/lib/components/filters/index.d.ts +1 -1
  120. package/src/lib/components/filters/lib/components/filters/public-api.d.ts +2 -0
  121. package/src/lib/components/filters/lib/components/filters/src/filters.component.d.ts +14 -0
  122. package/src/lib/components/filters/lib/components/filters/src/filters.module.d.ts +12 -0
  123. package/src/lib/components/tooltip/index.d.ts +5 -0
  124. package/src/lib/components/tooltip/public-api.d.ts +3 -0
  125. package/src/lib/components/tooltip/src/tooltip.component.d.ts +15 -0
  126. package/src/lib/components/tooltip/src/tooltip.directive.d.ts +32 -0
  127. package/src/lib/components/tooltip/src/tooltip.enums.d.ts +13 -0
  128. package/src/lib/components/tooltip/src/tooltip.module.d.ts +9 -0
  129. package/esm2020/src/lib/components/capability/button/public-api.mjs +0 -6
  130. package/esm2020/src/lib/components/capability/icon/public-api.mjs +0 -6
  131. package/esm2020/src/lib/components/capability/shared-public-api.mjs +0 -6
  132. package/esm2020/src/lib/components/dialog/button/public-api.mjs +0 -6
  133. package/esm2020/src/lib/components/dialog/icon/public-api.mjs +0 -6
  134. package/esm2020/src/lib/components/dialog/shared-public-api.mjs +0 -6
  135. package/esm2020/src/lib/components/filters/button/public-api.mjs +0 -6
  136. package/esm2020/src/lib/components/filters/icon/public-api.mjs +0 -6
  137. package/esm2020/src/lib/components/filters/shared-public-api.mjs +0 -6
  138. package/mapa-library-ui-0.0.11.tgz +0 -0
  139. package/src/lib/components/capability/shared-public-api.d.ts +0 -2
  140. package/src/lib/components/dialog/shared-public-api.d.ts +0 -2
  141. package/src/lib/components/filters/shared-public-api.d.ts +0 -2
  142. /package/src/lib/components/capability/{button → lib/components/button}/public-api.d.ts +0 -0
  143. /package/src/lib/components/capability/{button → lib/components/button}/src/button.component.d.ts +0 -0
  144. /package/src/lib/components/capability/{button → lib/components/button}/src/button.module.d.ts +0 -0
  145. /package/src/lib/components/capability/{icon → lib/components/icon}/public-api.d.ts +0 -0
  146. /package/src/lib/components/capability/{icon → lib/components/icon}/src/icon.component.d.ts +0 -0
  147. /package/src/lib/components/capability/{icon → lib/components/icon}/src/icon.module.d.ts +0 -0
  148. /package/src/lib/components/dialog/{button → lib/components/button}/public-api.d.ts +0 -0
  149. /package/src/lib/components/dialog/{button → lib/components/button}/src/button.component.d.ts +0 -0
  150. /package/src/lib/components/dialog/{button → lib/components/button}/src/button.module.d.ts +0 -0
  151. /package/src/lib/components/dialog/{icon → lib/components/icon}/public-api.d.ts +0 -0
  152. /package/src/lib/components/dialog/{icon → lib/components/icon}/src/icon.component.d.ts +0 -0
  153. /package/src/lib/components/dialog/{icon → lib/components/icon}/src/icon.module.d.ts +0 -0
  154. /package/src/lib/components/filters/{button → lib/components/button}/public-api.d.ts +0 -0
  155. /package/src/lib/components/filters/{button → lib/components/button}/src/button.component.d.ts +0 -0
  156. /package/src/lib/components/filters/{button → lib/components/button}/src/button.module.d.ts +0 -0
  157. /package/src/lib/components/filters/{icon → lib/components/icon}/public-api.d.ts +0 -0
  158. /package/src/lib/components/filters/{icon → lib/components/icon}/src/icon.component.d.ts +0 -0
  159. /package/src/lib/components/filters/{icon → lib/components/icon}/src/icon.module.d.ts +0 -0
@@ -0,0 +1,198 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ViewEncapsulation, Directive, Input, HostListener, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+
6
+ var TooltipPosition;
7
+ (function (TooltipPosition) {
8
+ TooltipPosition["ABOVE"] = "above";
9
+ TooltipPosition["BELOW"] = "below";
10
+ TooltipPosition["LEFT"] = "left";
11
+ TooltipPosition["RIGHT"] = "right";
12
+ TooltipPosition["DYNAMIC"] = "dynamic";
13
+ TooltipPosition["DEFAULT"] = "below";
14
+ })(TooltipPosition || (TooltipPosition = {}));
15
+ var TooltipTheme;
16
+ (function (TooltipTheme) {
17
+ TooltipTheme["DARK"] = "dark";
18
+ TooltipTheme["LIGHT"] = "light";
19
+ TooltipTheme["DEFAULT"] = "light";
20
+ })(TooltipTheme || (TooltipTheme = {}));
21
+
22
+ class MapaTooltipComponent {
23
+ constructor() {
24
+ this.position = TooltipPosition.DEFAULT;
25
+ this.theme = TooltipTheme.DEFAULT;
26
+ this.visible = false;
27
+ this.left = 0;
28
+ this.top = 0;
29
+ }
30
+ ngOnInit() { }
31
+ }
32
+ MapaTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
33
+ MapaTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaTooltipComponent, selector: "lib-tooltip", ngImport: i0, template: "<div\n class=\"tooltip\"\n [ngClass]=\"['tooltip--'+position, 'tooltip--'+theme]\"\n [class.tooltip--visible]=\"visible\"\n [style.left]=\"left + 'px'\"\n [style.top]=\"top + 'px'\"\n>\n <ng-template [ngTemplateOutlet]=\"tooltip\"></ng-template>\n</div>\n", styles: [".tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;font-family:Arial;padding:3px 6px;font-size:13px;opacity:0;z-index:999;box-shadow:#0000000d 0 6px 24px,#00000014 0 0 0 1px}.tooltip:before{content:\"\";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--light{background-color:#fff;color:#000}.tooltip--light:before{border:5px solid white}.tooltip--dark{background-color:#000;color:#fff}.tooltip--dark:before{border:5px solid black}.tooltip--below{transform:translate(-50%);margin-top:7px}.tooltip--below:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(50% - 5px);top:-5px}.tooltip--above{transform:translate(-50%,-100%);margin-bottom:7px}.tooltip--above:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(50% - 5px);bottom:-5px}.tooltip--left{transform:translate(calc(-100% - 7px),-50%)}.tooltip--left:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(50% - 5px)}.tooltip--right{transform:translateY(-50%);margin-left:7px}.tooltip--right:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(50% - 5px)}.tooltip--dynamic{margin-left:20px}.tooltip--dynamic:before{display:none}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTooltipComponent, decorators: [{
35
+ type: Component,
36
+ args: [{ selector: 'lib-tooltip', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"tooltip\"\n [ngClass]=\"['tooltip--'+position, 'tooltip--'+theme]\"\n [class.tooltip--visible]=\"visible\"\n [style.left]=\"left + 'px'\"\n [style.top]=\"top + 'px'\"\n>\n <ng-template [ngTemplateOutlet]=\"tooltip\"></ng-template>\n</div>\n", styles: [".tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;font-family:Arial;padding:3px 6px;font-size:13px;opacity:0;z-index:999;box-shadow:#0000000d 0 6px 24px,#00000014 0 0 0 1px}.tooltip:before{content:\"\";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--light{background-color:#fff;color:#000}.tooltip--light:before{border:5px solid white}.tooltip--dark{background-color:#000;color:#fff}.tooltip--dark:before{border:5px solid black}.tooltip--below{transform:translate(-50%);margin-top:7px}.tooltip--below:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(50% - 5px);top:-5px}.tooltip--above{transform:translate(-50%,-100%);margin-bottom:7px}.tooltip--above:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(50% - 5px);bottom:-5px}.tooltip--left{transform:translate(calc(-100% - 7px),-50%)}.tooltip--left:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(50% - 5px)}.tooltip--right{transform:translateY(-50%);margin-left:7px}.tooltip--right:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(50% - 5px)}.tooltip--dynamic{margin-left:20px}.tooltip--dynamic:before{display:none}\n"] }]
37
+ }], ctorParameters: function () { return []; } });
38
+
39
+ class MapaTooltipDirective {
40
+ constructor(elementRef, appRef, componentFactoryResolver, injector) {
41
+ this.elementRef = elementRef;
42
+ this.appRef = appRef;
43
+ this.componentFactoryResolver = componentFactoryResolver;
44
+ this.injector = injector;
45
+ this.position = TooltipPosition.DEFAULT;
46
+ this.theme = TooltipTheme.DEFAULT;
47
+ this.showDelay = 0;
48
+ this.hideDelay = 0;
49
+ this.componentRef = null;
50
+ }
51
+ onMouseEnter() {
52
+ this.initializeTooltip();
53
+ }
54
+ onMouseLeave() {
55
+ this.setHideTooltipTimeout();
56
+ }
57
+ onMouseMove($event) {
58
+ if (this.componentRef !== null &&
59
+ this.position === TooltipPosition.DYNAMIC) {
60
+ this.componentRef.instance.left = $event.clientX;
61
+ this.componentRef.instance.top = $event.clientY;
62
+ this.componentRef.instance.tooltip = this.tooltip;
63
+ }
64
+ }
65
+ onTouchStart($event) {
66
+ $event.preventDefault();
67
+ window.clearTimeout(this.touchTimeout);
68
+ this.touchTimeout = window.setTimeout(this.initializeTooltip.bind(this), 500);
69
+ }
70
+ onTouchEnd() {
71
+ window.clearTimeout(this.touchTimeout);
72
+ this.setHideTooltipTimeout();
73
+ }
74
+ initializeTooltip() {
75
+ if (this.componentRef === null) {
76
+ window.clearInterval(this.hideDelay);
77
+ const componentFactory = this.componentFactoryResolver.resolveComponentFactory(MapaTooltipComponent);
78
+ this.componentRef = componentFactory.create(this.injector);
79
+ this.appRef.attachView(this.componentRef.hostView);
80
+ const [tooltipDOMElement] = this.componentRef
81
+ .hostView.rootNodes;
82
+ this.setTooltipComponentProperties();
83
+ document.body.appendChild(tooltipDOMElement);
84
+ this.showTimeout = window.setTimeout(this.showTooltip.bind(this), this.showDelay);
85
+ }
86
+ }
87
+ setTooltipComponentProperties() {
88
+ if (this.componentRef !== null) {
89
+ this.componentRef.instance.tooltip = this.tooltip;
90
+ this.componentRef.instance.position = this.position;
91
+ this.componentRef.instance.theme = this.theme;
92
+ const { left, right, top, bottom, } = this.elementRef.nativeElement.getBoundingClientRect();
93
+ switch (this.position) {
94
+ case TooltipPosition.BELOW: {
95
+ this.componentRef.instance.left = Math.round((right - left) / 2 + left);
96
+ this.componentRef.instance.top = Math.round(bottom);
97
+ break;
98
+ }
99
+ case TooltipPosition.ABOVE: {
100
+ this.componentRef.instance.left = Math.round((right - left) / 2 + left);
101
+ this.componentRef.instance.top = Math.round(top);
102
+ break;
103
+ }
104
+ case TooltipPosition.RIGHT: {
105
+ this.componentRef.instance.left = Math.round(right);
106
+ this.componentRef.instance.top = Math.round(top + (bottom - top) / 2);
107
+ break;
108
+ }
109
+ case TooltipPosition.LEFT: {
110
+ this.componentRef.instance.left = Math.round(left);
111
+ this.componentRef.instance.top = Math.round(top + (bottom - top) / 2);
112
+ break;
113
+ }
114
+ default: {
115
+ break;
116
+ }
117
+ }
118
+ }
119
+ }
120
+ showTooltip() {
121
+ if (this.componentRef !== null) {
122
+ this.componentRef.instance.visible = true;
123
+ }
124
+ }
125
+ setHideTooltipTimeout() {
126
+ this.hideTimeout = window.setTimeout(this.destroy.bind(this), this.hideDelay);
127
+ }
128
+ ngOnDestroy() {
129
+ this.destroy();
130
+ }
131
+ destroy() {
132
+ if (this.componentRef !== null) {
133
+ window.clearInterval(this.showTimeout);
134
+ window.clearInterval(this.hideDelay);
135
+ this.appRef.detachView(this.componentRef.hostView);
136
+ this.componentRef.destroy();
137
+ this.componentRef = null;
138
+ }
139
+ }
140
+ }
141
+ MapaTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
142
+ MapaTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MapaTooltipDirective, selector: "[tooltip]", inputs: { tooltip: "tooltip", position: "position", theme: "theme", showDelay: "showDelay", hideDelay: "hideDelay" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "mousemove": "onMouseMove($event)", "touchstart": "onTouchStart($event)", "touchend": "onTouchEnd()" } }, ngImport: i0 });
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTooltipDirective, decorators: [{
144
+ type: Directive,
145
+ args: [{
146
+ selector: "[tooltip]",
147
+ }]
148
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }]; }, propDecorators: { tooltip: [{
149
+ type: Input
150
+ }], position: [{
151
+ type: Input
152
+ }], theme: [{
153
+ type: Input
154
+ }], showDelay: [{
155
+ type: Input
156
+ }], hideDelay: [{
157
+ type: Input
158
+ }], onMouseEnter: [{
159
+ type: HostListener,
160
+ args: ["mouseenter"]
161
+ }], onMouseLeave: [{
162
+ type: HostListener,
163
+ args: ["mouseleave"]
164
+ }], onMouseMove: [{
165
+ type: HostListener,
166
+ args: ["mousemove", ["$event"]]
167
+ }], onTouchStart: [{
168
+ type: HostListener,
169
+ args: ["touchstart", ["$event"]]
170
+ }], onTouchEnd: [{
171
+ type: HostListener,
172
+ args: ["touchend"]
173
+ }] } });
174
+
175
+ class MapaTooltipModule {
176
+ }
177
+ MapaTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
178
+ MapaTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaTooltipModule, declarations: [MapaTooltipComponent, MapaTooltipDirective], imports: [CommonModule], exports: [MapaTooltipComponent, MapaTooltipDirective] });
179
+ MapaTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTooltipModule, imports: [CommonModule] });
180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTooltipModule, decorators: [{
181
+ type: NgModule,
182
+ args: [{
183
+ declarations: [MapaTooltipComponent, MapaTooltipDirective],
184
+ exports: [MapaTooltipComponent, MapaTooltipDirective],
185
+ imports: [CommonModule],
186
+ }]
187
+ }] });
188
+
189
+ /*
190
+ * Public API Surface of mapa-library-ui icon
191
+ */
192
+
193
+ /**
194
+ * Generated bundle index. Do not edit.
195
+ */
196
+
197
+ export { MapaTooltipComponent, MapaTooltipDirective, MapaTooltipModule };
198
+ //# sourceMappingURL=mapa-library-ui-src-lib-components-tooltip.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapa-library-ui-src-lib-components-tooltip.mjs","sources":["../../../projects/mapa-library-ui/src/lib/components/tooltip/src/tooltip.enums.ts","../../../projects/mapa-library-ui/src/lib/components/tooltip/src/tooltip.component.ts","../../../projects/mapa-library-ui/src/lib/components/tooltip/src/tooltip.component.html","../../../projects/mapa-library-ui/src/lib/components/tooltip/src/tooltip.directive.ts","../../../projects/mapa-library-ui/src/lib/components/tooltip/src/tooltip.module.ts","../../../projects/mapa-library-ui/src/lib/components/tooltip/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/tooltip/mapa-library-ui-src-lib-components-tooltip.ts"],"sourcesContent":["export enum TooltipPosition {\n ABOVE = 'above',\n BELOW = 'below',\n LEFT = 'left',\n RIGHT = 'right',\n DYNAMIC = 'dynamic',\n DEFAULT = 'below'\n}\n\nexport enum TooltipTheme {\n DARK = 'dark',\n LIGHT = 'light',\n DEFAULT = 'light'\n}","import { Component, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { TooltipPosition, TooltipTheme } from './tooltip.enums';\n\n@Component({\n selector: 'lib-tooltip',\n templateUrl: './tooltip.component.html',\n styleUrls: ['./tooltip.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class MapaTooltipComponent {\n tooltip!: TemplateRef<any>;\n\n position: TooltipPosition = TooltipPosition.DEFAULT;\n theme: TooltipTheme = TooltipTheme.DEFAULT;\n visible: boolean = false;\n left: number = 0;\n top: number = 0;\n\n constructor() {}\n\n ngOnInit(): void {}\n\n}\n","<div\n class=\"tooltip\"\n [ngClass]=\"['tooltip--'+position, 'tooltip--'+theme]\"\n [class.tooltip--visible]=\"visible\"\n [style.left]=\"left + 'px'\"\n [style.top]=\"top + 'px'\"\n>\n <ng-template [ngTemplateOutlet]=\"tooltip\"></ng-template>\n</div>\n","import {\n ApplicationRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n HostListener,\n Injector,\n Input,\n TemplateRef,\n} from \"@angular/core\";\nimport { MapaTooltipComponent } from \"./tooltip.component\";\nimport { TooltipPosition, TooltipTheme } from \"./tooltip.enums\";\n\n@Directive({\n selector: \"[tooltip]\",\n})\nexport class MapaTooltipDirective {\n @Input() tooltip!: TemplateRef<any>;\n @Input() position: TooltipPosition = TooltipPosition.DEFAULT;\n @Input() theme: TooltipTheme = TooltipTheme.DEFAULT;\n @Input() showDelay = 0;\n @Input() hideDelay = 0;\n\n private componentRef: ComponentRef<any> | null = null;\n private showTimeout?: number;\n private hideTimeout?: number;\n private touchTimeout?: number;\n\n constructor(\n private elementRef: ElementRef,\n private appRef: ApplicationRef,\n private componentFactoryResolver: ComponentFactoryResolver,\n private injector: Injector\n ) {}\n\n @HostListener(\"mouseenter\")\n onMouseEnter(): void {\n this.initializeTooltip();\n }\n\n @HostListener(\"mouseleave\")\n onMouseLeave(): void {\n this.setHideTooltipTimeout();\n }\n\n @HostListener(\"mousemove\", [\"$event\"])\n onMouseMove($event: MouseEvent): void {\n if (\n this.componentRef !== null &&\n this.position === TooltipPosition.DYNAMIC\n ) {\n this.componentRef.instance.left = $event.clientX;\n this.componentRef.instance.top = $event.clientY;\n this.componentRef.instance.tooltip = this.tooltip;\n }\n }\n\n @HostListener(\"touchstart\", [\"$event\"])\n onTouchStart($event: TouchEvent): void {\n $event.preventDefault();\n window.clearTimeout(this.touchTimeout);\n this.touchTimeout = window.setTimeout(\n this.initializeTooltip.bind(this),\n 500\n );\n }\n\n @HostListener(\"touchend\")\n onTouchEnd(): void {\n window.clearTimeout(this.touchTimeout);\n this.setHideTooltipTimeout();\n }\n\n private initializeTooltip() {\n if (this.componentRef === null) {\n window.clearInterval(this.hideDelay);\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(\n MapaTooltipComponent\n );\n this.componentRef = componentFactory.create(this.injector);\n\n this.appRef.attachView(this.componentRef.hostView);\n const [tooltipDOMElement] = (this.componentRef\n .hostView as EmbeddedViewRef<any>).rootNodes;\n\n this.setTooltipComponentProperties();\n\n document.body.appendChild(tooltipDOMElement);\n this.showTimeout = window.setTimeout(\n this.showTooltip.bind(this),\n this.showDelay\n );\n }\n }\n\n private setTooltipComponentProperties() {\n if (this.componentRef !== null) {\n this.componentRef.instance.tooltip = this.tooltip;\n this.componentRef.instance.position = this.position;\n this.componentRef.instance.theme = this.theme;\n\n const {\n left,\n right,\n top,\n bottom,\n } = this.elementRef.nativeElement.getBoundingClientRect();\n\n switch (this.position) {\n case TooltipPosition.BELOW: {\n this.componentRef.instance.left = Math.round(\n (right - left) / 2 + left\n );\n this.componentRef.instance.top = Math.round(bottom);\n break;\n }\n case TooltipPosition.ABOVE: {\n this.componentRef.instance.left = Math.round(\n (right - left) / 2 + left\n );\n this.componentRef.instance.top = Math.round(top);\n break;\n }\n case TooltipPosition.RIGHT: {\n this.componentRef.instance.left = Math.round(right);\n this.componentRef.instance.top = Math.round(top + (bottom - top) / 2);\n break;\n }\n case TooltipPosition.LEFT: {\n this.componentRef.instance.left = Math.round(left);\n this.componentRef.instance.top = Math.round(top + (bottom - top) / 2);\n break;\n }\n default: {\n break;\n }\n }\n }\n }\n\n private showTooltip() {\n if (this.componentRef !== null) {\n this.componentRef.instance.visible = true;\n }\n }\n\n private setHideTooltipTimeout() {\n this.hideTimeout = window.setTimeout(\n this.destroy.bind(this),\n this.hideDelay\n );\n }\n\n ngOnDestroy(): void {\n this.destroy();\n }\n\n destroy(): void {\n if (this.componentRef !== null) {\n window.clearInterval(this.showTimeout);\n window.clearInterval(this.hideDelay);\n this.appRef.detachView(this.componentRef.hostView);\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { MapaTooltipComponent } from \"./tooltip.component\";\nimport { MapaTooltipDirective } from \"./tooltip.directive\";\n\n@NgModule({\n declarations: [MapaTooltipComponent, MapaTooltipDirective],\n exports: [MapaTooltipComponent, MapaTooltipDirective],\n imports: [CommonModule],\n})\nexport class MapaTooltipModule {}\n","/*\n * Public API Surface of mapa-library-ui icon\n */\n\nexport * from './src/tooltip.directive';\nexport * from './src/tooltip.component';\nexport * from './src/tooltip.module';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAAA,IAAY,eAOX,CAAA;AAPD,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,eAAA,CAAA,OAAA,CAAA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;ACTD;;AAEG;;ACFH;;AAEG;;;;"}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapa-library-ui",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0"
@@ -147,6 +147,14 @@
147
147
  "node": "./fesm2015/mapa-library-ui-src-lib-components-tag.mjs",
148
148
  "default": "./fesm2020/mapa-library-ui-src-lib-components-tag.mjs"
149
149
  },
150
+ "./src/lib/components/tooltip": {
151
+ "types": "./src/lib/components/tooltip/index.d.ts",
152
+ "esm2020": "./esm2020/src/lib/components/tooltip/mapa-library-ui-src-lib-components-tooltip.mjs",
153
+ "es2020": "./fesm2020/mapa-library-ui-src-lib-components-tooltip.mjs",
154
+ "es2015": "./fesm2015/mapa-library-ui-src-lib-components-tooltip.mjs",
155
+ "node": "./fesm2015/mapa-library-ui-src-lib-components-tooltip.mjs",
156
+ "default": "./fesm2020/mapa-library-ui-src-lib-components-tooltip.mjs"
157
+ },
150
158
  "./src/lib/components/warning": {
151
159
  "types": "./src/lib/components/warning/index.d.ts",
152
160
  "esm2020": "./esm2020/src/lib/components/warning/mapa-library-ui-src-lib-components-warning.mjs",
@@ -0,0 +1,5 @@
1
+ export * from './lib/components/tooltip/public-api';
2
+ export * from './lib/components/button/public-api';
3
+ export * from './lib/components/icon/public-api';
4
+ export * from './lib/components/tooltip/public-api';
5
+ export * from './lib/components/capability/public-api';
@@ -0,0 +1,3 @@
1
+ export * from './lib/components/button/public-api';
2
+ export * from './lib/components/icon/public-api';
3
+ export * from './lib/components/filters/public-api';
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="mapa-library-ui/src/lib/components/capability" />
5
- export * from './shared-public-api';
5
+ export * from './capability';
@@ -0,0 +1,6 @@
1
+ export declare const CapabilityGrade: {
2
+ grade: number;
3
+ description: string;
4
+ color: string;
5
+ positive: boolean;
6
+ }[];
@@ -0,0 +1,10 @@
1
+ export interface CapabilityItem {
2
+ title: string;
3
+ grade: number;
4
+ description?: string;
5
+ }
6
+ export interface Capability extends CapabilityItem {
7
+ items: CapabilityItem[];
8
+ concept?: string;
9
+ result?: string;
10
+ }
@@ -0,0 +1,10 @@
1
+ export * from './src/capability-dot/capability-dot.component';
2
+ export * from './src/capability-dot/capability-dot.module';
3
+ export * from './src/capability-expand/capability-expand.component';
4
+ export * from './src/capability-expand/capability-expand.module';
5
+ export * from './src/capability-indicator/capability-indicator.component';
6
+ export * from './src/capability-indicator/capability-indicator.module';
7
+ export * from './src/capability-grade/capability-grade.component';
8
+ export * from './src/capability-grade/capability-grade.module';
9
+ export * from './src/capability-detail/capability-detail.component';
10
+ export * from './src/capability-detail/capability-detail.module';
@@ -0,0 +1,10 @@
1
+ import { Capability } from "../../capability.interfaces";
2
+ import * as i0 from "@angular/core";
3
+ export declare class MapaCapabilityDetailComponent {
4
+ data: Capability[];
5
+ expanded: Set<number>;
6
+ sortItemsByGrade(items: any[]): any[];
7
+ showMore(index: number): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityDetailComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaCapabilityDetailComponent, "mapa-capability-detail", never, { "data": "data"; }, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./capability-detail.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../capability-dot/capability-dot.module";
5
+ import * as i4 from "../capability-indicator/capability-indicator.module";
6
+ import * as i5 from "../capability-grade/capability-grade.module";
7
+ import * as i6 from "../capability-grade-bar/capability-grade-bar.module";
8
+ import * as i7 from "../capability-expand/capability-expand.module";
9
+ export declare class MapaCapabilityDetailModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityDetailModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaCapabilityDetailModule, [typeof i1.MapaCapabilityDetailComponent], [typeof i2.CommonModule, typeof i3.MapaCapabilityDotModule, typeof i4.MapaCapabilityIndicatorModule, typeof i5.MapaCapabilityGradeModule, typeof i6.MapaCapabilityGradeBarModule, typeof i7.MapaCapabilityExpandModule], [typeof i1.MapaCapabilityDetailComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaCapabilityDetailModule>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { Capability, CapabilityItem } from "../../capability.interfaces";
2
+ import * as i0 from "@angular/core";
3
+ export declare class MapaCapabilityDotComponent {
4
+ type: string;
5
+ item: CapabilityItem;
6
+ tooltip: boolean;
7
+ capability?: Capability;
8
+ getGradeDescription(item: CapabilityItem): string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityDotComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaCapabilityDotComponent, "mapa-capability-dot", never, { "type": "type"; "item": "item"; "tooltip": "tooltip"; "capability": "capability"; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./capability-dot.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../../../tooltip/src/tooltip.module";
5
+ import * as i4 from "../../../tag/src/tag.module";
6
+ export declare class MapaCapabilityDotModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityDotModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaCapabilityDotModule, [typeof i1.MapaCapabilityDotComponent], [typeof i2.CommonModule, typeof i3.MapaTooltipModule, typeof i4.MapaTagModule], [typeof i1.MapaCapabilityDotComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaCapabilityDotModule>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { Capability, CapabilityItem } from '../../capability.interfaces';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MapaCapabilityExpandComponent {
4
+ data: Capability;
5
+ getGradeDescription(item: CapabilityItem): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityExpandComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaCapabilityExpandComponent, "mapa-capability-expand", never, { "data": "data"; }, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./capability-expand.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../../../tag/src/tag.module";
5
+ import * as i4 from "../capability-dot/capability-dot.module";
6
+ export declare class MapaCapabilityExpandModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityExpandModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaCapabilityExpandModule, [typeof i1.MapaCapabilityExpandComponent], [typeof i2.CommonModule, typeof i3.MapaTagModule, typeof i4.MapaCapabilityDotModule], [typeof i1.MapaCapabilityExpandComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaCapabilityExpandModule>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { Capability } from "../../capability.interfaces";
2
+ import * as i0 from "@angular/core";
3
+ export declare class MapaCapabilityGradeComponent {
4
+ data: Capability;
5
+ getGradeWidth(index: number): number;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityGradeComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaCapabilityGradeComponent, "mapa-capability-grade", never, { "data": "data"; }, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./capability-grade.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class MapaCapabilityGradeModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityGradeModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaCapabilityGradeModule, [typeof i1.MapaCapabilityGradeComponent], [typeof i2.CommonModule], [typeof i1.MapaCapabilityGradeComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaCapabilityGradeModule>;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { Capability } from "../../capability.interfaces";
3
+ import * as i0 from "@angular/core";
4
+ export declare class MapaCapabilityGradeBarComponent {
5
+ data: Capability;
6
+ clicked: EventEmitter<void>;
7
+ isHovering: boolean;
8
+ onHover(): void;
9
+ onMouseOut(): void;
10
+ showMore(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityGradeBarComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaCapabilityGradeBarComponent, "mapa-capability-grade-bar", never, { "data": "data"; }, { "clicked": "clicked"; }, never, never, false, never>;
13
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./capability-grade-bar.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../../../button/src/button.module";
5
+ import * as i4 from "../capability-grade/capability-grade.module";
6
+ export declare class MapaCapabilityGradeBarModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityGradeBarModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaCapabilityGradeBarModule, [typeof i1.MapaCapabilityGradeBarComponent], [typeof i2.CommonModule, typeof i3.MapaButtonModule, typeof i4.MapaCapabilityGradeModule], [typeof i1.MapaCapabilityGradeBarComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaCapabilityGradeBarModule>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { CapabilityItem } from "../../capability.interfaces";
2
+ import * as i0 from "@angular/core";
3
+ export declare class MapaCapabilityIndicatorComponent {
4
+ item: CapabilityItem;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityIndicatorComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaCapabilityIndicatorComponent, "mapa-capability-indicator", never, { "item": "item"; }, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./capability-indicator.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class MapaCapabilityIndicatorModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaCapabilityIndicatorModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaCapabilityIndicatorModule, [typeof i1.MapaCapabilityIndicatorComponent], [typeof i2.CommonModule], [typeof i1.MapaCapabilityIndicatorComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaCapabilityIndicatorModule>;
8
+ }
@@ -0,0 +1,15 @@
1
+ import { ViewContainerRef, ComponentFactoryResolver, Injector } from "@angular/core";
2
+ import { Router } from "@angular/router";
3
+ import * as i0 from "@angular/core";
4
+ export declare class ReusableCapabilityGradeBarService {
5
+ private componentFactoryResolver;
6
+ private injector;
7
+ private router;
8
+ private componentRef;
9
+ private currentViewContainerRef;
10
+ constructor(componentFactoryResolver: ComponentFactoryResolver, injector: Injector, router: Router);
11
+ attach(viewContainerRef: ViewContainerRef): void;
12
+ detach(viewContainerRef: ViewContainerRef): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReusableCapabilityGradeBarService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReusableCapabilityGradeBarService>;
15
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/filters.component';
2
+ export * from './src/filters.module';
@@ -0,0 +1,14 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormControl, FormGroup } from '@angular/forms';
3
+ import { ElementBase } from 'mapa-library-ui';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FiltersComponent {
6
+ form: FormGroup;
7
+ elements: ElementBase[];
8
+ selectedValues: EventEmitter<any>;
9
+ getFormControl(filterKey: string): FormControl;
10
+ clearFilters(): void;
11
+ emitSelectedValues(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FiltersComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<FiltersComponent, "mapa-filters", never, { "form": "form"; "elements": "elements"; }, { "selectedValues": "selectedValues"; }, never, never, false, never>;
14
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./filters.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "mapa-library-ui/src/lib/components/button";
5
+ import * as i4 from "mapa-library-ui/src/lib/components/checkbox";
6
+ import * as i5 from "mapa-library-ui/src/lib/components/dropdown";
7
+ import * as i6 from "mapa-library-ui/src/lib/components/input";
8
+ export declare class MapaFiltersModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaFiltersModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaFiltersModule, [typeof i1.FiltersComponent], [typeof i2.CommonModule, typeof i3.MapaButtonModule, typeof i4.MapaCheckboxModule, typeof i5.MapaDropdownModule, typeof i6.MapaInputModule], [typeof i1.FiltersComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaFiltersModule>;
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/tag.component';
2
+ export * from './src/tag.module';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TagComponent {
3
+ color: 'highlight' | null | undefined;
4
+ size?: 'small' | null | undefined;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "mapa-tag", never, { "color": "color"; "size": "size"; }, {}, never, ["*"], false, never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tag.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class MapaTagModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaTagModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaTagModule, [typeof i1.TagComponent], [typeof i2.CommonModule], [typeof i1.TagComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaTagModule>;
8
+ }
@@ -0,0 +1,3 @@
1
+ export * from './src/tooltip.directive';
2
+ export * from './src/tooltip.component';
3
+ export * from './src/tooltip.module';
@@ -0,0 +1,15 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { TooltipPosition, TooltipTheme } from './tooltip.enums';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MapaTooltipComponent {
5
+ tooltip: TemplateRef<any>;
6
+ position: TooltipPosition;
7
+ theme: TooltipTheme;
8
+ visible: boolean;
9
+ left: number;
10
+ top: number;
11
+ constructor();
12
+ ngOnInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaTooltipComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaTooltipComponent, "lib-tooltip", never, {}, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,32 @@
1
+ import { ApplicationRef, ComponentFactoryResolver, ElementRef, Injector, TemplateRef } from "@angular/core";
2
+ import { TooltipPosition, TooltipTheme } from "./tooltip.enums";
3
+ import * as i0 from "@angular/core";
4
+ export declare class MapaTooltipDirective {
5
+ private elementRef;
6
+ private appRef;
7
+ private componentFactoryResolver;
8
+ private injector;
9
+ tooltip: TemplateRef<any>;
10
+ position: TooltipPosition;
11
+ theme: TooltipTheme;
12
+ showDelay: number;
13
+ hideDelay: number;
14
+ private componentRef;
15
+ private showTimeout?;
16
+ private hideTimeout?;
17
+ private touchTimeout?;
18
+ constructor(elementRef: ElementRef, appRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector);
19
+ onMouseEnter(): void;
20
+ onMouseLeave(): void;
21
+ onMouseMove($event: MouseEvent): void;
22
+ onTouchStart($event: TouchEvent): void;
23
+ onTouchEnd(): void;
24
+ private initializeTooltip;
25
+ private setTooltipComponentProperties;
26
+ private showTooltip;
27
+ private setHideTooltipTimeout;
28
+ ngOnDestroy(): void;
29
+ destroy(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaTooltipDirective, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MapaTooltipDirective, "[tooltip]", never, { "tooltip": "tooltip"; "position": "position"; "theme": "theme"; "showDelay": "showDelay"; "hideDelay": "hideDelay"; }, {}, never, never, false, never>;
32
+ }
@@ -0,0 +1,13 @@
1
+ export declare enum TooltipPosition {
2
+ ABOVE = "above",
3
+ BELOW = "below",
4
+ LEFT = "left",
5
+ RIGHT = "right",
6
+ DYNAMIC = "dynamic",
7
+ DEFAULT = "below"
8
+ }
9
+ export declare enum TooltipTheme {
10
+ DARK = "dark",
11
+ LIGHT = "light",
12
+ DEFAULT = "light"
13
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tooltip.component";
3
+ import * as i2 from "./tooltip.directive";
4
+ import * as i3 from "@angular/common";
5
+ export declare class MapaTooltipModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaTooltipModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaTooltipModule, [typeof i1.MapaTooltipComponent, typeof i2.MapaTooltipDirective], [typeof i3.CommonModule], [typeof i1.MapaTooltipComponent, typeof i2.MapaTooltipDirective]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaTooltipModule>;
9
+ }
@@ -0,0 +1,3 @@
1
+ export * from './lib/components/button/public-api';
2
+ export * from './lib/components/icon/public-api';
3
+ export * from './lib/components/dialog/public-api';
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="mapa-library-ui/src/lib/components/dialog" />
5
- export * from './shared-public-api';
5
+ export * from './dialog';