@open-rlb/ng-bootstrap 2.3.2 → 2.3.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.
|
@@ -96,6 +96,16 @@
|
|
|
96
96
|
padding: 0.25rem 0.5rem;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
@media (hover: none) {
|
|
100
|
+
.tooltip {
|
|
101
|
+
display: none !important;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sidebar-toggler-tooltip {
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
99
109
|
/* ===== Mobile ===== */
|
|
100
110
|
@media (max-width: 992px) {
|
|
101
111
|
.navbar-collapse {
|
|
@@ -108,4 +118,4 @@
|
|
|
108
118
|
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
|
|
109
119
|
z-index: 1100;
|
|
110
120
|
}
|
|
111
|
-
}
|
|
121
|
+
}
|
|
@@ -5335,6 +5335,11 @@ class TooltipDirective {
|
|
|
5335
5335
|
this.elementRef = elementRef;
|
|
5336
5336
|
this.renderer = renderer;
|
|
5337
5337
|
}
|
|
5338
|
+
ngOnDestroy() {
|
|
5339
|
+
if (this._tooltip) {
|
|
5340
|
+
this._tooltip.dispose();
|
|
5341
|
+
}
|
|
5342
|
+
}
|
|
5338
5343
|
ngOnChanges(changes) {
|
|
5339
5344
|
if (changes['tooltip']) {
|
|
5340
5345
|
if (this.tooltip) {
|
|
@@ -10283,14 +10288,17 @@ class SwitchComponent extends AbstractComponent {
|
|
|
10283
10288
|
}
|
|
10284
10289
|
}
|
|
10285
10290
|
onWrite(data) {
|
|
10291
|
+
this.data = data;
|
|
10292
|
+
}
|
|
10293
|
+
ngAfterViewInit() {
|
|
10286
10294
|
if (this.el && this.el.nativeElement) {
|
|
10287
|
-
if (data === undefined || data === null)
|
|
10295
|
+
if (this.data === undefined || this.data === null)
|
|
10288
10296
|
return;
|
|
10289
|
-
if (typeof data === 'string') {
|
|
10290
|
-
this.el.nativeElement.checked = /^true$/i.test(data);
|
|
10297
|
+
if (typeof this.data === 'string') {
|
|
10298
|
+
this.el.nativeElement.checked = /^true$/i.test(this.data);
|
|
10291
10299
|
}
|
|
10292
10300
|
else {
|
|
10293
|
-
this.el.nativeElement.checked = data;
|
|
10301
|
+
this.el.nativeElement.checked = this.data;
|
|
10294
10302
|
}
|
|
10295
10303
|
}
|
|
10296
10304
|
}
|