@rxap/directives 12.2.0-next.0 → 12.3.1
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/bundles/rxap-directives.umd.js +173 -87
- package/bundles/rxap-directives.umd.js.map +1 -1
- package/esm2015/index.js +1 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/avatar-background-image.directive.js +7 -7
- package/esm2015/lib/avatar-background-image.directive.js.map +1 -1
- package/esm2015/lib/background-image.directive.js +7 -7
- package/esm2015/lib/background-image.directive.js.map +1 -1
- package/esm2015/lib/confirm-click.js +3 -3
- package/esm2015/lib/confirm-click.js.map +1 -1
- package/esm2015/lib/contenteditable.directive.js +7 -7
- package/esm2015/lib/contenteditable.directive.js.map +1 -1
- package/esm2015/lib/full-width.directive.js +7 -7
- package/esm2015/lib/full-width.directive.js.map +1 -1
- package/esm2015/lib/if-truthy.directive.js +75 -0
- package/esm2015/lib/if-truthy.directive.js.map +1 -0
- package/esm2015/lib/method.directive.js +7 -7
- package/esm2015/lib/method.directive.js.map +1 -1
- package/esm2015/lib/movable-divider.directive.js +15 -13
- package/esm2015/lib/movable-divider.directive.js.map +1 -1
- package/esm2015/lib/prevent-default.directive.js +7 -7
- package/esm2015/lib/prevent-default.directive.js.map +1 -1
- package/esm2015/lib/share-button.directive.js +10 -10
- package/esm2015/lib/share-button.directive.js.map +1 -1
- package/esm2015/lib/stop-immediate-propagation.directive.js +7 -7
- package/esm2015/lib/stop-immediate-propagation.directive.js.map +1 -1
- package/esm2015/lib/stop-propagation.directive.js +7 -7
- package/esm2015/lib/stop-propagation.directive.js.map +1 -1
- package/fesm2015/rxap-directives.js +156 -82
- package/fesm2015/rxap-directives.js.map +1 -1
- package/index.d.ts +1 -0
- package/lib/if-truthy.directive.d.ts +33 -0
- package/package.json +4 -4
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@rxap/services'), require('@rxap/utilities'), require('@rxap/utilities/rxjs'), require('rxjs'), require('rxjs/operators')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@rxap/directives', ['exports', '@angular/core', '@rxap/services', '@rxap/utilities', '@rxap/utilities/rxjs', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.directives = {}), global.ng.core, global.i1, global.utilities, global.rxjs, global.rxjs, global.rxjs.operators));
|
|
5
|
-
}(this, (function (exports, i0, i1, utilities, rxjs, rxjs$1, operators) { 'use strict';
|
|
5
|
+
})(this, (function (exports, i0, i1, utilities, rxjs, rxjs$1, operators) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -450,9 +448,9 @@
|
|
|
450
448
|
};
|
|
451
449
|
return BackgroundImageDirective;
|
|
452
450
|
}());
|
|
453
|
-
BackgroundImageDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
454
|
-
BackgroundImageDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
455
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
451
|
+
BackgroundImageDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackgroundImageDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.ImageLoaderService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
452
|
+
BackgroundImageDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BackgroundImageDirective, selector: "[rxapBackgroundImage]", inputs: { imageUrl: ["rxapBackgroundImage", "imageUrl"], placeholderImageUrl: "placeholderImageUrl", size: "size", repeat: "repeat", position: "position" }, usesOnChanges: true, ngImport: i0__namespace });
|
|
453
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackgroundImageDirective, decorators: [{
|
|
456
454
|
type: i0.Directive,
|
|
457
455
|
args: [{
|
|
458
456
|
selector: '[rxapBackgroundImage]',
|
|
@@ -485,10 +483,10 @@
|
|
|
485
483
|
}
|
|
486
484
|
return BackgroundImageDirectiveModule;
|
|
487
485
|
}());
|
|
488
|
-
BackgroundImageDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
489
|
-
BackgroundImageDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
490
|
-
BackgroundImageDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
491
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
486
|
+
BackgroundImageDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackgroundImageDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
487
|
+
BackgroundImageDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackgroundImageDirectiveModule, declarations: [BackgroundImageDirective], exports: [BackgroundImageDirective] });
|
|
488
|
+
BackgroundImageDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackgroundImageDirectiveModule });
|
|
489
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackgroundImageDirectiveModule, decorators: [{
|
|
492
490
|
type: i0.NgModule,
|
|
493
491
|
args: [{
|
|
494
492
|
declarations: [BackgroundImageDirective],
|
|
@@ -504,9 +502,9 @@
|
|
|
504
502
|
};
|
|
505
503
|
return PreventDefaultDirective;
|
|
506
504
|
}());
|
|
507
|
-
PreventDefaultDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
508
|
-
PreventDefaultDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
509
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
505
|
+
PreventDefaultDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreventDefaultDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
506
|
+
PreventDefaultDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PreventDefaultDirective, selector: "[rxapPreventDefault]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace });
|
|
507
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreventDefaultDirective, decorators: [{
|
|
510
508
|
type: i0.Directive,
|
|
511
509
|
args: [{
|
|
512
510
|
selector: '[rxapPreventDefault]'
|
|
@@ -520,10 +518,10 @@
|
|
|
520
518
|
}
|
|
521
519
|
return PreventDefaultDirectiveModule;
|
|
522
520
|
}());
|
|
523
|
-
PreventDefaultDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
524
|
-
PreventDefaultDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
525
|
-
PreventDefaultDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
526
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
521
|
+
PreventDefaultDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreventDefaultDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
522
|
+
PreventDefaultDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreventDefaultDirectiveModule, declarations: [PreventDefaultDirective], exports: [PreventDefaultDirective] });
|
|
523
|
+
PreventDefaultDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreventDefaultDirectiveModule });
|
|
524
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreventDefaultDirectiveModule, decorators: [{
|
|
527
525
|
type: i0.NgModule,
|
|
528
526
|
args: [{
|
|
529
527
|
exports: [PreventDefaultDirective],
|
|
@@ -539,9 +537,9 @@
|
|
|
539
537
|
};
|
|
540
538
|
return StopImmediatePropagationDirective;
|
|
541
539
|
}());
|
|
542
|
-
StopImmediatePropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
543
|
-
StopImmediatePropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
544
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
540
|
+
StopImmediatePropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopImmediatePropagationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
541
|
+
StopImmediatePropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: StopImmediatePropagationDirective, selector: "[rxapStopImmediatePropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace });
|
|
542
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopImmediatePropagationDirective, decorators: [{
|
|
545
543
|
type: i0.Directive,
|
|
546
544
|
args: [{
|
|
547
545
|
selector: '[rxapStopImmediatePropagation]'
|
|
@@ -555,10 +553,10 @@
|
|
|
555
553
|
}
|
|
556
554
|
return StopImmediatePropagationDirectiveModule;
|
|
557
555
|
}());
|
|
558
|
-
StopImmediatePropagationDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
559
|
-
StopImmediatePropagationDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
560
|
-
StopImmediatePropagationDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
561
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
556
|
+
StopImmediatePropagationDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopImmediatePropagationDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
557
|
+
StopImmediatePropagationDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopImmediatePropagationDirectiveModule, declarations: [StopImmediatePropagationDirective], exports: [StopImmediatePropagationDirective] });
|
|
558
|
+
StopImmediatePropagationDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopImmediatePropagationDirectiveModule });
|
|
559
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopImmediatePropagationDirectiveModule, decorators: [{
|
|
562
560
|
type: i0.NgModule,
|
|
563
561
|
args: [{
|
|
564
562
|
exports: [StopImmediatePropagationDirective],
|
|
@@ -574,9 +572,9 @@
|
|
|
574
572
|
};
|
|
575
573
|
return StopPropagationDirective;
|
|
576
574
|
}());
|
|
577
|
-
StopPropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
578
|
-
StopPropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
579
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
575
|
+
StopPropagationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopPropagationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
576
|
+
StopPropagationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: StopPropagationDirective, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace });
|
|
577
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopPropagationDirective, decorators: [{
|
|
580
578
|
type: i0.Directive,
|
|
581
579
|
args: [{
|
|
582
580
|
selector: '[rxapStopPropagation]'
|
|
@@ -590,10 +588,10 @@
|
|
|
590
588
|
}
|
|
591
589
|
return StopPropagationDirectiveModule;
|
|
592
590
|
}());
|
|
593
|
-
StopPropagationDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
594
|
-
StopPropagationDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
595
|
-
StopPropagationDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
596
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
591
|
+
StopPropagationDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopPropagationDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
592
|
+
StopPropagationDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopPropagationDirectiveModule, declarations: [StopPropagationDirective], exports: [StopPropagationDirective] });
|
|
593
|
+
StopPropagationDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopPropagationDirectiveModule });
|
|
594
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: StopPropagationDirectiveModule, decorators: [{
|
|
597
595
|
type: i0.NgModule,
|
|
598
596
|
args: [{
|
|
599
597
|
exports: [StopPropagationDirective],
|
|
@@ -632,9 +630,9 @@
|
|
|
632
630
|
};
|
|
633
631
|
return ShareService;
|
|
634
632
|
}());
|
|
635
|
-
ShareService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
636
|
-
ShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
637
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
633
|
+
ShareService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
634
|
+
ShareService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareService, providedIn: 'root' });
|
|
635
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareService, decorators: [{
|
|
638
636
|
type: i0.Injectable,
|
|
639
637
|
args: [{ providedIn: 'root' }]
|
|
640
638
|
}] });
|
|
@@ -649,13 +647,13 @@
|
|
|
649
647
|
};
|
|
650
648
|
return ShareButtonDirective;
|
|
651
649
|
}());
|
|
652
|
-
ShareButtonDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
653
|
-
ShareButtonDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
650
|
+
ShareButtonDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
651
|
+
ShareButtonDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ShareButtonDirective, selector: "[rxapShareButton]", inputs: { url: "url", text: "text", title: "title", files: "files" }, host: { listeners: { "click": "share()" } }, ngImport: i0__namespace });
|
|
654
652
|
__decorate([
|
|
655
653
|
utilities.Required,
|
|
656
654
|
__metadata("design:type", String)
|
|
657
655
|
], ShareButtonDirective.prototype, "title", void 0);
|
|
658
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
656
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareButtonDirective, decorators: [{
|
|
659
657
|
type: i0.Directive,
|
|
660
658
|
args: [{
|
|
661
659
|
selector: '[rxapShareButton]'
|
|
@@ -677,10 +675,10 @@
|
|
|
677
675
|
}
|
|
678
676
|
return ShareButtonDirectiveModule;
|
|
679
677
|
}());
|
|
680
|
-
ShareButtonDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
681
|
-
ShareButtonDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
682
|
-
ShareButtonDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
683
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
678
|
+
ShareButtonDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareButtonDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
679
|
+
ShareButtonDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareButtonDirectiveModule, declarations: [ShareButtonDirective], exports: [ShareButtonDirective] });
|
|
680
|
+
ShareButtonDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareButtonDirectiveModule });
|
|
681
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ShareButtonDirectiveModule, decorators: [{
|
|
684
682
|
type: i0.NgModule,
|
|
685
683
|
args: [{
|
|
686
684
|
exports: [ShareButtonDirective],
|
|
@@ -694,9 +692,9 @@
|
|
|
694
692
|
}
|
|
695
693
|
return FullWidthDirective;
|
|
696
694
|
}());
|
|
697
|
-
FullWidthDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
698
|
-
FullWidthDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
699
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
695
|
+
FullWidthDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FullWidthDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
696
|
+
FullWidthDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FullWidthDirective, selector: "[rxapFullWidth]", host: { properties: { "style.width": "this.width" } }, ngImport: i0__namespace });
|
|
697
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FullWidthDirective, decorators: [{
|
|
700
698
|
type: i0.Directive,
|
|
701
699
|
args: [{
|
|
702
700
|
selector: '[rxapFullWidth]',
|
|
@@ -710,10 +708,10 @@
|
|
|
710
708
|
}
|
|
711
709
|
return FullWidthDirectiveModule;
|
|
712
710
|
}());
|
|
713
|
-
FullWidthDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
714
|
-
FullWidthDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
715
|
-
FullWidthDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
716
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
711
|
+
FullWidthDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FullWidthDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
712
|
+
FullWidthDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FullWidthDirectiveModule, declarations: [FullWidthDirective], exports: [FullWidthDirective] });
|
|
713
|
+
FullWidthDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FullWidthDirectiveModule });
|
|
714
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FullWidthDirectiveModule, decorators: [{
|
|
717
715
|
type: i0.NgModule,
|
|
718
716
|
args: [{
|
|
719
717
|
declarations: [FullWidthDirective],
|
|
@@ -742,9 +740,9 @@
|
|
|
742
740
|
});
|
|
743
741
|
return AvatarBackgroundImageDirective;
|
|
744
742
|
}(BackgroundImageDirective));
|
|
745
|
-
AvatarBackgroundImageDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
746
|
-
AvatarBackgroundImageDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
747
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
743
|
+
AvatarBackgroundImageDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AvatarBackgroundImageDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.ImageLoaderService }, { token: i1.AvatarImageService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
744
|
+
AvatarBackgroundImageDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: { name: "name", imageUrl: ["rxapAvatarBackgroundImage", "imageUrl"] }, usesInheritance: true, ngImport: i0__namespace });
|
|
745
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AvatarBackgroundImageDirective, decorators: [{
|
|
748
746
|
type: i0.Directive,
|
|
749
747
|
args: [{
|
|
750
748
|
// tslint:disable-next-line:directive-selector
|
|
@@ -775,10 +773,10 @@
|
|
|
775
773
|
}
|
|
776
774
|
return AvatarBackgroundImageDirectiveModule;
|
|
777
775
|
}());
|
|
778
|
-
AvatarBackgroundImageDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
779
|
-
AvatarBackgroundImageDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
780
|
-
AvatarBackgroundImageDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
781
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
776
|
+
AvatarBackgroundImageDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AvatarBackgroundImageDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
777
|
+
AvatarBackgroundImageDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AvatarBackgroundImageDirectiveModule, declarations: [AvatarBackgroundImageDirective], exports: [AvatarBackgroundImageDirective] });
|
|
778
|
+
AvatarBackgroundImageDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AvatarBackgroundImageDirectiveModule });
|
|
779
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AvatarBackgroundImageDirectiveModule, decorators: [{
|
|
782
780
|
type: i0.NgModule,
|
|
783
781
|
args: [{
|
|
784
782
|
declarations: [AvatarBackgroundImageDirective],
|
|
@@ -827,15 +825,15 @@
|
|
|
827
825
|
};
|
|
828
826
|
return ContenteditableDirective;
|
|
829
827
|
}());
|
|
830
|
-
ContenteditableDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
831
|
-
ContenteditableDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
828
|
+
ContenteditableDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContenteditableDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
829
|
+
ContenteditableDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ContenteditableDirective, selector: "[rxapContenteditable]", inputs: { method: ["rxapContenteditable", "method"], parameters: "parameters", initial: "initial" }, outputs: { change: "rxapContenteditable" }, host: { listeners: { "click": "onClick($event)", "input": "onInput($event)" }, properties: { "attr.contenteditable": "this.contenteditable", "attr.spellcheck": "this.spellcheck" } }, ngImport: i0__namespace });
|
|
832
830
|
__decorate([
|
|
833
831
|
utilities.DebounceCall(1000),
|
|
834
832
|
__metadata("design:type", Function),
|
|
835
833
|
__metadata("design:paramtypes", [Object]),
|
|
836
834
|
__metadata("design:returntype", Promise)
|
|
837
835
|
], ContenteditableDirective.prototype, "onInput", null);
|
|
838
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
836
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContenteditableDirective, decorators: [{
|
|
839
837
|
type: i0.Directive,
|
|
840
838
|
args: [{
|
|
841
839
|
selector: '[rxapContenteditable]'
|
|
@@ -868,10 +866,10 @@
|
|
|
868
866
|
}
|
|
869
867
|
return ContenteditableDirectiveModule;
|
|
870
868
|
}());
|
|
871
|
-
ContenteditableDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
872
|
-
ContenteditableDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
873
|
-
ContenteditableDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
874
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
869
|
+
ContenteditableDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContenteditableDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
870
|
+
ContenteditableDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContenteditableDirectiveModule, declarations: [ContenteditableDirective], exports: [ContenteditableDirective] });
|
|
871
|
+
ContenteditableDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContenteditableDirectiveModule });
|
|
872
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContenteditableDirectiveModule, decorators: [{
|
|
875
873
|
type: i0.NgModule,
|
|
876
874
|
args: [{
|
|
877
875
|
declarations: [ContenteditableDirective],
|
|
@@ -900,9 +898,9 @@
|
|
|
900
898
|
};
|
|
901
899
|
return ConfirmClick;
|
|
902
900
|
}());
|
|
903
|
-
ConfirmClick.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
904
|
-
ConfirmClick.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
905
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
901
|
+
ConfirmClick.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfirmClick, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
902
|
+
ConfirmClick.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfirmClick });
|
|
903
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfirmClick, decorators: [{
|
|
906
904
|
type: i0.Injectable
|
|
907
905
|
}], propDecorators: { hasConfirmDirective: [{
|
|
908
906
|
type: i0.Input,
|
|
@@ -1003,9 +1001,9 @@
|
|
|
1003
1001
|
};
|
|
1004
1002
|
return MethodDirective;
|
|
1005
1003
|
}());
|
|
1006
|
-
MethodDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1007
|
-
MethodDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
1008
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1004
|
+
MethodDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MethodDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1005
|
+
MethodDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MethodDirective, selector: "[rxapMethod]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], method: ["rxapMethod", "method"], parameters: "parameters", immediately: "immediately" }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick()" } }, exportAs: ["rxapMethod"], ngImport: i0__namespace });
|
|
1006
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MethodDirective, decorators: [{
|
|
1009
1007
|
type: i0.Directive,
|
|
1010
1008
|
args: [{
|
|
1011
1009
|
selector: '[rxapMethod]',
|
|
@@ -1042,10 +1040,10 @@
|
|
|
1042
1040
|
}
|
|
1043
1041
|
return MethodDirectiveModule;
|
|
1044
1042
|
}());
|
|
1045
|
-
MethodDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1046
|
-
MethodDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
1047
|
-
MethodDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
1048
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1043
|
+
MethodDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MethodDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1044
|
+
MethodDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MethodDirectiveModule, declarations: [MethodDirective], exports: [MethodDirective] });
|
|
1045
|
+
MethodDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MethodDirectiveModule });
|
|
1046
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MethodDirectiveModule, decorators: [{
|
|
1049
1047
|
type: i0.NgModule,
|
|
1050
1048
|
args: [{
|
|
1051
1049
|
declarations: [MethodDirective],
|
|
@@ -1087,11 +1085,13 @@
|
|
|
1087
1085
|
_this._fixedElementWidth = $event.clientX - _this.containerElement.getBoundingClientRect().left;
|
|
1088
1086
|
}
|
|
1089
1087
|
else if (_this.origin === 'left') {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1088
|
+
if (i0.isDevMode()) {
|
|
1089
|
+
console.log({
|
|
1090
|
+
clientWidth: _this.containerElement.clientWidth,
|
|
1091
|
+
clientX: $event.clientX,
|
|
1092
|
+
clientLeft: _this.containerElement.getBoundingClientRect().left
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
1095
|
_this._fixedElementWidth = _this.containerElement.clientWidth - $event.clientX + _this.containerElement.getBoundingClientRect().left;
|
|
1096
1096
|
}
|
|
1097
1097
|
else {
|
|
@@ -1110,8 +1110,8 @@
|
|
|
1110
1110
|
};
|
|
1111
1111
|
return MovableDividerDirective;
|
|
1112
1112
|
}());
|
|
1113
|
-
MovableDividerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1114
|
-
MovableDividerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
1113
|
+
MovableDividerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MovableDividerDirective, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1114
|
+
MovableDividerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MovableDividerDirective, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0__namespace });
|
|
1115
1115
|
__decorate([
|
|
1116
1116
|
utilities.Required,
|
|
1117
1117
|
__metadata("design:type", HTMLDivElement)
|
|
@@ -1120,7 +1120,7 @@
|
|
|
1120
1120
|
utilities.Required,
|
|
1121
1121
|
__metadata("design:type", HTMLDivElement)
|
|
1122
1122
|
], MovableDividerDirective.prototype, "fixedElement", void 0);
|
|
1123
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1123
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MovableDividerDirective, decorators: [{
|
|
1124
1124
|
type: i0.Directive,
|
|
1125
1125
|
args: [{
|
|
1126
1126
|
selector: '[rxapMovableDivider]'
|
|
@@ -1143,10 +1143,10 @@
|
|
|
1143
1143
|
}
|
|
1144
1144
|
return MovableDividerDirectiveModule;
|
|
1145
1145
|
}());
|
|
1146
|
-
MovableDividerDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1147
|
-
MovableDividerDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
1148
|
-
MovableDividerDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
1149
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1146
|
+
MovableDividerDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MovableDividerDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1147
|
+
MovableDividerDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MovableDividerDirectiveModule, declarations: [MovableDividerDirective], exports: [MovableDividerDirective] });
|
|
1148
|
+
MovableDividerDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MovableDividerDirectiveModule });
|
|
1149
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MovableDividerDirectiveModule, decorators: [{
|
|
1150
1150
|
type: i0.NgModule,
|
|
1151
1151
|
args: [{
|
|
1152
1152
|
declarations: [MovableDividerDirective],
|
|
@@ -1154,6 +1154,90 @@
|
|
|
1154
1154
|
}]
|
|
1155
1155
|
}] });
|
|
1156
1156
|
|
|
1157
|
+
// TODO : mv to rxap package
|
|
1158
|
+
var IfTruthyDirective = /** @class */ (function () {
|
|
1159
|
+
function IfTruthyDirective(templateRef, viewContainerRef, cdr) {
|
|
1160
|
+
this.templateRef = templateRef;
|
|
1161
|
+
this.viewContainerRef = viewContainerRef;
|
|
1162
|
+
this.cdr = cdr;
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
1166
|
+
*
|
|
1167
|
+
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
1168
|
+
* `NgForOf` structural directive renders its template with a specific context type.
|
|
1169
|
+
*/
|
|
1170
|
+
IfTruthyDirective.ngTemplateContextGuard = function (dir, ctx) {
|
|
1171
|
+
return true;
|
|
1172
|
+
};
|
|
1173
|
+
IfTruthyDirective.prototype.ngOnChanges = function (changes) {
|
|
1174
|
+
if (this.method && this.parameters) {
|
|
1175
|
+
this.execute();
|
|
1176
|
+
}
|
|
1177
|
+
};
|
|
1178
|
+
IfTruthyDirective.prototype.execute = function () {
|
|
1179
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1180
|
+
var result;
|
|
1181
|
+
return __generator(this, function (_a) {
|
|
1182
|
+
switch (_a.label) {
|
|
1183
|
+
case 0: return [4 /*yield*/, this.method.call(this.parameters)];
|
|
1184
|
+
case 1:
|
|
1185
|
+
result = _a.sent();
|
|
1186
|
+
if (this.hasChanged(result)) {
|
|
1187
|
+
this.viewContainerRef.clear();
|
|
1188
|
+
if (result) {
|
|
1189
|
+
this.viewContainerRef.createEmbeddedView(this.templateRef, { $implicit: result });
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
this.cdr.detectChanges();
|
|
1193
|
+
return [2 /*return*/];
|
|
1194
|
+
}
|
|
1195
|
+
});
|
|
1196
|
+
});
|
|
1197
|
+
};
|
|
1198
|
+
IfTruthyDirective.prototype.hasChanged = function (current) {
|
|
1199
|
+
if (this._last !== undefined) {
|
|
1200
|
+
var currentTrackBy = this.trackBy ? this.trackBy(current) : current;
|
|
1201
|
+
var lastTrackBy = this.trackBy ? this.trackBy(this._last) : this._last;
|
|
1202
|
+
return currentTrackBy !== lastTrackBy;
|
|
1203
|
+
}
|
|
1204
|
+
return true;
|
|
1205
|
+
};
|
|
1206
|
+
return IfTruthyDirective;
|
|
1207
|
+
}());
|
|
1208
|
+
IfTruthyDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IfTruthyDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1209
|
+
IfTruthyDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: IfTruthyDirective, selector: "[rxapIfTruthy]", inputs: { method: ["rxapIfTruthy", "method"], parameters: ["rxapIfTruthyParameters", "parameters"], trackBy: ["rxapIfTruthyTrackBy", "trackBy"] }, usesOnChanges: true, ngImport: i0__namespace });
|
|
1210
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IfTruthyDirective, decorators: [{
|
|
1211
|
+
type: i0.Directive,
|
|
1212
|
+
args: [{
|
|
1213
|
+
selector: '[rxapIfTruthy]'
|
|
1214
|
+
}]
|
|
1215
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { method: [{
|
|
1216
|
+
type: i0.Input,
|
|
1217
|
+
args: ['rxapIfTruthy']
|
|
1218
|
+
}], parameters: [{
|
|
1219
|
+
type: i0.Input,
|
|
1220
|
+
args: ['rxapIfTruthyParameters']
|
|
1221
|
+
}], trackBy: [{
|
|
1222
|
+
type: i0.Input,
|
|
1223
|
+
args: ['rxapIfTruthyTrackBy']
|
|
1224
|
+
}] } });
|
|
1225
|
+
var IfTruthyDirectiveModule = /** @class */ (function () {
|
|
1226
|
+
function IfTruthyDirectiveModule() {
|
|
1227
|
+
}
|
|
1228
|
+
return IfTruthyDirectiveModule;
|
|
1229
|
+
}());
|
|
1230
|
+
IfTruthyDirectiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IfTruthyDirectiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1231
|
+
IfTruthyDirectiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IfTruthyDirectiveModule, declarations: [IfTruthyDirective], exports: [IfTruthyDirective] });
|
|
1232
|
+
IfTruthyDirectiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IfTruthyDirectiveModule });
|
|
1233
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IfTruthyDirectiveModule, decorators: [{
|
|
1234
|
+
type: i0.NgModule,
|
|
1235
|
+
args: [{
|
|
1236
|
+
declarations: [IfTruthyDirective],
|
|
1237
|
+
exports: [IfTruthyDirective]
|
|
1238
|
+
}]
|
|
1239
|
+
}] });
|
|
1240
|
+
|
|
1157
1241
|
/**
|
|
1158
1242
|
* Generated bundle index. Do not edit.
|
|
1159
1243
|
*/
|
|
@@ -1167,6 +1251,8 @@
|
|
|
1167
1251
|
exports.ContenteditableDirectiveModule = ContenteditableDirectiveModule;
|
|
1168
1252
|
exports.FullWidthDirective = FullWidthDirective;
|
|
1169
1253
|
exports.FullWidthDirectiveModule = FullWidthDirectiveModule;
|
|
1254
|
+
exports.IfTruthyDirective = IfTruthyDirective;
|
|
1255
|
+
exports.IfTruthyDirectiveModule = IfTruthyDirectiveModule;
|
|
1170
1256
|
exports.MethodDirective = MethodDirective;
|
|
1171
1257
|
exports.MethodDirectiveModule = MethodDirectiveModule;
|
|
1172
1258
|
exports.MovableDividerDirective = MovableDividerDirective;
|
|
@@ -1183,5 +1269,5 @@
|
|
|
1183
1269
|
|
|
1184
1270
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1185
1271
|
|
|
1186
|
-
}))
|
|
1272
|
+
}));
|
|
1187
1273
|
//# sourceMappingURL=rxap-directives.umd.js.map
|