@emuanalytics/flow-rdf-angular 4.1.25 → 4.1.27

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.
@@ -1,6 +1,6 @@
1
1
  import { CommonModule } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { InjectionToken, Injector, Injectable, ViewContainerRef, ViewChild, Component, NgModule, HostListener, Directive, forwardRef, ChangeDetectionStrategy, Input, assertInInjectionContext, inject, DestroyRef, isDevMode, assertNotInReactiveContext, ChangeDetectorRef } from '@angular/core';
3
+ import { InjectionToken, Injector, Injectable, ViewContainerRef, ViewChild, Component, NgModule, HostListener, Directive, ChangeDetectionStrategy, forwardRef, Input, assertInInjectionContext, inject, DestroyRef, isDevMode, assertNotInReactiveContext, ChangeDetectorRef } from '@angular/core';
4
4
  import { initializeContext } from '@emuanalytics/flow-rdf-core';
5
5
  import { Subject, fromEvent } from 'rxjs';
6
6
  import { initialize, registerComponents } from '@emuanalytics/flow-rdf-ui';
@@ -277,7 +277,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
277
277
  }]
278
278
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
279
279
  /** @internal */
280
- let FlowAnimation = class FlowAnimation {
280
+ let FlowAvatar = class FlowAvatar {
281
281
  z;
282
282
  el;
283
283
  constructor(c, r, z) {
@@ -285,52 +285,24 @@ let FlowAnimation = class FlowAnimation {
285
285
  c.detach();
286
286
  this.el = r.nativeElement;
287
287
  }
288
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowAnimation, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
289
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: FlowAnimation, isStandalone: true, selector: "flow-ui-animation", inputs: { name: "name", play: "play", delay: "delay", direction: "direction", duration: "duration", easing: "easing", endDelay: "endDelay", fill: "fill", iterations: "iterations", iterationStart: "iterationStart", keyframes: "keyframes", playbackRate: "playbackRate", currentTime: "currentTime" }, providers: [], ngImport: i0, template: "<ng-content></ng-content>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
288
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowAvatar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
289
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: FlowAvatar, isStandalone: true, selector: "flow-ui-avatar", inputs: { image: "image", label: "label", initials: "initials", loading: "loading", shape: "shape" }, providers: [], ngImport: i0, template: "<ng-content></ng-content>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
290
290
  };
291
- FlowAnimation = __decorate([
291
+ FlowAvatar = __decorate([
292
292
  ProxyCmp({
293
- inputs: [
294
- "name",
295
- "play",
296
- "delay",
297
- "direction",
298
- "duration",
299
- "easing",
300
- "endDelay",
301
- "fill",
302
- "iterations",
303
- "iterationStart",
304
- "keyframes",
305
- "playbackRate",
306
- "currentTime",
307
- ],
308
- methods: ["cancel", "finish"],
293
+ inputs: ["image", "label", "initials", "loading", "shape"],
294
+ methods: [],
309
295
  })
310
- ], FlowAnimation);
311
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowAnimation, decorators: [{
296
+ ], FlowAvatar);
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowAvatar, decorators: [{
312
298
  type: Component,
313
299
  args: [{
314
300
  standalone: true,
315
- selector: "flow-ui-animation",
301
+ selector: "flow-ui-avatar",
316
302
  changeDetection: ChangeDetectionStrategy.OnPush,
317
303
  template: "<ng-content></ng-content>",
318
- inputs: [
319
- "name",
320
- "play",
321
- "delay",
322
- "direction",
323
- "duration",
324
- "easing",
325
- "endDelay",
326
- "fill",
327
- "iterations",
328
- "iterationStart",
329
- "keyframes",
330
- "playbackRate",
331
- "currentTime",
332
- ],
333
- imports: [],
304
+ inputs: ["image", "label", "initials", "loading", "shape"],
305
+ imports: [forwardRef(() => FlowIcon)],
334
306
  providers: [],
335
307
  }]
336
308
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
@@ -442,7 +414,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
442
414
  args: ["flow-ui-change", ["$event.target"]]
443
415
  }] } });
444
416
  /** @internal */
445
- let FlowAvatar = class FlowAvatar {
417
+ let FlowAnimation = class FlowAnimation {
446
418
  z;
447
419
  el;
448
420
  constructor(c, r, z) {
@@ -450,24 +422,52 @@ let FlowAvatar = class FlowAvatar {
450
422
  c.detach();
451
423
  this.el = r.nativeElement;
452
424
  }
453
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowAvatar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
454
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: FlowAvatar, isStandalone: true, selector: "flow-ui-avatar", inputs: { image: "image", label: "label", initials: "initials", loading: "loading", shape: "shape" }, providers: [], ngImport: i0, template: "<ng-content></ng-content>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
425
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowAnimation, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
426
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: FlowAnimation, isStandalone: true, selector: "flow-ui-animation", inputs: { name: "name", play: "play", delay: "delay", direction: "direction", duration: "duration", easing: "easing", endDelay: "endDelay", fill: "fill", iterations: "iterations", iterationStart: "iterationStart", keyframes: "keyframes", playbackRate: "playbackRate", currentTime: "currentTime" }, providers: [], ngImport: i0, template: "<ng-content></ng-content>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
455
427
  };
456
- FlowAvatar = __decorate([
428
+ FlowAnimation = __decorate([
457
429
  ProxyCmp({
458
- inputs: ["image", "label", "initials", "loading", "shape"],
459
- methods: [],
430
+ inputs: [
431
+ "name",
432
+ "play",
433
+ "delay",
434
+ "direction",
435
+ "duration",
436
+ "easing",
437
+ "endDelay",
438
+ "fill",
439
+ "iterations",
440
+ "iterationStart",
441
+ "keyframes",
442
+ "playbackRate",
443
+ "currentTime",
444
+ ],
445
+ methods: ["cancel", "finish"],
460
446
  })
461
- ], FlowAvatar);
462
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowAvatar, decorators: [{
447
+ ], FlowAnimation);
448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowAnimation, decorators: [{
463
449
  type: Component,
464
450
  args: [{
465
451
  standalone: true,
466
- selector: "flow-ui-avatar",
452
+ selector: "flow-ui-animation",
467
453
  changeDetection: ChangeDetectionStrategy.OnPush,
468
454
  template: "<ng-content></ng-content>",
469
- inputs: ["image", "label", "initials", "loading", "shape"],
470
- imports: [forwardRef(() => FlowIcon)],
455
+ inputs: [
456
+ "name",
457
+ "play",
458
+ "delay",
459
+ "direction",
460
+ "duration",
461
+ "easing",
462
+ "endDelay",
463
+ "fill",
464
+ "iterations",
465
+ "iterationStart",
466
+ "keyframes",
467
+ "playbackRate",
468
+ "currentTime",
469
+ ],
470
+ imports: [],
471
471
  providers: [],
472
472
  }]
473
473
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
@@ -3155,6 +3155,85 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
3155
3155
  providers: [],
3156
3156
  }]
3157
3157
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
3158
+ const FlowSwitchValueAccessor = {
3159
+ provide: NG_VALUE_ACCESSOR,
3160
+ useExisting: forwardRef(() => FlowSwitch),
3161
+ multi: true,
3162
+ };
3163
+ /** @internal */
3164
+ let FlowSwitch = class FlowSwitch extends ValueAccessor {
3165
+ z;
3166
+ el;
3167
+ constructor(c, r, z, i) {
3168
+ super(i, r);
3169
+ this.z = z;
3170
+ c.detach();
3171
+ this.el = r.nativeElement;
3172
+ }
3173
+ _handleChangeEvent(el) {
3174
+ this._handleValueChange(el, el.checked);
3175
+ }
3176
+ writeValue(value) {
3177
+ this.el.checked = this.lastValue = value;
3178
+ }
3179
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowSwitch, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
3180
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: FlowSwitch, isStandalone: true, selector: "flow-ui-switch", inputs: { name: "name", value: "value", size: "size", disabled: "disabled", checked: "checked", defaultChecked: "defaultChecked", form: "form", required: "required", helpText: "helpText", divider: "divider", validity: "validity", validationMessage: "validationMessage" }, host: { listeners: { "flow-ui-change": "_handleChangeEvent($event.target)" } }, providers: [FlowSwitchValueAccessor], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3181
+ };
3182
+ FlowSwitch = __decorate([
3183
+ ProxyCmp({
3184
+ inputs: [
3185
+ "name",
3186
+ "value",
3187
+ "size",
3188
+ "disabled",
3189
+ "checked",
3190
+ "defaultChecked",
3191
+ "form",
3192
+ "required",
3193
+ "helpText",
3194
+ "divider",
3195
+ "validity",
3196
+ "validationMessage",
3197
+ ],
3198
+ methods: [
3199
+ "click",
3200
+ "focus",
3201
+ "blur",
3202
+ "checkValidity",
3203
+ "getForm",
3204
+ "reportValidity",
3205
+ "setCustomValidity",
3206
+ ],
3207
+ })
3208
+ ], FlowSwitch);
3209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowSwitch, decorators: [{
3210
+ type: Component,
3211
+ args: [{
3212
+ standalone: true,
3213
+ selector: "flow-ui-switch",
3214
+ changeDetection: ChangeDetectionStrategy.OnPush,
3215
+ template: "<ng-content></ng-content>",
3216
+ inputs: [
3217
+ "name",
3218
+ "value",
3219
+ "size",
3220
+ "disabled",
3221
+ "checked",
3222
+ "defaultChecked",
3223
+ "form",
3224
+ "required",
3225
+ "helpText",
3226
+ "divider",
3227
+ "validity",
3228
+ "validationMessage",
3229
+ ],
3230
+ imports: [],
3231
+ providers: [FlowSwitchValueAccessor],
3232
+ }]
3233
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }], propDecorators: { _handleChangeEvent: [{
3234
+ type: HostListener,
3235
+ args: ["flow-ui-change", ["$event.target"]]
3236
+ }] } });
3158
3237
  /** @internal */
3159
3238
  let FlowTab = class FlowTab {
3160
3239
  z;
@@ -3279,85 +3358,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
3279
3358
  providers: [],
3280
3359
  }]
3281
3360
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
3282
- const FlowSwitchValueAccessor = {
3283
- provide: NG_VALUE_ACCESSOR,
3284
- useExisting: forwardRef(() => FlowSwitch),
3285
- multi: true,
3286
- };
3287
- /** @internal */
3288
- let FlowSwitch = class FlowSwitch extends ValueAccessor {
3289
- z;
3290
- el;
3291
- constructor(c, r, z, i) {
3292
- super(i, r);
3293
- this.z = z;
3294
- c.detach();
3295
- this.el = r.nativeElement;
3296
- }
3297
- _handleChangeEvent(el) {
3298
- this._handleValueChange(el, el.checked);
3299
- }
3300
- writeValue(value) {
3301
- this.el.checked = this.lastValue = value;
3302
- }
3303
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowSwitch, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
3304
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: FlowSwitch, isStandalone: true, selector: "flow-ui-switch", inputs: { name: "name", value: "value", size: "size", disabled: "disabled", checked: "checked", defaultChecked: "defaultChecked", form: "form", required: "required", helpText: "helpText", divider: "divider", validity: "validity", validationMessage: "validationMessage" }, host: { listeners: { "flow-ui-change": "_handleChangeEvent($event.target)" } }, providers: [FlowSwitchValueAccessor], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
3305
- };
3306
- FlowSwitch = __decorate([
3307
- ProxyCmp({
3308
- inputs: [
3309
- "name",
3310
- "value",
3311
- "size",
3312
- "disabled",
3313
- "checked",
3314
- "defaultChecked",
3315
- "form",
3316
- "required",
3317
- "helpText",
3318
- "divider",
3319
- "validity",
3320
- "validationMessage",
3321
- ],
3322
- methods: [
3323
- "click",
3324
- "focus",
3325
- "blur",
3326
- "checkValidity",
3327
- "getForm",
3328
- "reportValidity",
3329
- "setCustomValidity",
3330
- ],
3331
- })
3332
- ], FlowSwitch);
3333
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FlowSwitch, decorators: [{
3334
- type: Component,
3335
- args: [{
3336
- standalone: true,
3337
- selector: "flow-ui-switch",
3338
- changeDetection: ChangeDetectionStrategy.OnPush,
3339
- template: "<ng-content></ng-content>",
3340
- inputs: [
3341
- "name",
3342
- "value",
3343
- "size",
3344
- "disabled",
3345
- "checked",
3346
- "defaultChecked",
3347
- "form",
3348
- "required",
3349
- "helpText",
3350
- "divider",
3351
- "validity",
3352
- "validationMessage",
3353
- ],
3354
- imports: [],
3355
- providers: [FlowSwitchValueAccessor],
3356
- }]
3357
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }], propDecorators: { _handleChangeEvent: [{
3358
- type: HostListener,
3359
- args: ["flow-ui-change", ["$event.target"]]
3360
- }] } });
3361
3361
  /** @internal */
3362
3362
  let FlowTag = class FlowTag {
3363
3363
  z;