@rxap/directives 16.0.0-dev.1 → 16.0.0-dev.3
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/CHANGELOG.md +266 -0
- package/README.md +8 -22
- package/esm2022/index.mjs +1 -1
- package/esm2022/lib/avatar-background-image.directive.mjs +16 -29
- package/esm2022/lib/background-image.directive.mjs +12 -25
- package/esm2022/lib/confirm-click.mjs +6 -7
- package/esm2022/lib/contenteditable.directive.mjs +9 -22
- package/esm2022/lib/full-width.directive.mjs +7 -20
- package/esm2022/lib/if-truthy.directive.mjs +13 -26
- package/esm2022/lib/method-template.directive.mjs +23 -33
- package/esm2022/lib/method.directive.mjs +17 -30
- package/esm2022/lib/movable-divider.directive.mjs +12 -24
- package/esm2022/lib/prevent-default.directive.mjs +8 -21
- package/esm2022/lib/share-button.directive.mjs +18 -27
- package/esm2022/lib/stop-immediate-propagation.directive.mjs +8 -21
- package/esm2022/lib/stop-propagation.directive.mjs +8 -21
- package/esm2022/rxap-directives.mjs +1 -1
- package/fesm2022/rxap-directives.mjs +116 -239
- package/fesm2022/rxap-directives.mjs.map +1 -1
- package/lib/avatar-background-image.directive.d.ts +3 -8
- package/lib/background-image.directive.d.ts +2 -7
- package/lib/confirm-click.d.ts +1 -1
- package/lib/contenteditable.directive.d.ts +3 -8
- package/lib/full-width.directive.d.ts +1 -6
- package/lib/if-truthy.directive.d.ts +7 -12
- package/lib/method-template.directive.d.ts +6 -10
- package/lib/method.directive.d.ts +5 -10
- package/lib/movable-divider.directive.d.ts +1 -6
- package/lib/prevent-default.directive.d.ts +1 -6
- package/lib/share-button.directive.d.ts +1 -6
- package/lib/stop-immediate-propagation.directive.d.ts +1 -6
- package/lib/stop-propagation.directive.d.ts +1 -6
- package/package.json +48 -39
- package/LICENSE +0 -21
- package/collection.json +0 -10
- package/migration.json +0 -10
- package/src/migrations/v11-2-0/index.d.ts +0 -2
- package/src/migrations/v11-2-0/index.js +0 -29
- package/src/migrations/v11-2-0/index.js.map +0 -1
- package/src/schematics/ng-add/index.d.ts +0 -2
- package/src/schematics/ng-add/index.js +0 -8
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { isDevMode, ElementRef, Renderer2, Directive, Inject, Input,
|
|
2
|
+
import { isDevMode, ElementRef, Renderer2, Directive, Inject, Input, HostListener, Injectable, HostBinding, EventEmitter, Output, TemplateRef, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@rxap/services';
|
|
4
4
|
import { ImageLoaderService, AvatarImageService } from '@rxap/services';
|
|
5
5
|
import { __decorate, __metadata } from 'tslib';
|
|
6
6
|
import { Required, DebounceCall, coerceBoolean } from '@rxap/utilities';
|
|
7
|
-
import { ToggleSubject } from '@rxap/
|
|
7
|
+
import { ToggleSubject } from '@rxap/rxjs';
|
|
8
8
|
import { Subscription, fromEvent } from 'rxjs';
|
|
9
9
|
import { tap } from 'rxjs/operators';
|
|
10
10
|
|
|
@@ -57,18 +57,18 @@ class BackgroundImageDirective {
|
|
|
57
57
|
for (const propertyKey of Object.keys(changes)) {
|
|
58
58
|
switch (propertyKey) {
|
|
59
59
|
case 'imageUrl':
|
|
60
|
-
if (changes
|
|
61
|
-
this.imageUrlChange(changes
|
|
60
|
+
if (changes['imageUrl'].currentValue) {
|
|
61
|
+
this.imageUrlChange(changes['imageUrl'].currentValue);
|
|
62
62
|
}
|
|
63
63
|
break;
|
|
64
64
|
case 'size':
|
|
65
|
-
this.sizeChange(changes
|
|
65
|
+
this.sizeChange(changes['size'].currentValue);
|
|
66
66
|
break;
|
|
67
67
|
case 'repeat':
|
|
68
|
-
this.repeatChange(changes
|
|
68
|
+
this.repeatChange(changes['repeat'].currentValue);
|
|
69
69
|
break;
|
|
70
70
|
case 'position':
|
|
71
|
-
this.positionChange(changes
|
|
71
|
+
this.positionChange(changes['position'].currentValue);
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -96,13 +96,14 @@ class BackgroundImageDirective {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
100
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
99
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
100
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: BackgroundImageDirective, isStandalone: true, selector: "[rxapBackgroundImage]", inputs: { imageUrl: ["rxapBackgroundImage", "imageUrl"], placeholderImageUrl: "placeholderImageUrl", size: "size", repeat: "repeat", position: "position" }, usesOnChanges: true, ngImport: i0 }); }
|
|
101
101
|
}
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BackgroundImageDirective, decorators: [{
|
|
103
103
|
type: Directive,
|
|
104
104
|
args: [{
|
|
105
105
|
selector: '[rxapBackgroundImage]',
|
|
106
|
+
standalone: true,
|
|
106
107
|
}]
|
|
107
108
|
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
108
109
|
type: Inject,
|
|
@@ -125,105 +126,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
125
126
|
}], position: [{
|
|
126
127
|
type: Input
|
|
127
128
|
}] } });
|
|
128
|
-
class BackgroundImageDirectiveModule {
|
|
129
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
130
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirectiveModule, declarations: [BackgroundImageDirective], exports: [BackgroundImageDirective] }); }
|
|
131
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirectiveModule }); }
|
|
132
|
-
}
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BackgroundImageDirectiveModule, decorators: [{
|
|
134
|
-
type: NgModule,
|
|
135
|
-
args: [{
|
|
136
|
-
declarations: [BackgroundImageDirective],
|
|
137
|
-
exports: [BackgroundImageDirective],
|
|
138
|
-
}]
|
|
139
|
-
}] });
|
|
140
129
|
|
|
141
130
|
class PreventDefaultDirective {
|
|
142
131
|
onClick($event) {
|
|
143
132
|
$event.preventDefault();
|
|
144
133
|
}
|
|
145
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
146
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
135
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: PreventDefaultDirective, isStandalone: true, selector: "[rxapPreventDefault]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
|
|
147
136
|
}
|
|
148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PreventDefaultDirective, decorators: [{
|
|
149
138
|
type: Directive,
|
|
150
139
|
args: [{
|
|
151
|
-
selector: '[rxapPreventDefault]'
|
|
140
|
+
selector: '[rxapPreventDefault]',
|
|
141
|
+
standalone: true,
|
|
152
142
|
}]
|
|
153
143
|
}], propDecorators: { onClick: [{
|
|
154
144
|
type: HostListener,
|
|
155
145
|
args: ['click', ['$event']]
|
|
156
146
|
}] } });
|
|
157
|
-
class PreventDefaultDirectiveModule {
|
|
158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
159
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirectiveModule, declarations: [PreventDefaultDirective], exports: [PreventDefaultDirective] }); }
|
|
160
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirectiveModule }); }
|
|
161
|
-
}
|
|
162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PreventDefaultDirectiveModule, decorators: [{
|
|
163
|
-
type: NgModule,
|
|
164
|
-
args: [{
|
|
165
|
-
exports: [PreventDefaultDirective],
|
|
166
|
-
declarations: [PreventDefaultDirective]
|
|
167
|
-
}]
|
|
168
|
-
}] });
|
|
169
147
|
|
|
170
148
|
class StopImmediatePropagationDirective {
|
|
171
149
|
onClick($event) {
|
|
172
150
|
$event.stopImmediatePropagation();
|
|
173
151
|
}
|
|
174
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
175
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopImmediatePropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
153
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: StopImmediatePropagationDirective, isStandalone: true, selector: "[rxapStopImmediatePropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
|
|
176
154
|
}
|
|
177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopImmediatePropagationDirective, decorators: [{
|
|
178
156
|
type: Directive,
|
|
179
157
|
args: [{
|
|
180
|
-
selector: '[rxapStopImmediatePropagation]'
|
|
158
|
+
selector: '[rxapStopImmediatePropagation]',
|
|
159
|
+
standalone: true,
|
|
181
160
|
}]
|
|
182
161
|
}], propDecorators: { onClick: [{
|
|
183
162
|
type: HostListener,
|
|
184
163
|
args: ['click', ['$event']]
|
|
185
164
|
}] } });
|
|
186
|
-
class StopImmediatePropagationDirectiveModule {
|
|
187
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
188
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirectiveModule, declarations: [StopImmediatePropagationDirective], exports: [StopImmediatePropagationDirective] }); }
|
|
189
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirectiveModule }); }
|
|
190
|
-
}
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopImmediatePropagationDirectiveModule, decorators: [{
|
|
192
|
-
type: NgModule,
|
|
193
|
-
args: [{
|
|
194
|
-
exports: [StopImmediatePropagationDirective],
|
|
195
|
-
declarations: [StopImmediatePropagationDirective]
|
|
196
|
-
}]
|
|
197
|
-
}] });
|
|
198
165
|
|
|
199
166
|
class StopPropagationDirective {
|
|
200
167
|
onClick($event) {
|
|
201
168
|
$event.stopPropagation();
|
|
202
169
|
}
|
|
203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
204
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
170
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
171
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: StopPropagationDirective, isStandalone: true, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
|
|
205
172
|
}
|
|
206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
207
174
|
type: Directive,
|
|
208
175
|
args: [{
|
|
209
|
-
selector: '[rxapStopPropagation]'
|
|
176
|
+
selector: '[rxapStopPropagation]',
|
|
177
|
+
standalone: true,
|
|
210
178
|
}]
|
|
211
179
|
}], propDecorators: { onClick: [{
|
|
212
180
|
type: HostListener,
|
|
213
181
|
args: ['click', ['$event']]
|
|
214
182
|
}] } });
|
|
215
|
-
class StopPropagationDirectiveModule {
|
|
216
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
217
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirectiveModule, declarations: [StopPropagationDirective], exports: [StopPropagationDirective] }); }
|
|
218
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirectiveModule }); }
|
|
219
|
-
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StopPropagationDirectiveModule, decorators: [{
|
|
221
|
-
type: NgModule,
|
|
222
|
-
args: [{
|
|
223
|
-
exports: [StopPropagationDirective],
|
|
224
|
-
declarations: [StopPropagationDirective]
|
|
225
|
-
}]
|
|
226
|
-
}] });
|
|
227
183
|
|
|
228
184
|
class ShareService {
|
|
229
185
|
async share(data) {
|
|
@@ -243,10 +199,10 @@ class ShareService {
|
|
|
243
199
|
isShareSupported() {
|
|
244
200
|
return !!navigator.share;
|
|
245
201
|
}
|
|
246
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
247
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
202
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
203
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareService, providedIn: 'root' }); }
|
|
248
204
|
}
|
|
249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareService, decorators: [{
|
|
250
206
|
type: Injectable,
|
|
251
207
|
args: [{ providedIn: 'root' }]
|
|
252
208
|
}] });
|
|
@@ -255,21 +211,27 @@ class ShareButtonDirective {
|
|
|
255
211
|
this.shareService = shareService;
|
|
256
212
|
}
|
|
257
213
|
share() {
|
|
258
|
-
this.shareService.share({
|
|
214
|
+
this.shareService.share({
|
|
215
|
+
url: this.url,
|
|
216
|
+
text: this.text,
|
|
217
|
+
files: this.files,
|
|
218
|
+
title: this.title,
|
|
219
|
+
})
|
|
259
220
|
.then(() => console.log('share successfully'))
|
|
260
221
|
.catch(err => console.error('share failed', err.message));
|
|
261
222
|
}
|
|
262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
263
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
224
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ShareButtonDirective, isStandalone: true, selector: "[rxapShareButton]", inputs: { url: "url", text: "text", title: "title", files: "files" }, host: { listeners: { "click": "share()" } }, ngImport: i0 }); }
|
|
264
225
|
}
|
|
265
226
|
__decorate([
|
|
266
227
|
Required,
|
|
267
228
|
__metadata("design:type", String)
|
|
268
229
|
], ShareButtonDirective.prototype, "title", void 0);
|
|
269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ShareButtonDirective, decorators: [{
|
|
270
231
|
type: Directive,
|
|
271
232
|
args: [{
|
|
272
|
-
selector: '[rxapShareButton]'
|
|
233
|
+
selector: '[rxapShareButton]',
|
|
234
|
+
standalone: true,
|
|
273
235
|
}]
|
|
274
236
|
}], ctorParameters: function () { return [{ type: ShareService }]; }, propDecorators: { url: [{
|
|
275
237
|
type: Input
|
|
@@ -283,54 +245,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
283
245
|
type: HostListener,
|
|
284
246
|
args: ['click']
|
|
285
247
|
}] } });
|
|
286
|
-
class ShareButtonDirectiveModule {
|
|
287
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
288
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirectiveModule, declarations: [ShareButtonDirective], exports: [ShareButtonDirective] }); }
|
|
289
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirectiveModule }); }
|
|
290
|
-
}
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ShareButtonDirectiveModule, decorators: [{
|
|
292
|
-
type: NgModule,
|
|
293
|
-
args: [{
|
|
294
|
-
exports: [ShareButtonDirective],
|
|
295
|
-
declarations: [ShareButtonDirective]
|
|
296
|
-
}]
|
|
297
|
-
}] });
|
|
298
248
|
|
|
299
249
|
class FullWidthDirective {
|
|
300
250
|
constructor() {
|
|
301
251
|
this.width = '100%';
|
|
302
252
|
}
|
|
303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
304
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
253
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FullWidthDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
254
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FullWidthDirective, isStandalone: true, selector: "[rxapFullWidth]", host: { properties: { "style.width": "this.width" } }, ngImport: i0 }); }
|
|
305
255
|
}
|
|
306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FullWidthDirective, decorators: [{
|
|
307
257
|
type: Directive,
|
|
308
258
|
args: [{
|
|
309
259
|
selector: '[rxapFullWidth]',
|
|
260
|
+
standalone: true,
|
|
310
261
|
}]
|
|
311
262
|
}], propDecorators: { width: [{
|
|
312
263
|
type: HostBinding,
|
|
313
264
|
args: ['style.width']
|
|
314
265
|
}] } });
|
|
315
|
-
class FullWidthDirectiveModule {
|
|
316
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
317
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirectiveModule, declarations: [FullWidthDirective], exports: [FullWidthDirective] }); }
|
|
318
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirectiveModule }); }
|
|
319
|
-
}
|
|
320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FullWidthDirectiveModule, decorators: [{
|
|
321
|
-
type: NgModule,
|
|
322
|
-
args: [{
|
|
323
|
-
declarations: [FullWidthDirective],
|
|
324
|
-
exports: [FullWidthDirective]
|
|
325
|
-
}]
|
|
326
|
-
}] });
|
|
327
266
|
|
|
328
267
|
class AvatarBackgroundImageDirective extends BackgroundImageDirective {
|
|
329
|
-
set name(name) {
|
|
330
|
-
if (!this.placeholderImageUrl) {
|
|
331
|
-
this.placeholderImageUrl = this.avatarImage.get({ name });
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
268
|
constructor(host, renderer, imageLoader, avatarImage) {
|
|
335
269
|
super(host, renderer, imageLoader);
|
|
336
270
|
this.avatarImage = avatarImage;
|
|
@@ -338,14 +272,20 @@ class AvatarBackgroundImageDirective extends BackgroundImageDirective {
|
|
|
338
272
|
this.size = BackgroundSizeOptions.COVER;
|
|
339
273
|
this.repeat = BackgroundRepeatOptions.NO_REPEAT;
|
|
340
274
|
}
|
|
341
|
-
|
|
342
|
-
|
|
275
|
+
set name(name) {
|
|
276
|
+
if (!this.placeholderImageUrl) {
|
|
277
|
+
this.placeholderImageUrl = this.avatarImage.get({ name });
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AvatarBackgroundImageDirective, deps: [{ token: ElementRef }, { token: Renderer2 }, { token: ImageLoaderService }, { token: AvatarImageService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
281
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AvatarBackgroundImageDirective, isStandalone: true, selector: "[rxapAvatarBackgroundImage]", inputs: { imageUrl: ["rxapAvatarBackgroundImage", "imageUrl"], name: "name" }, usesInheritance: true, ngImport: i0 }); }
|
|
343
282
|
}
|
|
344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AvatarBackgroundImageDirective, decorators: [{
|
|
345
284
|
type: Directive,
|
|
346
285
|
args: [{
|
|
347
286
|
// tslint:disable-next-line:directive-selector
|
|
348
287
|
selector: '[rxapAvatarBackgroundImage]',
|
|
288
|
+
standalone: true,
|
|
349
289
|
}]
|
|
350
290
|
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
351
291
|
type: Inject,
|
|
@@ -359,24 +299,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
359
299
|
}] }, { type: i1.AvatarImageService, decorators: [{
|
|
360
300
|
type: Inject,
|
|
361
301
|
args: [AvatarImageService]
|
|
362
|
-
}] }]; }, propDecorators: {
|
|
363
|
-
type: Input
|
|
364
|
-
}], imageUrl: [{
|
|
302
|
+
}] }]; }, propDecorators: { imageUrl: [{
|
|
365
303
|
type: Input,
|
|
366
304
|
args: ['rxapAvatarBackgroundImage']
|
|
305
|
+
}], name: [{
|
|
306
|
+
type: Input
|
|
367
307
|
}] } });
|
|
368
|
-
class AvatarBackgroundImageDirectiveModule {
|
|
369
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
370
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, declarations: [AvatarBackgroundImageDirective], exports: [AvatarBackgroundImageDirective] }); }
|
|
371
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirectiveModule }); }
|
|
372
|
-
}
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AvatarBackgroundImageDirectiveModule, decorators: [{
|
|
374
|
-
type: NgModule,
|
|
375
|
-
args: [{
|
|
376
|
-
declarations: [AvatarBackgroundImageDirective],
|
|
377
|
-
exports: [AvatarBackgroundImageDirective],
|
|
378
|
-
}]
|
|
379
|
-
}] });
|
|
380
308
|
|
|
381
309
|
class ContenteditableDirective {
|
|
382
310
|
constructor(elementRef) {
|
|
@@ -393,7 +321,7 @@ class ContenteditableDirective {
|
|
|
393
321
|
if (value && value.length >= 2) {
|
|
394
322
|
const event = {
|
|
395
323
|
value,
|
|
396
|
-
parameters: this.parameters
|
|
324
|
+
parameters: this.parameters,
|
|
397
325
|
};
|
|
398
326
|
this.change.emit(event);
|
|
399
327
|
const result = await this.method?.call(event);
|
|
@@ -405,8 +333,8 @@ class ContenteditableDirective {
|
|
|
405
333
|
}
|
|
406
334
|
}
|
|
407
335
|
}
|
|
408
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
409
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ContenteditableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
337
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: ContenteditableDirective, isStandalone: true, 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 }); }
|
|
410
338
|
}
|
|
411
339
|
__decorate([
|
|
412
340
|
DebounceCall(1000),
|
|
@@ -414,10 +342,11 @@ __decorate([
|
|
|
414
342
|
__metadata("design:paramtypes", [Object]),
|
|
415
343
|
__metadata("design:returntype", Promise)
|
|
416
344
|
], ContenteditableDirective.prototype, "onInput", null);
|
|
417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ContenteditableDirective, decorators: [{
|
|
418
346
|
type: Directive,
|
|
419
347
|
args: [{
|
|
420
|
-
selector: '[rxapContenteditable]'
|
|
348
|
+
selector: '[rxapContenteditable]',
|
|
349
|
+
standalone: true,
|
|
421
350
|
}]
|
|
422
351
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { contenteditable: [{
|
|
423
352
|
type: HostBinding,
|
|
@@ -442,18 +371,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
442
371
|
type: HostListener,
|
|
443
372
|
args: ['input', ['$event']]
|
|
444
373
|
}] } });
|
|
445
|
-
class ContenteditableDirectiveModule {
|
|
446
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
447
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirectiveModule, declarations: [ContenteditableDirective], exports: [ContenteditableDirective] }); }
|
|
448
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirectiveModule }); }
|
|
449
|
-
}
|
|
450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContenteditableDirectiveModule, decorators: [{
|
|
451
|
-
type: NgModule,
|
|
452
|
-
args: [{
|
|
453
|
-
declarations: [ContenteditableDirective],
|
|
454
|
-
exports: [ContenteditableDirective]
|
|
455
|
-
}]
|
|
456
|
-
}] });
|
|
457
374
|
|
|
458
375
|
class ConfirmClick {
|
|
459
376
|
constructor() {
|
|
@@ -470,10 +387,10 @@ class ConfirmClick {
|
|
|
470
387
|
onConfirm() {
|
|
471
388
|
this.execute();
|
|
472
389
|
}
|
|
473
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
474
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
390
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
391
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick }); }
|
|
475
392
|
}
|
|
476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConfirmClick, decorators: [{
|
|
477
394
|
type: Injectable
|
|
478
395
|
}], propDecorators: { hasConfirmDirective: [{
|
|
479
396
|
type: Input,
|
|
@@ -487,11 +404,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
487
404
|
}] } });
|
|
488
405
|
|
|
489
406
|
class MethodDirective {
|
|
490
|
-
set hasConfirmDirective(value) {
|
|
491
|
-
this._hasConfirmDirective = coerceBoolean(value);
|
|
492
|
-
}
|
|
493
407
|
constructor() {
|
|
494
|
-
this._hasConfirmDirective = false;
|
|
495
408
|
this.immediately = false;
|
|
496
409
|
this.executed$ = new EventEmitter();
|
|
497
410
|
this.failure$ = new EventEmitter();
|
|
@@ -500,6 +413,10 @@ class MethodDirective {
|
|
|
500
413
|
* true - a remote method call is in progress
|
|
501
414
|
*/
|
|
502
415
|
this.executing$ = new ToggleSubject();
|
|
416
|
+
this._hasConfirmDirective = false;
|
|
417
|
+
}
|
|
418
|
+
set hasConfirmDirective(value) {
|
|
419
|
+
this._hasConfirmDirective = coerceBoolean(value);
|
|
503
420
|
}
|
|
504
421
|
ngOnInit() {
|
|
505
422
|
if (this.immediately) {
|
|
@@ -552,19 +469,17 @@ class MethodDirective {
|
|
|
552
469
|
successful(result) {
|
|
553
470
|
this.successful$.emit(result);
|
|
554
471
|
}
|
|
555
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
556
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
472
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
473
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: MethodDirective, isStandalone: true, selector: "[rxapMethod]", inputs: { method: ["rxapMethod", "method"], parameters: "parameters", immediately: "immediately", hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"] }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick()" } }, exportAs: ["rxapMethod"], ngImport: i0 }); }
|
|
557
474
|
}
|
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodDirective, decorators: [{
|
|
559
476
|
type: Directive,
|
|
560
477
|
args: [{
|
|
561
478
|
selector: '[rxapMethod]',
|
|
562
|
-
exportAs: 'rxapMethod'
|
|
479
|
+
exportAs: 'rxapMethod',
|
|
480
|
+
standalone: true,
|
|
563
481
|
}]
|
|
564
|
-
}],
|
|
565
|
-
type: Input,
|
|
566
|
-
args: ['rxapConfirm']
|
|
567
|
-
}], method: [{
|
|
482
|
+
}], propDecorators: { method: [{
|
|
568
483
|
type: Input,
|
|
569
484
|
args: ['rxapMethod']
|
|
570
485
|
}], parameters: [{
|
|
@@ -580,6 +495,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
580
495
|
}], successful$: [{
|
|
581
496
|
type: Output,
|
|
582
497
|
args: ['successful']
|
|
498
|
+
}], hasConfirmDirective: [{
|
|
499
|
+
type: Input,
|
|
500
|
+
args: ['rxapConfirm']
|
|
583
501
|
}], onConfirmed: [{
|
|
584
502
|
type: HostListener,
|
|
585
503
|
args: ['confirmed']
|
|
@@ -587,18 +505,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
587
505
|
type: HostListener,
|
|
588
506
|
args: ['click']
|
|
589
507
|
}] } });
|
|
590
|
-
class MethodDirectiveModule {
|
|
591
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
592
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: MethodDirectiveModule, declarations: [MethodDirective], exports: [MethodDirective] }); }
|
|
593
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirectiveModule }); }
|
|
594
|
-
}
|
|
595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodDirectiveModule, decorators: [{
|
|
596
|
-
type: NgModule,
|
|
597
|
-
args: [{
|
|
598
|
-
declarations: [MethodDirective],
|
|
599
|
-
exports: [MethodDirective]
|
|
600
|
-
}]
|
|
601
|
-
}] });
|
|
602
508
|
|
|
603
509
|
class MovableDividerDirective {
|
|
604
510
|
constructor(renderer) {
|
|
@@ -636,10 +542,11 @@ class MovableDividerDirective {
|
|
|
636
542
|
console.log({
|
|
637
543
|
clientWidth: this.containerElement.clientWidth,
|
|
638
544
|
clientX: $event.clientX,
|
|
639
|
-
clientLeft: this.containerElement.getBoundingClientRect().left
|
|
545
|
+
clientLeft: this.containerElement.getBoundingClientRect().left,
|
|
640
546
|
});
|
|
641
547
|
}
|
|
642
|
-
this._fixedElementWidth =
|
|
548
|
+
this._fixedElementWidth =
|
|
549
|
+
this.containerElement.clientWidth - $event.clientX + this.containerElement.getBoundingClientRect().left;
|
|
643
550
|
}
|
|
644
551
|
else {
|
|
645
552
|
throw new Error(`The origin '${this.origin}' is not supported.`);
|
|
@@ -655,8 +562,8 @@ class MovableDividerDirective {
|
|
|
655
562
|
onMousedown() {
|
|
656
563
|
this._moveDivider = true;
|
|
657
564
|
}
|
|
658
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
659
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
565
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MovableDividerDirective, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
566
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: MovableDividerDirective, isStandalone: true, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 }); }
|
|
660
567
|
}
|
|
661
568
|
__decorate([
|
|
662
569
|
Required,
|
|
@@ -666,10 +573,11 @@ __decorate([
|
|
|
666
573
|
Required,
|
|
667
574
|
__metadata("design:type", HTMLDivElement)
|
|
668
575
|
], MovableDividerDirective.prototype, "fixedElement", void 0);
|
|
669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MovableDividerDirective, decorators: [{
|
|
670
577
|
type: Directive,
|
|
671
578
|
args: [{
|
|
672
|
-
selector: '[rxapMovableDivider]'
|
|
579
|
+
selector: '[rxapMovableDivider]',
|
|
580
|
+
standalone: true,
|
|
673
581
|
}]
|
|
674
582
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { containerElement: [{
|
|
675
583
|
type: Input
|
|
@@ -684,21 +592,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
684
592
|
type: HostListener,
|
|
685
593
|
args: ['mousedown']
|
|
686
594
|
}] } });
|
|
687
|
-
class MovableDividerDirectiveModule {
|
|
688
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
689
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirectiveModule, declarations: [MovableDividerDirective], exports: [MovableDividerDirective] }); }
|
|
690
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirectiveModule }); }
|
|
691
|
-
}
|
|
692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MovableDividerDirectiveModule, decorators: [{
|
|
693
|
-
type: NgModule,
|
|
694
|
-
args: [{
|
|
695
|
-
declarations: [MovableDividerDirective],
|
|
696
|
-
exports: [MovableDividerDirective]
|
|
697
|
-
}]
|
|
698
|
-
}] });
|
|
699
595
|
|
|
700
596
|
// TODO : mv to rxap package
|
|
701
597
|
class IfTruthyDirective {
|
|
598
|
+
constructor(templateRef, viewContainerRef, cdr) {
|
|
599
|
+
this.templateRef = templateRef;
|
|
600
|
+
this.viewContainerRef = viewContainerRef;
|
|
601
|
+
this.cdr = cdr;
|
|
602
|
+
}
|
|
702
603
|
/**
|
|
703
604
|
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
704
605
|
*
|
|
@@ -708,11 +609,6 @@ class IfTruthyDirective {
|
|
|
708
609
|
static ngTemplateContextGuard(dir, ctx) {
|
|
709
610
|
return true;
|
|
710
611
|
}
|
|
711
|
-
constructor(templateRef, viewContainerRef, cdr) {
|
|
712
|
-
this.templateRef = templateRef;
|
|
713
|
-
this.viewContainerRef = viewContainerRef;
|
|
714
|
-
this.cdr = cdr;
|
|
715
|
-
}
|
|
716
612
|
ngOnChanges(changes) {
|
|
717
613
|
if (this.method && this.parameters) {
|
|
718
614
|
this.execute();
|
|
@@ -736,13 +632,14 @@ class IfTruthyDirective {
|
|
|
736
632
|
}
|
|
737
633
|
return true;
|
|
738
634
|
}
|
|
739
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
740
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
635
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IfTruthyDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
636
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: IfTruthyDirective, isStandalone: true, selector: "[rxapIfTruthy]", inputs: { method: ["rxapIfTruthy", "method"], parameters: ["rxapIfTruthyParameters", "parameters"], trackBy: ["rxapIfTruthyTrackBy", "trackBy"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
741
637
|
}
|
|
742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IfTruthyDirective, decorators: [{
|
|
743
639
|
type: Directive,
|
|
744
640
|
args: [{
|
|
745
|
-
selector: '[rxapIfTruthy]'
|
|
641
|
+
selector: '[rxapIfTruthy]',
|
|
642
|
+
standalone: true,
|
|
746
643
|
}]
|
|
747
644
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { method: [{
|
|
748
645
|
type: Input,
|
|
@@ -754,23 +651,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
754
651
|
type: Input,
|
|
755
652
|
args: ['rxapIfTruthyTrackBy']
|
|
756
653
|
}] } });
|
|
757
|
-
class IfTruthyDirectiveModule {
|
|
758
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
759
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirectiveModule, declarations: [IfTruthyDirective], exports: [IfTruthyDirective] }); }
|
|
760
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirectiveModule }); }
|
|
761
|
-
}
|
|
762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IfTruthyDirectiveModule, decorators: [{
|
|
763
|
-
type: NgModule,
|
|
764
|
-
args: [{
|
|
765
|
-
declarations: [IfTruthyDirective],
|
|
766
|
-
exports: [IfTruthyDirective]
|
|
767
|
-
}]
|
|
768
|
-
}] });
|
|
769
654
|
|
|
770
655
|
class MethodTemplateDirective {
|
|
771
|
-
static ngTemplateContextGuard(dir, ctx) {
|
|
772
|
-
return true;
|
|
773
|
-
}
|
|
774
656
|
constructor(template, viewContainerRef, cdr) {
|
|
775
657
|
this.template = template;
|
|
776
658
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -786,8 +668,11 @@ class MethodTemplateDirective {
|
|
|
786
668
|
this.executing$ = new ToggleSubject();
|
|
787
669
|
this.embedded = new EventEmitter();
|
|
788
670
|
}
|
|
671
|
+
static ngTemplateContextGuard(dir, ctx) {
|
|
672
|
+
return true;
|
|
673
|
+
}
|
|
789
674
|
ngOnChanges(changes) {
|
|
790
|
-
const parametersChanges = changes
|
|
675
|
+
const parametersChanges = changes['parameters'];
|
|
791
676
|
if (parametersChanges) {
|
|
792
677
|
this.execute(parametersChanges.currentValue);
|
|
793
678
|
}
|
|
@@ -826,12 +711,6 @@ class MethodTemplateDirective {
|
|
|
826
711
|
updateParameters(parameters) {
|
|
827
712
|
this.parameters = { ...(this.parameters ?? {}), ...parameters };
|
|
828
713
|
}
|
|
829
|
-
renderLoadingTemplate() {
|
|
830
|
-
if (this.loadingTemplate) {
|
|
831
|
-
this.viewContainerRef.clear();
|
|
832
|
-
this.viewContainerRef.createEmbeddedView(this.loadingTemplate);
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
714
|
executed(result) {
|
|
836
715
|
this.executed$.emit(result);
|
|
837
716
|
}
|
|
@@ -845,7 +724,10 @@ class MethodTemplateDirective {
|
|
|
845
724
|
if (this.errorTemplate) {
|
|
846
725
|
this.viewContainerRef.clear();
|
|
847
726
|
if (this.errorTemplate) {
|
|
848
|
-
this.viewContainerRef.createEmbeddedView(this.errorTemplate, {
|
|
727
|
+
this.viewContainerRef.createEmbeddedView(this.errorTemplate, {
|
|
728
|
+
$implicit: error,
|
|
729
|
+
message: error.message,
|
|
730
|
+
});
|
|
849
731
|
}
|
|
850
732
|
}
|
|
851
733
|
}
|
|
@@ -862,14 +744,21 @@ class MethodTemplateDirective {
|
|
|
862
744
|
this.embedded.emit();
|
|
863
745
|
this.cdr.detectChanges();
|
|
864
746
|
}
|
|
865
|
-
|
|
866
|
-
|
|
747
|
+
renderLoadingTemplate() {
|
|
748
|
+
if (this.loadingTemplate) {
|
|
749
|
+
this.viewContainerRef.clear();
|
|
750
|
+
this.viewContainerRef.createEmbeddedView(this.loadingTemplate);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodTemplateDirective, deps: [{ token: TemplateRef }, { token: ViewContainerRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
754
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: MethodTemplateDirective, isStandalone: true, 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 }); }
|
|
867
755
|
}
|
|
868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MethodTemplateDirective, decorators: [{
|
|
869
757
|
type: Directive,
|
|
870
758
|
args: [{
|
|
871
759
|
selector: '[rxapMethod]',
|
|
872
|
-
exportAs: 'rxapMethod'
|
|
760
|
+
exportAs: 'rxapMethod',
|
|
761
|
+
standalone: true,
|
|
873
762
|
}]
|
|
874
763
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
875
764
|
type: Inject,
|
|
@@ -915,22 +804,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
915
804
|
type: HostListener,
|
|
916
805
|
args: ['confirmed']
|
|
917
806
|
}] } });
|
|
918
|
-
class MethodTemplateDirectiveModule {
|
|
919
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
920
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirectiveModule, declarations: [MethodTemplateDirective], exports: [MethodTemplateDirective] }); }
|
|
921
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirectiveModule }); }
|
|
922
|
-
}
|
|
923
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MethodTemplateDirectiveModule, decorators: [{
|
|
924
|
-
type: NgModule,
|
|
925
|
-
args: [{
|
|
926
|
-
declarations: [MethodTemplateDirective],
|
|
927
|
-
exports: [MethodTemplateDirective]
|
|
928
|
-
}]
|
|
929
|
-
}] });
|
|
930
807
|
|
|
931
808
|
/**
|
|
932
809
|
* Generated bundle index. Do not edit.
|
|
933
810
|
*/
|
|
934
811
|
|
|
935
|
-
export { AvatarBackgroundImageDirective,
|
|
812
|
+
export { AvatarBackgroundImageDirective, BackgroundImageDirective, BackgroundPositionOptions, BackgroundRepeatOptions, BackgroundSizeOptions, ConfirmClick, ContenteditableDirective, FullWidthDirective, GlobalStyleOptions, IfTruthyDirective, MethodDirective, MethodTemplateDirective, MovableDividerDirective, PreventDefaultDirective, ShareButtonDirective, ShareService, StopImmediatePropagationDirective, StopPropagationDirective };
|
|
936
813
|
//# sourceMappingURL=rxap-directives.mjs.map
|