ngx-sfc-common 0.0.27 → 0.0.28
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.
- package/esm2020/lib/models/observable.model.mjs +4 -9
- package/fesm2015/ngx-sfc-common.mjs +157 -162
- package/fesm2015/ngx-sfc-common.mjs.map +1 -1
- package/fesm2020/ngx-sfc-common.mjs +154 -159
- package/fesm2020/ngx-sfc-common.mjs.map +1 -1
- package/lib/models/observable.model.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { BehaviorSubject
|
|
2
|
-
import { isDefined } from "../utils";
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
3
2
|
export class ObservableModel {
|
|
4
3
|
constructor(defaultValue = null) {
|
|
5
4
|
this.defaultValue = defaultValue;
|
|
6
|
-
this.subject =
|
|
7
|
-
? new BehaviorSubject(this.defaultValue) : new Subject();
|
|
5
|
+
this.subject = new BehaviorSubject(this.defaultValue);
|
|
8
6
|
this.value$ = this.subject.asObservable();
|
|
9
7
|
}
|
|
10
|
-
get value() {
|
|
11
|
-
return this.subject instanceof (BehaviorSubject)
|
|
12
|
-
? this.subject.value || this.defaultValue : null;
|
|
13
|
-
}
|
|
8
|
+
get value() { return this.subject.value; }
|
|
14
9
|
}
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzZXJ2YWJsZS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zZmMtY29tbW9uL3NyYy9saWIvbW9kZWxzL29ic2VydmFibGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBdUIsTUFBTSxNQUFNLENBQUM7QUFHNUQsTUFBTSxPQUFPLGVBQWU7SUFFeEIsWUFBb0IsZUFBeUIsSUFBSTtRQUE3QixpQkFBWSxHQUFaLFlBQVksQ0FBaUI7UUFFMUMsWUFBTyxHQUF1QixJQUFJLGVBQWUsQ0FBSSxJQUFJLENBQUMsWUFBYSxDQUFDLENBQUM7UUFFekUsV0FBTSxHQUFrQixJQUFJLENBQUMsT0FBTyxDQUFDLFlBQVksRUFBRSxDQUFDO0lBSk4sQ0FBQztJQU10RCxJQUFXLEtBQUssS0FBZSxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztDQUM5RCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJlaGF2aW9yU3ViamVjdCwgT2JzZXJ2YWJsZSwgU3ViamVjdCB9IGZyb20gXCJyeGpzXCI7XHJcbmltcG9ydCB7IGlzRGVmaW5lZCB9IGZyb20gXCIuLi91dGlsc1wiO1xyXG5cclxuZXhwb3J0IGNsYXNzIE9ic2VydmFibGVNb2RlbDxUPiB7XHJcblxyXG4gICAgY29uc3RydWN0b3IocHJpdmF0ZSBkZWZhdWx0VmFsdWU6IFQgfCBudWxsID0gbnVsbCkgeyB9XHJcblxyXG4gICAgcHVibGljIHN1YmplY3Q6IEJlaGF2aW9yU3ViamVjdDxUPiA9IG5ldyBCZWhhdmlvclN1YmplY3Q8VD4odGhpcy5kZWZhdWx0VmFsdWUhKTtcclxuXHJcbiAgICBwdWJsaWMgdmFsdWUkOiBPYnNlcnZhYmxlPFQ+ID0gdGhpcy5zdWJqZWN0LmFzT2JzZXJ2YWJsZSgpO1xyXG5cclxuICAgIHB1YmxpYyBnZXQgdmFsdWUoKTogVCB8IG51bGwgeyByZXR1cm4gdGhpcy5zdWJqZWN0LnZhbHVlOyB9XHJcbn0iXX0=
|
|
@@ -4,7 +4,7 @@ import * as i1$1 from '@angular/common';
|
|
|
4
4
|
import { isPlatformBrowser, formatDate, CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1$2 from '@fortawesome/angular-fontawesome';
|
|
6
6
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
7
|
-
import { Subject,
|
|
7
|
+
import { Subject, BehaviorSubject, fromEvent, Observable, distinctUntilChanged, startWith, filter, map, EMPTY, combineLatest, tap, switchMap, of } from 'rxjs';
|
|
8
8
|
import * as i1 from '@angular/platform-browser';
|
|
9
9
|
import { __awaiter } from 'tslib';
|
|
10
10
|
import { HttpParams } from '@angular/common/http';
|
|
@@ -388,6 +388,96 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
388
388
|
}]
|
|
389
389
|
}] });
|
|
390
390
|
|
|
391
|
+
class ObservableModel {
|
|
392
|
+
constructor(defaultValue = null) {
|
|
393
|
+
this.defaultValue = defaultValue;
|
|
394
|
+
this.subject = new BehaviorSubject(this.defaultValue);
|
|
395
|
+
this.value$ = this.subject.asObservable();
|
|
396
|
+
}
|
|
397
|
+
get value() { return this.subject.value; }
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
class ReloadService {
|
|
401
|
+
constructor() {
|
|
402
|
+
/* Properties */
|
|
403
|
+
this.model = new ObservableModel();
|
|
404
|
+
}
|
|
405
|
+
get reload$() { return this.model.value$; }
|
|
406
|
+
/* End Properties */
|
|
407
|
+
reload(...ids) {
|
|
408
|
+
this.model.subject.next(ids);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
ReloadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ReloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
412
|
+
ReloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ReloadService, providedIn: 'root' });
|
|
413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ReloadService, decorators: [{
|
|
414
|
+
type: Injectable,
|
|
415
|
+
args: [{ providedIn: 'root' }]
|
|
416
|
+
}] });
|
|
417
|
+
|
|
418
|
+
class ClickOutsideDirective {
|
|
419
|
+
constructor(elementRef, document) {
|
|
420
|
+
this.elementRef = elementRef;
|
|
421
|
+
this.document = document;
|
|
422
|
+
/**
|
|
423
|
+
* Toggler for checking ouside click event
|
|
424
|
+
*/
|
|
425
|
+
this.listening = false;
|
|
426
|
+
/**
|
|
427
|
+
* Emitter for click event
|
|
428
|
+
*/
|
|
429
|
+
this.action = new EventEmitter();
|
|
430
|
+
}
|
|
431
|
+
ngAfterViewInit() {
|
|
432
|
+
// capture: true allow to catch event in early state (ignore stop propagation)
|
|
433
|
+
this._clickSubscription = fromEvent(this.document, 'click', { capture: true })
|
|
434
|
+
.subscribe(event => this.onClick(event));
|
|
435
|
+
}
|
|
436
|
+
ngOnDestroy() {
|
|
437
|
+
var _a;
|
|
438
|
+
(_a = this._clickSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
439
|
+
}
|
|
440
|
+
onClick(event) {
|
|
441
|
+
if (event instanceof MouseEvent && this.listening) {
|
|
442
|
+
const clickOutsideEvent = {
|
|
443
|
+
target: event.target,
|
|
444
|
+
value: !this.isDescendant(this.elementRef.nativeElement, event.target)
|
|
445
|
+
};
|
|
446
|
+
this.action.emit(clickOutsideEvent);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
isDescendant(parent, child) {
|
|
450
|
+
let node = child;
|
|
451
|
+
while (node !== null) {
|
|
452
|
+
if (node === parent) {
|
|
453
|
+
return true;
|
|
454
|
+
}
|
|
455
|
+
else {
|
|
456
|
+
node = node.parentNode;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
return false;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
463
|
+
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ClickOutsideDirective, selector: "[sfcClickOutside]", inputs: { listening: ["sfcClickOutside", "listening"] }, outputs: { action: "action" }, ngImport: i0 });
|
|
464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
465
|
+
type: Directive,
|
|
466
|
+
args: [{
|
|
467
|
+
selector: '[sfcClickOutside]'
|
|
468
|
+
}]
|
|
469
|
+
}], ctorParameters: function () {
|
|
470
|
+
return [{ type: i0.ElementRef }, { type: Document, decorators: [{
|
|
471
|
+
type: Inject,
|
|
472
|
+
args: [DOCUMENT]
|
|
473
|
+
}] }];
|
|
474
|
+
}, propDecorators: { listening: [{
|
|
475
|
+
type: Input,
|
|
476
|
+
args: ['sfcClickOutside']
|
|
477
|
+
}], action: [{
|
|
478
|
+
type: Output
|
|
479
|
+
}] } });
|
|
480
|
+
|
|
391
481
|
class CommonConstants {
|
|
392
482
|
}
|
|
393
483
|
CommonConstants.NOT_FOUND_INDEX = -1;
|
|
@@ -434,6 +524,72 @@ UIConstants.CSS_CLASS_TOP = 'top';
|
|
|
434
524
|
UIConstants.CSS_CLASS_SCROLL = 'scroll';
|
|
435
525
|
UIConstants.RGB_OPACITY_PLACEHOLDER = '{opacity}';
|
|
436
526
|
|
|
527
|
+
class ShowHideElementDirective {
|
|
528
|
+
constructor(el) {
|
|
529
|
+
this.el = el;
|
|
530
|
+
this.SHOW_HIDE_TRANSITION_DELAY_DEFAULT = 0.5;
|
|
531
|
+
this.style.transition = this.getTransitionValue();
|
|
532
|
+
}
|
|
533
|
+
set showHideElement(show) {
|
|
534
|
+
this.style.visibility = show
|
|
535
|
+
? UIConstants.CSS_VISIBILITY_VISIBLE
|
|
536
|
+
: UIConstants.CSS_VISIBILITY_HIDDEN;
|
|
537
|
+
this.style.opacity = show ? 1 : 0;
|
|
538
|
+
}
|
|
539
|
+
set delay(value) {
|
|
540
|
+
this.style.transition = this.getTransitionValue(value);
|
|
541
|
+
}
|
|
542
|
+
;
|
|
543
|
+
get style() {
|
|
544
|
+
return this.el.nativeElement.style;
|
|
545
|
+
}
|
|
546
|
+
getTransitionValue(delay = this.SHOW_HIDE_TRANSITION_DELAY_DEFAULT) {
|
|
547
|
+
return `visibility ${delay}s,
|
|
548
|
+
opacity ${delay}s
|
|
549
|
+
linear`;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
ShowHideElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ShowHideElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
553
|
+
ShowHideElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ShowHideElementDirective, selector: "[sfcShowHideElement]", inputs: { showHideElement: ["sfcShowHideElement", "showHideElement"], delay: "delay" }, ngImport: i0 });
|
|
554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ShowHideElementDirective, decorators: [{
|
|
555
|
+
type: Directive,
|
|
556
|
+
args: [{
|
|
557
|
+
selector: '[sfcShowHideElement]'
|
|
558
|
+
}]
|
|
559
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { showHideElement: [{
|
|
560
|
+
type: Input,
|
|
561
|
+
args: ['sfcShowHideElement']
|
|
562
|
+
}], delay: [{
|
|
563
|
+
type: Input
|
|
564
|
+
}] } });
|
|
565
|
+
|
|
566
|
+
class IfDirective {
|
|
567
|
+
/* End Properties */
|
|
568
|
+
constructor(el) {
|
|
569
|
+
this.el = el;
|
|
570
|
+
this.display = this.style.display;
|
|
571
|
+
}
|
|
572
|
+
/* Inputs */
|
|
573
|
+
set sfcIf(show) {
|
|
574
|
+
this.style.display = show
|
|
575
|
+
? this.display || UIConstants.CSS_INITIAL
|
|
576
|
+
: UIConstants.CSS_NONE;
|
|
577
|
+
}
|
|
578
|
+
/* End Inputs */
|
|
579
|
+
/* Properties */
|
|
580
|
+
get style() { return this.el.nativeElement.style; }
|
|
581
|
+
}
|
|
582
|
+
IfDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IfDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
583
|
+
IfDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: IfDirective, selector: "[sfcIf]", inputs: { sfcIf: "sfcIf" }, ngImport: i0 });
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IfDirective, decorators: [{
|
|
585
|
+
type: Directive,
|
|
586
|
+
args: [{
|
|
587
|
+
selector: '[sfcIf]'
|
|
588
|
+
}]
|
|
589
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { sfcIf: [{
|
|
590
|
+
type: Input
|
|
591
|
+
}] } });
|
|
592
|
+
|
|
437
593
|
/**
|
|
438
594
|
* Set minutes for date
|
|
439
595
|
* @param date Date value
|
|
@@ -1527,166 +1683,6 @@ function buildHttpParams(value) {
|
|
|
1527
1683
|
}
|
|
1528
1684
|
}
|
|
1529
1685
|
|
|
1530
|
-
class ObservableModel {
|
|
1531
|
-
constructor(defaultValue = null) {
|
|
1532
|
-
this.defaultValue = defaultValue;
|
|
1533
|
-
this.subject = isDefined(this.defaultValue)
|
|
1534
|
-
? new BehaviorSubject(this.defaultValue) : new Subject();
|
|
1535
|
-
this.value$ = this.subject.asObservable();
|
|
1536
|
-
}
|
|
1537
|
-
get value() {
|
|
1538
|
-
return this.subject instanceof (BehaviorSubject)
|
|
1539
|
-
? this.subject.value || this.defaultValue : null;
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
class ReloadService {
|
|
1544
|
-
constructor() {
|
|
1545
|
-
/* Properties */
|
|
1546
|
-
this.model = new ObservableModel();
|
|
1547
|
-
}
|
|
1548
|
-
get reload$() { return this.model.value$; }
|
|
1549
|
-
/* End Properties */
|
|
1550
|
-
reload(...ids) {
|
|
1551
|
-
this.model.subject.next(ids);
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
ReloadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ReloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1555
|
-
ReloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ReloadService, providedIn: 'root' });
|
|
1556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ReloadService, decorators: [{
|
|
1557
|
-
type: Injectable,
|
|
1558
|
-
args: [{ providedIn: 'root' }]
|
|
1559
|
-
}] });
|
|
1560
|
-
|
|
1561
|
-
class ClickOutsideDirective {
|
|
1562
|
-
constructor(elementRef, document) {
|
|
1563
|
-
this.elementRef = elementRef;
|
|
1564
|
-
this.document = document;
|
|
1565
|
-
/**
|
|
1566
|
-
* Toggler for checking ouside click event
|
|
1567
|
-
*/
|
|
1568
|
-
this.listening = false;
|
|
1569
|
-
/**
|
|
1570
|
-
* Emitter for click event
|
|
1571
|
-
*/
|
|
1572
|
-
this.action = new EventEmitter();
|
|
1573
|
-
}
|
|
1574
|
-
ngAfterViewInit() {
|
|
1575
|
-
// capture: true allow to catch event in early state (ignore stop propagation)
|
|
1576
|
-
this._clickSubscription = fromEvent(this.document, 'click', { capture: true })
|
|
1577
|
-
.subscribe(event => this.onClick(event));
|
|
1578
|
-
}
|
|
1579
|
-
ngOnDestroy() {
|
|
1580
|
-
var _a;
|
|
1581
|
-
(_a = this._clickSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1582
|
-
}
|
|
1583
|
-
onClick(event) {
|
|
1584
|
-
if (event instanceof MouseEvent && this.listening) {
|
|
1585
|
-
const clickOutsideEvent = {
|
|
1586
|
-
target: event.target,
|
|
1587
|
-
value: !this.isDescendant(this.elementRef.nativeElement, event.target)
|
|
1588
|
-
};
|
|
1589
|
-
this.action.emit(clickOutsideEvent);
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
isDescendant(parent, child) {
|
|
1593
|
-
let node = child;
|
|
1594
|
-
while (node !== null) {
|
|
1595
|
-
if (node === parent) {
|
|
1596
|
-
return true;
|
|
1597
|
-
}
|
|
1598
|
-
else {
|
|
1599
|
-
node = node.parentNode;
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
return false;
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1606
|
-
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ClickOutsideDirective, selector: "[sfcClickOutside]", inputs: { listening: ["sfcClickOutside", "listening"] }, outputs: { action: "action" }, ngImport: i0 });
|
|
1607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
1608
|
-
type: Directive,
|
|
1609
|
-
args: [{
|
|
1610
|
-
selector: '[sfcClickOutside]'
|
|
1611
|
-
}]
|
|
1612
|
-
}], ctorParameters: function () {
|
|
1613
|
-
return [{ type: i0.ElementRef }, { type: Document, decorators: [{
|
|
1614
|
-
type: Inject,
|
|
1615
|
-
args: [DOCUMENT]
|
|
1616
|
-
}] }];
|
|
1617
|
-
}, propDecorators: { listening: [{
|
|
1618
|
-
type: Input,
|
|
1619
|
-
args: ['sfcClickOutside']
|
|
1620
|
-
}], action: [{
|
|
1621
|
-
type: Output
|
|
1622
|
-
}] } });
|
|
1623
|
-
|
|
1624
|
-
class ShowHideElementDirective {
|
|
1625
|
-
constructor(el) {
|
|
1626
|
-
this.el = el;
|
|
1627
|
-
this.SHOW_HIDE_TRANSITION_DELAY_DEFAULT = 0.5;
|
|
1628
|
-
this.style.transition = this.getTransitionValue();
|
|
1629
|
-
}
|
|
1630
|
-
set showHideElement(show) {
|
|
1631
|
-
this.style.visibility = show
|
|
1632
|
-
? UIConstants.CSS_VISIBILITY_VISIBLE
|
|
1633
|
-
: UIConstants.CSS_VISIBILITY_HIDDEN;
|
|
1634
|
-
this.style.opacity = show ? 1 : 0;
|
|
1635
|
-
}
|
|
1636
|
-
set delay(value) {
|
|
1637
|
-
this.style.transition = this.getTransitionValue(value);
|
|
1638
|
-
}
|
|
1639
|
-
;
|
|
1640
|
-
get style() {
|
|
1641
|
-
return this.el.nativeElement.style;
|
|
1642
|
-
}
|
|
1643
|
-
getTransitionValue(delay = this.SHOW_HIDE_TRANSITION_DELAY_DEFAULT) {
|
|
1644
|
-
return `visibility ${delay}s,
|
|
1645
|
-
opacity ${delay}s
|
|
1646
|
-
linear`;
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
ShowHideElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ShowHideElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1650
|
-
ShowHideElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ShowHideElementDirective, selector: "[sfcShowHideElement]", inputs: { showHideElement: ["sfcShowHideElement", "showHideElement"], delay: "delay" }, ngImport: i0 });
|
|
1651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ShowHideElementDirective, decorators: [{
|
|
1652
|
-
type: Directive,
|
|
1653
|
-
args: [{
|
|
1654
|
-
selector: '[sfcShowHideElement]'
|
|
1655
|
-
}]
|
|
1656
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { showHideElement: [{
|
|
1657
|
-
type: Input,
|
|
1658
|
-
args: ['sfcShowHideElement']
|
|
1659
|
-
}], delay: [{
|
|
1660
|
-
type: Input
|
|
1661
|
-
}] } });
|
|
1662
|
-
|
|
1663
|
-
class IfDirective {
|
|
1664
|
-
/* End Properties */
|
|
1665
|
-
constructor(el) {
|
|
1666
|
-
this.el = el;
|
|
1667
|
-
this.display = this.style.display;
|
|
1668
|
-
}
|
|
1669
|
-
/* Inputs */
|
|
1670
|
-
set sfcIf(show) {
|
|
1671
|
-
this.style.display = show
|
|
1672
|
-
? this.display || UIConstants.CSS_INITIAL
|
|
1673
|
-
: UIConstants.CSS_NONE;
|
|
1674
|
-
}
|
|
1675
|
-
/* End Inputs */
|
|
1676
|
-
/* Properties */
|
|
1677
|
-
get style() { return this.el.nativeElement.style; }
|
|
1678
|
-
}
|
|
1679
|
-
IfDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IfDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1680
|
-
IfDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: IfDirective, selector: "[sfcIf]", inputs: { sfcIf: "sfcIf" }, ngImport: i0 });
|
|
1681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IfDirective, decorators: [{
|
|
1682
|
-
type: Directive,
|
|
1683
|
-
args: [{
|
|
1684
|
-
selector: '[sfcIf]'
|
|
1685
|
-
}]
|
|
1686
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { sfcIf: [{
|
|
1687
|
-
type: Input
|
|
1688
|
-
}] } });
|
|
1689
|
-
|
|
1690
1686
|
class ThrowElementOnHoverDirective {
|
|
1691
1687
|
constructor(el) {
|
|
1692
1688
|
this.el = el;
|
|
@@ -3677,4 +3673,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3677
3673
|
|
|
3678
3674
|
export { BounceLoaderComponent, BrowserDocumentRef, BrowserWindowRef, ButtonComponent, ButtonType, CheckmarkComponent, CheckmarkType, CircleLoaderComponent, CircleLoaderType, ClickOutsideDirective, CloseComponent, CollapseExpandComponent, CollapseExpandContainerComponent, CollapseExpandDirective, CommonConstants, Compare, ComponentReferenceDirective, ComponentSize, ComponentSizeDirective, DOCUMENT, DOCUMENT_PROVIDERS, DateTimeConstants, DefaultModalFooterComponent, DefaultModalHeaderComponent, DelimeterComponent, DestroyParentDirective, Direction, DocumentRef, DomChangesDirective, DotComponent, DotsComponent, HamburgerComponent, HamburgerMenuComponent, IconComponent, IfDirective, ImageLoadDirective, ImageLoadService, ItemsView, LoadContainerChangesSource, LoadContainerComponent, LoadContainerLoadType, LoadContainerType, LoadMoreButtonComponent, LoadMoreService, LoaderService, MediaLimits, MessageComponent, ModalComponent, ModalOpenDirective, ModalOpenOnClickDirective, ModalService, ModalTemplate, MouseDownDirective, NgxSfcCommonModule, NotificationType, ObservableModel, PaginationComponent, PaginationConstants, PaginationService, Position, ReloadService, RepeatPipe, ResizeService, ScrollIntoViewDirective, ScrollTrackerDirective, Select, Sequence, ShowHideElementDirective, SortByPipe, SortingDirection, SortingService, State, SwitchMultiCasePipe, TemplateContentComponent, TemplateReferenceDirective, Theme, ThrowElementOnHoverDirective, ToggleComponent, ToggleSwitcherComponent, TooltipComponent, TooltipType, UIClass, UIConstants, WINDOW, WINDOW_PROVIDERS, WindowRef, addClasses, addItem, addPropertyToObject, all, any, browserDocumentProvider, browserWindowProvider, buildHttpParams, contains, convertDateToTimestamp, convertFromBase64String, convertTimestampToDate, convertToBase64String, convertUTCDateToLocalDate, count, distinct, documentFactory, documentProvider, firstItem, firstOrDefault, generateGuid, getAge, getCalcValue, getCollectionOrEmpty, getCssLikeValue, getFileExtension, getFirstDayOfMonth, getFirstDayOfMonthByYearAndMonth, getFirstDayOfYear, getLastDayOfMonth, getLastDayOfMonthByYearAndMonth, getLastDayOfYear, getNextDate, getNextMonth, getNextYear, getPreviousDate, getPreviousMonth, getPreviousYear, getRotateValue, getValueFromCssLikeValue, getWeeksNumberInMonth, hasAnyItem, hasItem, hasItemBy, hasObjectItem, hexToRgb, isArraysEquals, isAsyncData, isChromeBrowser, isDateGreat, isDateGreatOrEqual, isDateTimeGreat, isDateTimeGreatOrEqual, isDateTimeLessOrEqual, isDefined, isEmail, isEqual, isEqualDateTimes, isEqualDates, isImage, isJsonString, isNullOrEmptyString, isNumeric, isObject, isString, isTimeGreatOrEqual, isTimeLessOrEqual, lastItem, max, mergeDeep, nameof, parseBoolean, parseFileSize, readAsDataURL, remove, removeClasses, removeItem, removeItemBy, removePropertyFromObject, replaceRgbOpacity, rgbToHex, setDay, setDefaultSecondsAndMiliseconds, setHours, setMilliseconds, setMinutes, setSeconds, setYear, skip, sort, sortBy, sortByPath, stopAndPreventPropagation, sum, trim, updateItemBy, where, windowFactory, windowProvider };
|
|
3679
3675
|
//# sourceMappingURL=ngx-sfc-common.mjs.map
|
|
3680
|
-
//# sourceMappingURL=ngx-sfc-common.mjs.map
|