@rxap/directives 12.3.1 → 13.0.0-next.2
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/index.mjs +14 -0
- package/esm2020/lib/avatar-background-image.directive.mjs +58 -0
- package/esm2020/lib/background-image.directive.mjs +134 -0
- package/esm2020/lib/confirm-click.mjs +34 -0
- package/esm2020/lib/contenteditable.directive.mjs +81 -0
- package/esm2020/lib/full-width.directive.mjs +31 -0
- package/esm2020/lib/if-truthy.directive.mjs +72 -0
- package/esm2020/lib/method-template.directive.mjs +156 -0
- package/esm2020/lib/method.directive.mjs +118 -0
- package/esm2020/lib/movable-divider.directive.mjs +103 -0
- package/esm2020/lib/prevent-default.directive.mjs +31 -0
- package/esm2020/lib/share-button.directive.mjs +75 -0
- package/esm2020/lib/stop-immediate-propagation.directive.mjs +31 -0
- package/esm2020/lib/stop-propagation.directive.mjs +31 -0
- package/esm2020/rxap-directives.mjs +5 -0
- package/fesm2015/{rxap-directives.js → rxap-directives.mjs} +271 -109
- package/fesm2015/rxap-directives.mjs.map +1 -0
- package/fesm2020/rxap-directives.mjs +928 -0
- package/fesm2020/rxap-directives.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/lib/method-template.directive.d.ts +49 -0
- package/package.json +29 -15
- package/bundles/rxap-directives.umd.js +0 -1273
- package/bundles/rxap-directives.umd.js.map +0 -1
- package/esm2015/index.js +0 -13
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/avatar-background-image.directive.js +0 -58
- package/esm2015/lib/avatar-background-image.directive.js.map +0 -1
- package/esm2015/lib/background-image.directive.js +0 -137
- package/esm2015/lib/background-image.directive.js.map +0 -1
- package/esm2015/lib/confirm-click.js +0 -34
- package/esm2015/lib/confirm-click.js.map +0 -1
- package/esm2015/lib/contenteditable.directive.js +0 -84
- package/esm2015/lib/contenteditable.directive.js.map +0 -1
- package/esm2015/lib/full-width.directive.js +0 -31
- package/esm2015/lib/full-width.directive.js.map +0 -1
- package/esm2015/lib/if-truthy.directive.js +0 -75
- package/esm2015/lib/if-truthy.directive.js.map +0 -1
- package/esm2015/lib/method.directive.js +0 -122
- package/esm2015/lib/method.directive.js.map +0 -1
- package/esm2015/lib/movable-divider.directive.js +0 -104
- package/esm2015/lib/movable-divider.directive.js.map +0 -1
- package/esm2015/lib/prevent-default.directive.js +0 -31
- package/esm2015/lib/prevent-default.directive.js.map +0 -1
- package/esm2015/lib/share-button.directive.js +0 -77
- package/esm2015/lib/share-button.directive.js.map +0 -1
- package/esm2015/lib/stop-immediate-propagation.directive.js +0 -31
- package/esm2015/lib/stop-immediate-propagation.directive.js.map +0 -1
- package/esm2015/lib/stop-propagation.directive.js +0 -31
- package/esm2015/lib/stop-propagation.directive.js.map +0 -1
- package/esm2015/rxap-directives.js +0 -5
- package/esm2015/rxap-directives.js.map +0 -1
- package/fesm2015/rxap-directives.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate, __metadata } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { isDevMode, ElementRef, Renderer2, Directive, Inject, Input, NgModule, HostListener, Injectable, HostBinding, EventEmitter, Output } from '@angular/core';
|
|
3
|
+
import { isDevMode, ElementRef, Renderer2, Directive, Inject, Input, NgModule, HostListener, Injectable, HostBinding, EventEmitter, Output, TemplateRef, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
|
|
4
4
|
import * as i1 from '@rxap/services';
|
|
5
5
|
import { ImageLoaderService, AvatarImageService } from '@rxap/services';
|
|
6
6
|
import { Required, DebounceCall, coerceBoolean } from '@rxap/utilities';
|
|
@@ -99,23 +99,25 @@ class BackgroundImageDirective {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
BackgroundImageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
103
|
-
BackgroundImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
102
|
+
BackgroundImageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
103
|
+
BackgroundImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: BackgroundImageDirective, selector: "[rxapBackgroundImage]", inputs: { imageUrl: ["rxapBackgroundImage", "imageUrl"], placeholderImageUrl: "placeholderImageUrl", size: "size", repeat: "repeat", position: "position" }, usesOnChanges: true, ngImport: i0 });
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BackgroundImageDirective, decorators: [{
|
|
105
105
|
type: Directive,
|
|
106
106
|
args: [{
|
|
107
107
|
selector: '[rxapBackgroundImage]',
|
|
108
108
|
}]
|
|
109
|
-
}], ctorParameters: function () {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
type:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
type:
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
}], ctorParameters: function () {
|
|
110
|
+
return [{ type: i0.ElementRef, decorators: [{
|
|
111
|
+
type: Inject,
|
|
112
|
+
args: [ElementRef]
|
|
113
|
+
}] }, { type: i0.Renderer2, decorators: [{
|
|
114
|
+
type: Inject,
|
|
115
|
+
args: [Renderer2]
|
|
116
|
+
}] }, { type: i1.ImageLoaderService, decorators: [{
|
|
117
|
+
type: Inject,
|
|
118
|
+
args: [ImageLoaderService]
|
|
119
|
+
}] }];
|
|
120
|
+
}, propDecorators: { imageUrl: [{
|
|
119
121
|
type: Input,
|
|
120
122
|
args: ['rxapBackgroundImage']
|
|
121
123
|
}], placeholderImageUrl: [{
|
|
@@ -129,10 +131,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
129
131
|
}] } });
|
|
130
132
|
class BackgroundImageDirectiveModule {
|
|
131
133
|
}
|
|
132
|
-
BackgroundImageDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
133
|
-
BackgroundImageDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
134
|
-
BackgroundImageDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
134
|
+
BackgroundImageDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BackgroundImageDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
135
|
+
BackgroundImageDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BackgroundImageDirectiveModule, declarations: [BackgroundImageDirective], exports: [BackgroundImageDirective] });
|
|
136
|
+
BackgroundImageDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BackgroundImageDirectiveModule });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BackgroundImageDirectiveModule, decorators: [{
|
|
136
138
|
type: NgModule,
|
|
137
139
|
args: [{
|
|
138
140
|
declarations: [BackgroundImageDirective],
|
|
@@ -145,9 +147,9 @@ class PreventDefaultDirective {
|
|
|
145
147
|
$event.preventDefault();
|
|
146
148
|
}
|
|
147
149
|
}
|
|
148
|
-
PreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
149
|
-
PreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
150
|
+
PreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
151
|
+
PreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: PreventDefaultDirective, selector: "[rxapPreventDefault]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PreventDefaultDirective, decorators: [{
|
|
151
153
|
type: Directive,
|
|
152
154
|
args: [{
|
|
153
155
|
selector: '[rxapPreventDefault]'
|
|
@@ -158,10 +160,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
158
160
|
}] } });
|
|
159
161
|
class PreventDefaultDirectiveModule {
|
|
160
162
|
}
|
|
161
|
-
PreventDefaultDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
162
|
-
PreventDefaultDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
163
|
-
PreventDefaultDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
163
|
+
PreventDefaultDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PreventDefaultDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
164
|
+
PreventDefaultDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PreventDefaultDirectiveModule, declarations: [PreventDefaultDirective], exports: [PreventDefaultDirective] });
|
|
165
|
+
PreventDefaultDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PreventDefaultDirectiveModule });
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PreventDefaultDirectiveModule, decorators: [{
|
|
165
167
|
type: NgModule,
|
|
166
168
|
args: [{
|
|
167
169
|
exports: [PreventDefaultDirective],
|
|
@@ -174,9 +176,9 @@ class StopImmediatePropagationDirective {
|
|
|
174
176
|
$event.stopImmediatePropagation();
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
|
-
StopImmediatePropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
178
|
-
StopImmediatePropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
179
|
+
StopImmediatePropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopImmediatePropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
180
|
+
StopImmediatePropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: StopImmediatePropagationDirective, selector: "[rxapStopImmediatePropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopImmediatePropagationDirective, decorators: [{
|
|
180
182
|
type: Directive,
|
|
181
183
|
args: [{
|
|
182
184
|
selector: '[rxapStopImmediatePropagation]'
|
|
@@ -187,10 +189,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
187
189
|
}] } });
|
|
188
190
|
class StopImmediatePropagationDirectiveModule {
|
|
189
191
|
}
|
|
190
|
-
StopImmediatePropagationDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
191
|
-
StopImmediatePropagationDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
192
|
-
StopImmediatePropagationDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
192
|
+
StopImmediatePropagationDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopImmediatePropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
193
|
+
StopImmediatePropagationDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopImmediatePropagationDirectiveModule, declarations: [StopImmediatePropagationDirective], exports: [StopImmediatePropagationDirective] });
|
|
194
|
+
StopImmediatePropagationDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopImmediatePropagationDirectiveModule });
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopImmediatePropagationDirectiveModule, decorators: [{
|
|
194
196
|
type: NgModule,
|
|
195
197
|
args: [{
|
|
196
198
|
exports: [StopImmediatePropagationDirective],
|
|
@@ -203,9 +205,9 @@ class StopPropagationDirective {
|
|
|
203
205
|
$event.stopPropagation();
|
|
204
206
|
}
|
|
205
207
|
}
|
|
206
|
-
StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
207
|
-
StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
208
|
+
StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
209
|
+
StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: StopPropagationDirective, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
209
211
|
type: Directive,
|
|
210
212
|
args: [{
|
|
211
213
|
selector: '[rxapStopPropagation]'
|
|
@@ -216,10 +218,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
216
218
|
}] } });
|
|
217
219
|
class StopPropagationDirectiveModule {
|
|
218
220
|
}
|
|
219
|
-
StopPropagationDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
220
|
-
StopPropagationDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
221
|
-
StopPropagationDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
221
|
+
StopPropagationDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopPropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
222
|
+
StopPropagationDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopPropagationDirectiveModule, declarations: [StopPropagationDirective], exports: [StopPropagationDirective] });
|
|
223
|
+
StopPropagationDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopPropagationDirectiveModule });
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: StopPropagationDirectiveModule, decorators: [{
|
|
223
225
|
type: NgModule,
|
|
224
226
|
args: [{
|
|
225
227
|
exports: [StopPropagationDirective],
|
|
@@ -248,9 +250,9 @@ class ShareService {
|
|
|
248
250
|
return !!navigator.share;
|
|
249
251
|
}
|
|
250
252
|
}
|
|
251
|
-
ShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
252
|
-
ShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
253
|
+
ShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
254
|
+
ShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareService, providedIn: 'root' });
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareService, decorators: [{
|
|
254
256
|
type: Injectable,
|
|
255
257
|
args: [{ providedIn: 'root' }]
|
|
256
258
|
}] });
|
|
@@ -264,13 +266,13 @@ class ShareButtonDirective {
|
|
|
264
266
|
.catch(err => console.error('share failed', err.message));
|
|
265
267
|
}
|
|
266
268
|
}
|
|
267
|
-
ShareButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
268
|
-
ShareButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
269
|
+
ShareButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
270
|
+
ShareButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: ShareButtonDirective, selector: "[rxapShareButton]", inputs: { url: "url", text: "text", title: "title", files: "files" }, host: { listeners: { "click": "share()" } }, ngImport: i0 });
|
|
269
271
|
__decorate([
|
|
270
272
|
Required,
|
|
271
273
|
__metadata("design:type", String)
|
|
272
274
|
], ShareButtonDirective.prototype, "title", void 0);
|
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareButtonDirective, decorators: [{
|
|
274
276
|
type: Directive,
|
|
275
277
|
args: [{
|
|
276
278
|
selector: '[rxapShareButton]'
|
|
@@ -289,10 +291,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
289
291
|
}] } });
|
|
290
292
|
class ShareButtonDirectiveModule {
|
|
291
293
|
}
|
|
292
|
-
ShareButtonDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
293
|
-
ShareButtonDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
294
|
-
ShareButtonDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
294
|
+
ShareButtonDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
295
|
+
ShareButtonDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareButtonDirectiveModule, declarations: [ShareButtonDirective], exports: [ShareButtonDirective] });
|
|
296
|
+
ShareButtonDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareButtonDirectiveModule });
|
|
297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ShareButtonDirectiveModule, decorators: [{
|
|
296
298
|
type: NgModule,
|
|
297
299
|
args: [{
|
|
298
300
|
exports: [ShareButtonDirective],
|
|
@@ -305,9 +307,9 @@ class FullWidthDirective {
|
|
|
305
307
|
this.width = '100%';
|
|
306
308
|
}
|
|
307
309
|
}
|
|
308
|
-
FullWidthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
309
|
-
FullWidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
310
|
+
FullWidthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FullWidthDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
311
|
+
FullWidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: FullWidthDirective, selector: "[rxapFullWidth]", host: { properties: { "style.width": "this.width" } }, ngImport: i0 });
|
|
312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FullWidthDirective, decorators: [{
|
|
311
313
|
type: Directive,
|
|
312
314
|
args: [{
|
|
313
315
|
selector: '[rxapFullWidth]',
|
|
@@ -318,10 +320,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
318
320
|
}] } });
|
|
319
321
|
class FullWidthDirectiveModule {
|
|
320
322
|
}
|
|
321
|
-
FullWidthDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
322
|
-
FullWidthDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
323
|
-
FullWidthDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
323
|
+
FullWidthDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FullWidthDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
324
|
+
FullWidthDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FullWidthDirectiveModule, declarations: [FullWidthDirective], exports: [FullWidthDirective] });
|
|
325
|
+
FullWidthDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FullWidthDirectiveModule });
|
|
326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FullWidthDirectiveModule, decorators: [{
|
|
325
327
|
type: NgModule,
|
|
326
328
|
args: [{
|
|
327
329
|
declarations: [FullWidthDirective],
|
|
@@ -343,27 +345,29 @@ class AvatarBackgroundImageDirective extends BackgroundImageDirective {
|
|
|
343
345
|
}
|
|
344
346
|
}
|
|
345
347
|
}
|
|
346
|
-
AvatarBackgroundImageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
347
|
-
AvatarBackgroundImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
348
|
+
AvatarBackgroundImageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AvatarBackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }, { token: AvatarImageService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
349
|
+
AvatarBackgroundImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: { name: "name", imageUrl: ["rxapAvatarBackgroundImage", "imageUrl"] }, usesInheritance: true, ngImport: i0 });
|
|
350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AvatarBackgroundImageDirective, decorators: [{
|
|
349
351
|
type: Directive,
|
|
350
352
|
args: [{
|
|
351
353
|
// tslint:disable-next-line:directive-selector
|
|
352
354
|
selector: '[rxapAvatarBackgroundImage]',
|
|
353
355
|
}]
|
|
354
|
-
}], ctorParameters: function () {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
type:
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
type:
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
type:
|
|
365
|
-
|
|
366
|
-
|
|
356
|
+
}], ctorParameters: function () {
|
|
357
|
+
return [{ type: i0.ElementRef, decorators: [{
|
|
358
|
+
type: Inject,
|
|
359
|
+
args: [ElementRef]
|
|
360
|
+
}] }, { type: i0.Renderer2, decorators: [{
|
|
361
|
+
type: Inject,
|
|
362
|
+
args: [Renderer2]
|
|
363
|
+
}] }, { type: i1.ImageLoaderService, decorators: [{
|
|
364
|
+
type: Inject,
|
|
365
|
+
args: [ImageLoaderService]
|
|
366
|
+
}] }, { type: i1.AvatarImageService, decorators: [{
|
|
367
|
+
type: Inject,
|
|
368
|
+
args: [AvatarImageService]
|
|
369
|
+
}] }];
|
|
370
|
+
}, propDecorators: { name: [{
|
|
367
371
|
type: Input
|
|
368
372
|
}], imageUrl: [{
|
|
369
373
|
type: Input,
|
|
@@ -371,10 +375,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
371
375
|
}] } });
|
|
372
376
|
class AvatarBackgroundImageDirectiveModule {
|
|
373
377
|
}
|
|
374
|
-
AvatarBackgroundImageDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
375
|
-
AvatarBackgroundImageDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
376
|
-
AvatarBackgroundImageDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
378
|
+
AvatarBackgroundImageDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
379
|
+
AvatarBackgroundImageDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, declarations: [AvatarBackgroundImageDirective], exports: [AvatarBackgroundImageDirective] });
|
|
380
|
+
AvatarBackgroundImageDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AvatarBackgroundImageDirectiveModule });
|
|
381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, decorators: [{
|
|
378
382
|
type: NgModule,
|
|
379
383
|
args: [{
|
|
380
384
|
declarations: [AvatarBackgroundImageDirective],
|
|
@@ -413,15 +417,15 @@ class ContenteditableDirective {
|
|
|
413
417
|
});
|
|
414
418
|
}
|
|
415
419
|
}
|
|
416
|
-
ContenteditableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
417
|
-
ContenteditableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
420
|
+
ContenteditableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContenteditableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
421
|
+
ContenteditableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
418
422
|
__decorate([
|
|
419
423
|
DebounceCall(1000),
|
|
420
424
|
__metadata("design:type", Function),
|
|
421
425
|
__metadata("design:paramtypes", [Object]),
|
|
422
426
|
__metadata("design:returntype", Promise)
|
|
423
427
|
], ContenteditableDirective.prototype, "onInput", null);
|
|
424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContenteditableDirective, decorators: [{
|
|
425
429
|
type: Directive,
|
|
426
430
|
args: [{
|
|
427
431
|
selector: '[rxapContenteditable]'
|
|
@@ -451,10 +455,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
451
455
|
}] } });
|
|
452
456
|
class ContenteditableDirectiveModule {
|
|
453
457
|
}
|
|
454
|
-
ContenteditableDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
455
|
-
ContenteditableDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
456
|
-
ContenteditableDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
458
|
+
ContenteditableDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContenteditableDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
459
|
+
ContenteditableDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContenteditableDirectiveModule, declarations: [ContenteditableDirective], exports: [ContenteditableDirective] });
|
|
460
|
+
ContenteditableDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContenteditableDirectiveModule });
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContenteditableDirectiveModule, decorators: [{
|
|
458
462
|
type: NgModule,
|
|
459
463
|
args: [{
|
|
460
464
|
declarations: [ContenteditableDirective],
|
|
@@ -478,9 +482,9 @@ class ConfirmClick {
|
|
|
478
482
|
this.execute();
|
|
479
483
|
}
|
|
480
484
|
}
|
|
481
|
-
ConfirmClick.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
482
|
-
ConfirmClick.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
485
|
+
ConfirmClick.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ConfirmClick, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
486
|
+
ConfirmClick.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ConfirmClick });
|
|
487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ConfirmClick, decorators: [{
|
|
484
488
|
type: Injectable
|
|
485
489
|
}], propDecorators: { hasConfirmDirective: [{
|
|
486
490
|
type: Input,
|
|
@@ -563,9 +567,9 @@ class MethodDirective {
|
|
|
563
567
|
this.successful$.emit(result);
|
|
564
568
|
}
|
|
565
569
|
}
|
|
566
|
-
MethodDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
567
|
-
MethodDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
570
|
+
MethodDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
571
|
+
MethodDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", 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 });
|
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodDirective, decorators: [{
|
|
569
573
|
type: Directive,
|
|
570
574
|
args: [{
|
|
571
575
|
selector: '[rxapMethod]',
|
|
@@ -599,10 +603,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
599
603
|
}] } });
|
|
600
604
|
class MethodDirectiveModule {
|
|
601
605
|
}
|
|
602
|
-
MethodDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
603
|
-
MethodDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
604
|
-
MethodDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
605
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
606
|
+
MethodDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
607
|
+
MethodDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodDirectiveModule, declarations: [MethodDirective], exports: [MethodDirective] });
|
|
608
|
+
MethodDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodDirectiveModule });
|
|
609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodDirectiveModule, decorators: [{
|
|
606
610
|
type: NgModule,
|
|
607
611
|
args: [{
|
|
608
612
|
declarations: [MethodDirective],
|
|
@@ -667,8 +671,8 @@ class MovableDividerDirective {
|
|
|
667
671
|
this._moveDivider = true;
|
|
668
672
|
}
|
|
669
673
|
}
|
|
670
|
-
MovableDividerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
671
|
-
MovableDividerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
674
|
+
MovableDividerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MovableDividerDirective, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
675
|
+
MovableDividerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: MovableDividerDirective, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 });
|
|
672
676
|
__decorate([
|
|
673
677
|
Required,
|
|
674
678
|
__metadata("design:type", HTMLDivElement)
|
|
@@ -677,7 +681,7 @@ __decorate([
|
|
|
677
681
|
Required,
|
|
678
682
|
__metadata("design:type", HTMLDivElement)
|
|
679
683
|
], MovableDividerDirective.prototype, "fixedElement", void 0);
|
|
680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MovableDividerDirective, decorators: [{
|
|
681
685
|
type: Directive,
|
|
682
686
|
args: [{
|
|
683
687
|
selector: '[rxapMovableDivider]'
|
|
@@ -697,10 +701,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
697
701
|
}] } });
|
|
698
702
|
class MovableDividerDirectiveModule {
|
|
699
703
|
}
|
|
700
|
-
MovableDividerDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
701
|
-
MovableDividerDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
702
|
-
MovableDividerDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
704
|
+
MovableDividerDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MovableDividerDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
705
|
+
MovableDividerDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MovableDividerDirectiveModule, declarations: [MovableDividerDirective], exports: [MovableDividerDirective] });
|
|
706
|
+
MovableDividerDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MovableDividerDirectiveModule });
|
|
707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MovableDividerDirectiveModule, decorators: [{
|
|
704
708
|
type: NgModule,
|
|
705
709
|
args: [{
|
|
706
710
|
declarations: [MovableDividerDirective],
|
|
@@ -750,9 +754,9 @@ class IfTruthyDirective {
|
|
|
750
754
|
return true;
|
|
751
755
|
}
|
|
752
756
|
}
|
|
753
|
-
IfTruthyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
754
|
-
IfTruthyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
757
|
+
IfTruthyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IfTruthyDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
758
|
+
IfTruthyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: IfTruthyDirective, selector: "[rxapIfTruthy]", inputs: { method: ["rxapIfTruthy", "method"], parameters: ["rxapIfTruthyParameters", "parameters"], trackBy: ["rxapIfTruthyTrackBy", "trackBy"] }, usesOnChanges: true, ngImport: i0 });
|
|
759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IfTruthyDirective, decorators: [{
|
|
756
760
|
type: Directive,
|
|
757
761
|
args: [{
|
|
758
762
|
selector: '[rxapIfTruthy]'
|
|
@@ -769,10 +773,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
769
773
|
}] } });
|
|
770
774
|
class IfTruthyDirectiveModule {
|
|
771
775
|
}
|
|
772
|
-
IfTruthyDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
773
|
-
IfTruthyDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
774
|
-
IfTruthyDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
776
|
+
IfTruthyDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IfTruthyDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
777
|
+
IfTruthyDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IfTruthyDirectiveModule, declarations: [IfTruthyDirective], exports: [IfTruthyDirective] });
|
|
778
|
+
IfTruthyDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IfTruthyDirectiveModule });
|
|
779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: IfTruthyDirectiveModule, decorators: [{
|
|
776
780
|
type: NgModule,
|
|
777
781
|
args: [{
|
|
778
782
|
declarations: [IfTruthyDirective],
|
|
@@ -780,9 +784,167 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
780
784
|
}]
|
|
781
785
|
}] });
|
|
782
786
|
|
|
787
|
+
class MethodTemplateDirective {
|
|
788
|
+
constructor(template, viewContainerRef, cdr) {
|
|
789
|
+
this.template = template;
|
|
790
|
+
this.viewContainerRef = viewContainerRef;
|
|
791
|
+
this.cdr = cdr;
|
|
792
|
+
this.withoutParameters = false;
|
|
793
|
+
this.immediately = false;
|
|
794
|
+
this.executed$ = new EventEmitter();
|
|
795
|
+
this.failure$ = new EventEmitter();
|
|
796
|
+
this.successful$ = new EventEmitter();
|
|
797
|
+
/**
|
|
798
|
+
* true - a remote method call is in progress
|
|
799
|
+
*/
|
|
800
|
+
this.executing$ = new ToggleSubject();
|
|
801
|
+
this.embedded = new EventEmitter();
|
|
802
|
+
}
|
|
803
|
+
static ngTemplateContextGuard(dir, ctx) {
|
|
804
|
+
return true;
|
|
805
|
+
}
|
|
806
|
+
ngOnChanges(changes) {
|
|
807
|
+
const parametersChanges = changes.parameters;
|
|
808
|
+
if (parametersChanges) {
|
|
809
|
+
this.execute(parametersChanges.currentValue);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
ngOnInit() {
|
|
813
|
+
this.renderLoadingTemplate();
|
|
814
|
+
if (this.withoutParameters) {
|
|
815
|
+
this.execute();
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
onConfirmed() {
|
|
819
|
+
return this.execute();
|
|
820
|
+
}
|
|
821
|
+
execute(parameters = this.parameters) {
|
|
822
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
823
|
+
this.executing$.enable();
|
|
824
|
+
try {
|
|
825
|
+
const result = yield this.method.call(parameters);
|
|
826
|
+
this.executed(result);
|
|
827
|
+
this.renderTemplate(result);
|
|
828
|
+
this.successful(result);
|
|
829
|
+
}
|
|
830
|
+
catch (error) {
|
|
831
|
+
if (isDevMode()) {
|
|
832
|
+
console.error(`Method directive execution failed:`, error.message);
|
|
833
|
+
}
|
|
834
|
+
this.failure(error);
|
|
835
|
+
}
|
|
836
|
+
finally {
|
|
837
|
+
this.executing$.disable();
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
setParameter(parameterKey, value) {
|
|
842
|
+
this.updateParameters({ [parameterKey]: value });
|
|
843
|
+
}
|
|
844
|
+
updateParameters(parameters) {
|
|
845
|
+
var _a;
|
|
846
|
+
this.parameters = Object.assign(Object.assign({}, ((_a = this.parameters) !== null && _a !== void 0 ? _a : {})), parameters);
|
|
847
|
+
}
|
|
848
|
+
renderLoadingTemplate() {
|
|
849
|
+
if (this.loadingTemplate) {
|
|
850
|
+
this.viewContainerRef.clear();
|
|
851
|
+
this.viewContainerRef.createEmbeddedView(this.loadingTemplate);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
executed(result) {
|
|
855
|
+
this.executed$.emit(result);
|
|
856
|
+
}
|
|
857
|
+
failure(error) {
|
|
858
|
+
this.failure$.emit(error);
|
|
859
|
+
}
|
|
860
|
+
successful(result) {
|
|
861
|
+
this.successful$.emit(result);
|
|
862
|
+
}
|
|
863
|
+
renderTemplate(result) {
|
|
864
|
+
this.viewContainerRef.clear();
|
|
865
|
+
try {
|
|
866
|
+
this.viewContainerRef.createEmbeddedView(this.template, { $implicit: result });
|
|
867
|
+
}
|
|
868
|
+
catch (error) {
|
|
869
|
+
if (this.errorTemplate) {
|
|
870
|
+
this.viewContainerRef.createEmbeddedView(this.errorTemplate, { $implicit: error, message: error.message });
|
|
871
|
+
}
|
|
872
|
+
console.error(error.message);
|
|
873
|
+
}
|
|
874
|
+
this.embedded.emit();
|
|
875
|
+
this.cdr.detectChanges();
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
MethodTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodTemplateDirective, deps: [{ token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
879
|
+
MethodTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: MethodTemplateDirective, selector: "[rxapMethod]", inputs: { method: ["rxapMethodCall", "method"], parameters: ["rxapMethodParameters", "parameters"], errorTemplate: ["rxapMethodError", "errorTemplate"], loadingTemplate: ["rxapMethodLoading", "loadingTemplate"], withoutParameters: ["rxapMethodWithoutParameters", "withoutParameters"], immediately: "immediately" }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful", executing$: "executing", embedded: "embedded" }, host: { listeners: { "confirmed": "onConfirmed()" } }, exportAs: ["rxapMethod"], usesOnChanges: true, ngImport: i0 });
|
|
880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodTemplateDirective, decorators: [{
|
|
881
|
+
type: Directive,
|
|
882
|
+
args: [{
|
|
883
|
+
selector: '[rxapMethod]',
|
|
884
|
+
exportAs: 'rxapMethod'
|
|
885
|
+
}]
|
|
886
|
+
}], ctorParameters: function () {
|
|
887
|
+
return [{ type: i0.TemplateRef, decorators: [{
|
|
888
|
+
type: Inject,
|
|
889
|
+
args: [TemplateRef]
|
|
890
|
+
}] }, { type: i0.ViewContainerRef, decorators: [{
|
|
891
|
+
type: Inject,
|
|
892
|
+
args: [ViewContainerRef]
|
|
893
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
894
|
+
type: Inject,
|
|
895
|
+
args: [ChangeDetectorRef]
|
|
896
|
+
}] }];
|
|
897
|
+
}, propDecorators: { method: [{
|
|
898
|
+
type: Input,
|
|
899
|
+
args: ['rxapMethodCall']
|
|
900
|
+
}], parameters: [{
|
|
901
|
+
type: Input,
|
|
902
|
+
args: ['rxapMethodParameters']
|
|
903
|
+
}], errorTemplate: [{
|
|
904
|
+
type: Input,
|
|
905
|
+
args: ['rxapMethodError']
|
|
906
|
+
}], loadingTemplate: [{
|
|
907
|
+
type: Input,
|
|
908
|
+
args: ['rxapMethodLoading']
|
|
909
|
+
}], withoutParameters: [{
|
|
910
|
+
type: Input,
|
|
911
|
+
args: ['rxapMethodWithoutParameters']
|
|
912
|
+
}], immediately: [{
|
|
913
|
+
type: Input
|
|
914
|
+
}], executed$: [{
|
|
915
|
+
type: Output,
|
|
916
|
+
args: ['executed']
|
|
917
|
+
}], failure$: [{
|
|
918
|
+
type: Output,
|
|
919
|
+
args: ['failure']
|
|
920
|
+
}], successful$: [{
|
|
921
|
+
type: Output,
|
|
922
|
+
args: ['successful']
|
|
923
|
+
}], executing$: [{
|
|
924
|
+
type: Output,
|
|
925
|
+
args: ['executing']
|
|
926
|
+
}], embedded: [{
|
|
927
|
+
type: Output
|
|
928
|
+
}], onConfirmed: [{
|
|
929
|
+
type: HostListener,
|
|
930
|
+
args: ['confirmed']
|
|
931
|
+
}] } });
|
|
932
|
+
class MethodTemplateDirectiveModule {
|
|
933
|
+
}
|
|
934
|
+
MethodTemplateDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodTemplateDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
935
|
+
MethodTemplateDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodTemplateDirectiveModule, declarations: [MethodTemplateDirective], exports: [MethodTemplateDirective] });
|
|
936
|
+
MethodTemplateDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodTemplateDirectiveModule });
|
|
937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MethodTemplateDirectiveModule, decorators: [{
|
|
938
|
+
type: NgModule,
|
|
939
|
+
args: [{
|
|
940
|
+
declarations: [MethodTemplateDirective],
|
|
941
|
+
exports: [MethodTemplateDirective]
|
|
942
|
+
}]
|
|
943
|
+
}] });
|
|
944
|
+
|
|
783
945
|
/**
|
|
784
946
|
* Generated bundle index. Do not edit.
|
|
785
947
|
*/
|
|
786
948
|
|
|
787
|
-
export { AvatarBackgroundImageDirective, AvatarBackgroundImageDirectiveModule, BackgroundImageDirective, BackgroundImageDirectiveModule, BackgroundPositionOptions, BackgroundRepeatOptions, BackgroundSizeOptions, ConfirmClick, ContenteditableDirective, ContenteditableDirectiveModule, FullWidthDirective, FullWidthDirectiveModule, GlobalStyleOptions, IfTruthyDirective, IfTruthyDirectiveModule, MethodDirective, MethodDirectiveModule, MovableDividerDirective, MovableDividerDirectiveModule, PreventDefaultDirective, PreventDefaultDirectiveModule, ShareButtonDirective, ShareButtonDirectiveModule, ShareService, StopImmediatePropagationDirective, StopImmediatePropagationDirectiveModule, StopPropagationDirective, StopPropagationDirectiveModule };
|
|
788
|
-
//# sourceMappingURL=rxap-directives.
|
|
949
|
+
export { AvatarBackgroundImageDirective, AvatarBackgroundImageDirectiveModule, BackgroundImageDirective, BackgroundImageDirectiveModule, BackgroundPositionOptions, BackgroundRepeatOptions, BackgroundSizeOptions, ConfirmClick, ContenteditableDirective, ContenteditableDirectiveModule, FullWidthDirective, FullWidthDirectiveModule, GlobalStyleOptions, IfTruthyDirective, IfTruthyDirectiveModule, MethodDirective, MethodDirectiveModule, MethodTemplateDirective, MethodTemplateDirectiveModule, MovableDividerDirective, MovableDividerDirectiveModule, PreventDefaultDirective, PreventDefaultDirectiveModule, ShareButtonDirective, ShareButtonDirectiveModule, ShareService, StopImmediatePropagationDirective, StopImmediatePropagationDirectiveModule, StopPropagationDirective, StopPropagationDirectiveModule };
|
|
950
|
+
//# sourceMappingURL=rxap-directives.mjs.map
|