@fylib/adapter-angular 0.2.5 → 0.2.8

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.
Files changed (47) hide show
  1. package/dist/components/accordion.component.d.ts +3 -0
  2. package/dist/components/accordion.component.js +105 -194
  3. package/dist/components/badge.component.d.ts +3 -0
  4. package/dist/components/badge.component.js +30 -81
  5. package/dist/components/button.component.d.ts +3 -0
  6. package/dist/components/button.component.js +79 -194
  7. package/dist/components/card.component.d.ts +3 -0
  8. package/dist/components/card.component.js +76 -147
  9. package/dist/components/chart.component.d.ts +3 -0
  10. package/dist/components/chart.component.js +81 -141
  11. package/dist/components/icon.component.d.ts +3 -0
  12. package/dist/components/icon.component.js +39 -62
  13. package/dist/components/input.component.d.ts +3 -0
  14. package/dist/components/input.component.js +120 -221
  15. package/dist/components/modal.component.d.ts +3 -0
  16. package/dist/components/modal.component.js +121 -247
  17. package/dist/components/nav-link.component.d.ts +3 -0
  18. package/dist/components/nav-link.component.js +43 -92
  19. package/dist/components/notification-menu.component.d.ts +3 -0
  20. package/dist/components/notification-menu.component.js +205 -367
  21. package/dist/components/select.component.d.ts +3 -0
  22. package/dist/components/select.component.js +116 -188
  23. package/dist/components/table.component.d.ts +3 -0
  24. package/dist/components/table.component.js +235 -332
  25. package/dist/components/text.component.d.ts +3 -0
  26. package/dist/components/text.component.js +22 -32
  27. package/dist/components/toast.component.d.ts +3 -0
  28. package/dist/components/toast.component.js +58 -163
  29. package/dist/directives/animation.directive.d.ts +3 -0
  30. package/dist/directives/animation.directive.js +15 -22
  31. package/dist/directives/theme-vars.directive.d.ts +3 -0
  32. package/dist/directives/theme-vars.directive.js +12 -19
  33. package/dist/directives/wallpaper.directive.d.ts +3 -0
  34. package/dist/directives/wallpaper.directive.js +19 -31
  35. package/dist/layouts/layout.component.d.ts +3 -0
  36. package/dist/layouts/layout.component.js +36 -130
  37. package/dist/layouts/slot.component.d.ts +3 -0
  38. package/dist/layouts/slot.component.js +240 -596
  39. package/dist/services/fylib.service.d.ts +3 -0
  40. package/dist/services/fylib.service.js +19 -26
  41. package/dist/services/notification.service.d.ts +3 -0
  42. package/dist/services/notification.service.js +13 -16
  43. package/dist/services/sse.service.d.ts +3 -0
  44. package/dist/services/sse.service.js +11 -18
  45. package/dist/services/webclient.service.d.ts +3 -0
  46. package/dist/services/webclient.service.js +9 -12
  47. package/package.json +7 -6
@@ -1,6 +1,7 @@
1
1
  import { Signal } from '@angular/core';
2
2
  import { AppConfig, ComponentSelector, UIEventKey } from '@fylib/config';
3
3
  import { DesignTokens } from '@fylib/core';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class FyLibService {
5
6
  private platformId;
6
7
  private configSignal;
@@ -28,4 +29,6 @@ export declare class FyLibService {
28
29
  getComponentAnimation(componentSelector: ComponentSelector, event: string): string | undefined;
29
30
  private deepMerge;
30
31
  private isObject;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FyLibService, [{ optional: true; }]>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<FyLibService>;
31
34
  }
@@ -1,15 +1,3 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- var __param = (this && this.__param) || function (paramIndex, decorator) {
11
- return function (target, key) { decorator(target, key, paramIndex); }
12
- };
13
1
  import { Injectable, signal, computed, inject, PLATFORM_ID, Optional, Inject } from '@angular/core';
14
2
  import { isPlatformBrowser } from '@angular/common';
15
3
  import { themeEngine, defaultTheme } from '@fylib/theme';
@@ -21,11 +9,12 @@ import { FYLIB_CONFIG } from '../providers';
21
9
  import { registerPhosphorProvider } from '../icons/providers/phosphor.provider';
22
10
  import { registerFontAwesomeProvider } from '../icons/providers/fontawesome.provider';
23
11
  import { registerMdiProvider } from '../icons/providers/mdi.provider';
24
- let FyLibService = class FyLibService {
12
+ import * as i0 from "@angular/core";
13
+ export class FyLibService {
25
14
  constructor(configFromProvider) {
26
15
  this.platformId = inject(PLATFORM_ID);
27
- this.configSignal = signal(configManager.getConfig());
28
- this.themeVersion = signal(0);
16
+ this.configSignal = signal(configManager.getConfig(), ...(ngDevMode ? [{ debugName: "configSignal" }] : /* istanbul ignore next */ []));
17
+ this.themeVersion = signal(0, ...(ngDevMode ? [{ debugName: "themeVersion" }] : /* istanbul ignore next */ []));
29
18
  this.config = this.configSignal.asReadonly();
30
19
  this.tokens = computed(() => {
31
20
  this.themeVersion();
@@ -35,7 +24,7 @@ let FyLibService = class FyLibService {
35
24
  catch (e) {
36
25
  return defaultTheme.tokens;
37
26
  }
38
- });
27
+ }, ...(ngDevMode ? [{ debugName: "tokens" }] : /* istanbul ignore next */ []));
39
28
  // Se existir configuração via provider (provideFyLib), aplica imediatamente
40
29
  // ANTES de qualquer outro log para garantir que o estado do logger (enabled/disabled) seja respeitado
41
30
  if (configFromProvider) {
@@ -202,13 +191,17 @@ let FyLibService = class FyLibService {
202
191
  isObject(item) {
203
192
  return item && typeof item === 'object' && !Array.isArray(item);
204
193
  }
205
- };
206
- FyLibService = __decorate([
207
- Injectable({
208
- providedIn: 'root'
209
- }),
210
- __param(0, Optional()),
211
- __param(0, Inject(FYLIB_CONFIG)),
212
- __metadata("design:paramtypes", [Object])
213
- ], FyLibService);
214
- export { FyLibService };
194
+ }
195
+ FyLibService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyLibService, deps: [{ token: FYLIB_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
196
+ FyLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyLibService, providedIn: 'root' });
197
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyLibService, decorators: [{
198
+ type: Injectable,
199
+ args: [{
200
+ providedIn: 'root'
201
+ }]
202
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
203
+ type: Optional
204
+ }, {
205
+ type: Inject,
206
+ args: [FYLIB_CONFIG]
207
+ }] }] });
@@ -2,6 +2,7 @@ import { ComponentRef } from '@angular/core';
2
2
  import { ToastProps } from '@fylib/catalog';
3
3
  import { FyToastComponent } from '../components/toast.component';
4
4
  import { NotificationItem } from '@fylib/catalog';
5
+ import * as i0 from "@angular/core";
5
6
  export interface ToastOptions extends Partial<Omit<ToastProps, 'message'>> {
6
7
  message: string;
7
8
  }
@@ -24,4 +25,6 @@ export declare class FyNotificationService {
24
25
  info(message: string, title?: string, options?: Partial<ToastOptions>): ComponentRef<FyToastComponent>;
25
26
  private destroyToast;
26
27
  private getOrCreateContainer;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FyNotificationService, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<FyNotificationService>;
27
30
  }
@@ -1,20 +1,15 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
1
  import { Injectable, signal, inject, ApplicationRef, EnvironmentInjector, createComponent } from '@angular/core';
8
2
  import { FyToastComponent } from '../components/toast.component';
9
3
  import { DOCUMENT } from '@angular/common';
10
- let FyNotificationService = class FyNotificationService {
4
+ import * as i0 from "@angular/core";
5
+ export class FyNotificationService {
11
6
  constructor() {
12
7
  this.appRef = inject(ApplicationRef);
13
8
  this.injector = inject(EnvironmentInjector);
14
9
  this.document = inject(DOCUMENT);
15
10
  this.containerMap = new Map();
16
- this.toasts = signal([]);
17
- this._notifications = signal([]);
11
+ this.toasts = signal([], ...(ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []));
12
+ this._notifications = signal([], ...(ngDevMode ? [{ debugName: "_notifications" }] : /* istanbul ignore next */ []));
18
13
  this.notifications = this._notifications.asReadonly();
19
14
  }
20
15
  addNotification(notification) {
@@ -109,10 +104,12 @@ let FyNotificationService = class FyNotificationService {
109
104
  this.containerMap.set(position, container);
110
105
  return container;
111
106
  }
112
- };
113
- FyNotificationService = __decorate([
114
- Injectable({
115
- providedIn: 'root'
116
- })
117
- ], FyNotificationService);
118
- export { FyNotificationService };
107
+ }
108
+ FyNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
109
+ FyNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyNotificationService, providedIn: 'root' });
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyNotificationService, decorators: [{
111
+ type: Injectable,
112
+ args: [{
113
+ providedIn: 'root'
114
+ }]
115
+ }] });
@@ -1,4 +1,5 @@
1
1
  import { OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class FySSEService implements OnDestroy {
3
4
  private platformId;
4
5
  private fylib;
@@ -13,4 +14,6 @@ export declare class FySSEService implements OnDestroy {
13
14
  private reconnect;
14
15
  disconnect(): void;
15
16
  ngOnDestroy(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<FySSEService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<FySSEService>;
16
19
  }
@@ -1,18 +1,10 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
1
  import { Injectable, inject, PLATFORM_ID } from '@angular/core';
11
2
  import { isPlatformBrowser } from '@angular/common';
12
3
  import { FyLibService } from './fylib.service';
13
4
  import { FyNotificationService } from './notification.service';
14
5
  import { logger } from '@fylib/logger';
15
- let FySSEService = class FySSEService {
6
+ import * as i0 from "@angular/core";
7
+ export class FySSEService {
16
8
  constructor() {
17
9
  this.platformId = inject(PLATFORM_ID);
18
10
  this.fylib = inject(FyLibService);
@@ -99,11 +91,12 @@ let FySSEService = class FySSEService {
99
91
  ngOnDestroy() {
100
92
  this.disconnect();
101
93
  }
102
- };
103
- FySSEService = __decorate([
104
- Injectable({
105
- providedIn: 'root'
106
- }),
107
- __metadata("design:paramtypes", [])
108
- ], FySSEService);
109
- export { FySSEService };
94
+ }
95
+ FySSEService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FySSEService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
96
+ FySSEService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FySSEService, providedIn: 'root' });
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FySSEService, decorators: [{
98
+ type: Injectable,
99
+ args: [{
100
+ providedIn: 'root'
101
+ }]
102
+ }], ctorParameters: () => [] });
@@ -1,5 +1,6 @@
1
1
  import { HttpHeaders, HttpParams } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
3
4
  export interface FyHttpRequestOptions {
4
5
  headers?: HttpHeaders | Record<string, string | string[]>;
5
6
  params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
@@ -35,4 +36,6 @@ export declare class FyWebClientService {
35
36
  private processOutgoingData;
36
37
  private processIncomingData;
37
38
  private handleError;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<FyWebClientService, never>;
40
+ static ɵprov: i0.ɵɵInjectableDeclaration<FyWebClientService>;
38
41
  }
@@ -1,9 +1,3 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
1
  import { Injectable, inject } from '@angular/core';
8
2
  import { HttpClient, HttpErrorResponse } from '@angular/common/http';
9
3
  import { throwError, from } from 'rxjs';
@@ -11,7 +5,8 @@ import { catchError, retry, timeout, switchMap } from 'rxjs/operators';
11
5
  import { FyLibService } from './fylib.service';
12
6
  import { FyNotificationService } from './notification.service';
13
7
  import { cryptoEngine } from '@fylib/crypto';
14
- let FyWebClientService = class FyWebClientService {
8
+ import * as i0 from "@angular/core";
9
+ export class FyWebClientService {
15
10
  constructor() {
16
11
  this.http = inject(HttpClient);
17
12
  this.fylib = inject(FyLibService);
@@ -137,8 +132,10 @@ let FyWebClientService = class FyWebClientService {
137
132
  }
138
133
  return throwError(() => error);
139
134
  }
140
- };
141
- FyWebClientService = __decorate([
142
- Injectable({ providedIn: 'root' })
143
- ], FyWebClientService);
144
- export { FyWebClientService };
135
+ }
136
+ FyWebClientService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyWebClientService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
137
+ FyWebClientService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyWebClientService, providedIn: 'root' });
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyWebClientService, decorators: [{
139
+ type: Injectable,
140
+ args: [{ providedIn: 'root' }]
141
+ }] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fylib/adapter-angular",
3
- "version": "0.2.5",
3
+ "version": "0.2.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -25,22 +25,23 @@
25
25
  "rxjs": "~7.8.0",
26
26
  "tslib": "^2.3.0",
27
27
  "@fylib/core": "0.2.0",
28
+ "@fylib/theme": "0.2.0",
28
29
  "@fylib/animation": "0.2.0",
29
- "@fylib/catalog": "0.2.0",
30
+ "@fylib/config": "0.2.1",
30
31
  "@fylib/crypto": "0.2.0",
31
- "@fylib/theme": "0.2.0",
32
- "@fylib/logger": "0.2.0",
33
- "@fylib/config": "0.2.0"
32
+ "@fylib/catalog": "0.2.0",
33
+ "@fylib/logger": "0.2.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "^5.9.3",
37
37
  "@angular/common": "^18.0.0 || ^21.0.0",
38
38
  "@angular/core": "^18.0.0 || ^21.0.0",
39
39
  "@angular/compiler": "^18.0.0 || ^21.0.0",
40
+ "@angular/compiler-cli": "^18.0.0 || ^21.0.0",
40
41
  "@types/node": "^20.17.19"
41
42
  },
42
43
  "scripts": {
43
- "build": "tsc -p tsconfig.json && tsc -p tsconfig.schematics.json && node scripts/copy-schematics.js",
44
+ "build": "ngc -p tsconfig.json && tsc -p tsconfig.schematics.json && node scripts/copy-schematics.js",
44
45
  "test": "vitest run --passWithNoTests"
45
46
  }
46
47
  }