monkey-style-guide-v2 0.0.115 → 0.0.116
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.
|
@@ -2,7 +2,7 @@ import { trigger, state, transition, style, animate, keyframes } from '@angular/
|
|
|
2
2
|
import * as i1 from '@angular/common';
|
|
3
3
|
import { CommonModule, NgTemplateOutlet, CurrencyPipe } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, input, Component, TemplateRef, inject, booleanAttribute, Input, HostBinding, ViewEncapsulation, output, Directive,
|
|
5
|
+
import { Injectable, input, Component, TemplateRef, inject, booleanAttribute, Input, HostBinding, ViewEncapsulation, output, Directive, InjectionToken, EventEmitter, Output, ViewContainerRef, ElementRef, NgZone, DestroyRef, Optional, Inject, HostListener, NgModule, LOCALE_ID, signal, computed, ChangeDetectorRef, DEFAULT_CURRENCY_CODE, effect, ContentChildren, ContentChild, ViewChild, Injector, forwardRef, ChangeDetectionStrategy, ViewChildren, DOCUMENT } from '@angular/core';
|
|
6
6
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
7
|
import * as i3 from '@angular/forms';
|
|
8
8
|
import { Validators, NgControl, FormsModule, ReactiveFormsModule, FormControlDirective, NgModel, FormControlName, FormGroupDirective, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
@@ -926,24 +926,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
926
926
|
* MIT Licence
|
|
927
927
|
************************* */
|
|
928
928
|
class MonkeyDisplayDirective {
|
|
929
|
-
constructor() {
|
|
930
|
-
this.fallback = input(...(ngDevMode ? [undefined, { debugName: "fallback" }] : []));
|
|
931
|
-
this._elementRef = inject(ElementRef);
|
|
932
|
-
}
|
|
933
|
-
ngAfterViewInit() {
|
|
934
|
-
this.checkContent();
|
|
935
|
-
}
|
|
936
|
-
ngDoCheck() {
|
|
937
|
-
this.checkContent();
|
|
938
|
-
}
|
|
939
|
-
checkContent() {
|
|
940
|
-
const text = (this._elementRef.nativeElement.textContent ?? '').trim();
|
|
941
|
-
if (!text) {
|
|
942
|
-
this._elementRef.nativeElement.innerText = this.fallback();
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
929
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyDisplayDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
946
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
930
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.14", type: MonkeyDisplayDirective, isStandalone: false, selector: "monkey-display", ngImport: i0 }); }
|
|
947
931
|
}
|
|
948
932
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: MonkeyDisplayDirective, decorators: [{
|
|
949
933
|
type: Directive,
|
|
@@ -951,7 +935,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
951
935
|
selector: 'monkey-display',
|
|
952
936
|
standalone: false
|
|
953
937
|
}]
|
|
954
|
-
}]
|
|
938
|
+
}] });
|
|
955
939
|
|
|
956
940
|
/** ************************
|
|
957
941
|
* Copyright Monkey Exchange. All Rights Reserved
|