@fylib/adapter-angular 0.2.3 → 0.2.7
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/dist/components/accordion.component.d.ts +3 -0
- package/dist/components/accordion.component.js +105 -194
- package/dist/components/badge.component.d.ts +3 -0
- package/dist/components/badge.component.js +30 -81
- package/dist/components/button.component.d.ts +3 -0
- package/dist/components/button.component.js +79 -194
- package/dist/components/card.component.d.ts +3 -0
- package/dist/components/card.component.js +76 -147
- package/dist/components/chart.component.d.ts +3 -0
- package/dist/components/chart.component.js +81 -141
- package/dist/components/icon.component.d.ts +3 -0
- package/dist/components/icon.component.js +39 -62
- package/dist/components/input.component.d.ts +3 -0
- package/dist/components/input.component.js +120 -221
- package/dist/components/modal.component.d.ts +3 -0
- package/dist/components/modal.component.js +121 -247
- package/dist/components/nav-link.component.d.ts +3 -0
- package/dist/components/nav-link.component.js +43 -92
- package/dist/components/notification-menu.component.d.ts +3 -0
- package/dist/components/notification-menu.component.js +205 -367
- package/dist/components/select.component.d.ts +3 -0
- package/dist/components/select.component.js +116 -188
- package/dist/components/table.component.d.ts +3 -0
- package/dist/components/table.component.js +235 -332
- package/dist/components/text.component.d.ts +3 -0
- package/dist/components/text.component.js +22 -32
- package/dist/components/toast.component.d.ts +3 -0
- package/dist/components/toast.component.js +58 -163
- package/dist/directives/animation.directive.d.ts +3 -0
- package/dist/directives/animation.directive.js +15 -22
- package/dist/directives/theme-vars.directive.d.ts +3 -0
- package/dist/directives/theme-vars.directive.js +12 -19
- package/dist/directives/wallpaper.directive.d.ts +3 -0
- package/dist/directives/wallpaper.directive.js +19 -31
- package/dist/layouts/layout.component.d.ts +3 -0
- package/dist/layouts/layout.component.js +36 -130
- package/dist/layouts/slot.component.d.ts +3 -0
- package/dist/layouts/slot.component.js +240 -596
- package/dist/schematics/ng-add/index.js +120 -11
- package/dist/schematics/ng-add/index.js.map +1 -1
- package/dist/services/fylib.service.d.ts +3 -0
- package/dist/services/fylib.service.js +19 -26
- package/dist/services/notification.service.d.ts +3 -0
- package/dist/services/notification.service.js +13 -16
- package/dist/services/sse.service.d.ts +3 -0
- package/dist/services/sse.service.js +11 -18
- package/dist/services/webclient.service.d.ts +3 -0
- package/dist/services/webclient.service.js +9 -12
- package/package.json +5 -4
|
@@ -58,25 +58,75 @@ function updateAppComponent() {
|
|
|
58
58
|
const targetPath = tree.exists(appPath) ? appPath : (tree.exists(altPath) ? altPath : null);
|
|
59
59
|
if (!targetPath)
|
|
60
60
|
return tree;
|
|
61
|
-
|
|
61
|
+
let content = tree.read(targetPath)?.toString('utf-8') || '';
|
|
62
62
|
if (content.includes('FyLibService'))
|
|
63
63
|
return tree;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
content;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
// 1. Fix Angular Core Imports (avoid duplicates)
|
|
65
|
+
if (content.includes('@angular/core')) {
|
|
66
|
+
// Find the existing import from @angular/core
|
|
67
|
+
const coreImportMatch = content.match(/import\s*{([^}]+)}\s*from\s*['"]@angular\/core['"]/);
|
|
68
|
+
if (coreImportMatch) {
|
|
69
|
+
const existingImports = coreImportMatch[1].split(',').map(i => i.trim());
|
|
70
|
+
const neededImports = ['inject', 'OnInit', 'signal'];
|
|
71
|
+
const toAdd = neededImports.filter(i => !existingImports.includes(i));
|
|
72
|
+
if (toAdd.length > 0) {
|
|
73
|
+
const newCoreImport = `import { ${[...existingImports, ...toAdd].join(', ')} } from '@angular/core'`;
|
|
74
|
+
content = content.replace(coreImportMatch[0], newCoreImport);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
content = `import { inject, OnInit, signal } from '@angular/core';\n` + content;
|
|
80
|
+
}
|
|
81
|
+
// 2. Add FyLib Imports
|
|
82
|
+
const fylibImports = [
|
|
83
|
+
'FyLibService', 'FySSEService', 'FyThemeVarsDirective',
|
|
84
|
+
'FyLayoutComponent', 'FyCardComponent', 'FyButtonComponent',
|
|
85
|
+
'FyIconComponent', 'FyTextComponent'
|
|
86
|
+
];
|
|
87
|
+
content = `import { ${fylibImports.join(', ')} } from '@fylib/adapter-angular';\n` +
|
|
88
|
+
`import { themeConfig } from '../fylib/theme.config';\n` + content;
|
|
89
|
+
// 3. Update Component Decorator Imports
|
|
90
|
+
if (content.includes('imports: [')) {
|
|
91
|
+
content = content.replace(/imports:\s*\[/, `imports: [\n FyThemeVarsDirective, FyLayoutComponent, FyCardComponent, FyButtonComponent, FyIconComponent, FyTextComponent,`);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
// If no imports array, add it (assuming it's a standalone component)
|
|
95
|
+
content = content.replace(/@Component\({/, `@Component({\n standalone: true,\n imports: [\n FyThemeVarsDirective, FyLayoutComponent, FyCardComponent, FyButtonComponent, FyIconComponent, FyTextComponent\n ],`);
|
|
96
|
+
}
|
|
97
|
+
// 4. Update Class Definition
|
|
98
|
+
content = content.replace(/export class (\w+) \{/, `export class $1 implements OnInit {\n private fylib = inject(FyLibService);\n private sse = inject(FySSEService);\n protected readonly mode = signal<'light' | 'dark'>('light');\n\n ngOnInit() {\n this.fylib.setTheme(themeConfig.theme);\n this.fylib.setMode(this.mode());\n }\n`);
|
|
99
|
+
tree.overwrite(targetPath, content);
|
|
71
100
|
return tree;
|
|
72
101
|
};
|
|
73
102
|
}
|
|
74
103
|
function updateAppHTML() {
|
|
75
104
|
return (tree) => {
|
|
76
105
|
const htmlPath = 'src/app/app.component.html';
|
|
77
|
-
|
|
106
|
+
const altHtmlPath = 'src/app/app.html';
|
|
107
|
+
const targetHtmlPath = tree.exists(htmlPath) ? htmlPath : (tree.exists(altHtmlPath) ? altHtmlPath : null);
|
|
108
|
+
if (!targetHtmlPath)
|
|
78
109
|
return tree;
|
|
79
|
-
const
|
|
110
|
+
const content = tree.read(targetHtmlPath)?.toString('utf-8') || '';
|
|
111
|
+
// Check if it's default Angular HTML
|
|
112
|
+
const isDefault = content.includes('Next Steps') ||
|
|
113
|
+
content.includes('Resources') ||
|
|
114
|
+
content.includes('Congratulations! Your app is running.');
|
|
115
|
+
if (isDefault) {
|
|
116
|
+
tree.overwrite(targetHtmlPath, getWelcomeHTML());
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
// It's a custom project, create a separate component and route
|
|
120
|
+
return (0, schematics_1.chain)([
|
|
121
|
+
createWelcomeComponent(),
|
|
122
|
+
updateRoutes()
|
|
123
|
+
]);
|
|
124
|
+
}
|
|
125
|
+
return tree;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function getWelcomeHTML() {
|
|
129
|
+
return `
|
|
80
130
|
<div fyThemeVars class="fy-app-container">
|
|
81
131
|
<fy-layout name="app-layout" bgEffect="aurora" [bgEffectIntensity]="0.4">
|
|
82
132
|
<div class="welcome-container">
|
|
@@ -181,7 +231,66 @@ function updateAppHTML() {
|
|
|
181
231
|
}
|
|
182
232
|
</style>
|
|
183
233
|
`;
|
|
184
|
-
|
|
234
|
+
}
|
|
235
|
+
function createWelcomeComponent() {
|
|
236
|
+
return (tree) => {
|
|
237
|
+
const componentDir = 'src/app/fylib-welcome';
|
|
238
|
+
if (tree.exists(`${componentDir}/fylib-welcome.component.ts`))
|
|
239
|
+
return tree;
|
|
240
|
+
const tsContent = `import { Component } from '@angular/core';
|
|
241
|
+
import {
|
|
242
|
+
FyLayoutComponent, FyCardComponent, FyButtonComponent,
|
|
243
|
+
FyIconComponent, FyTextComponent, FyThemeVarsDirective
|
|
244
|
+
} from '@fylib/adapter-angular';
|
|
245
|
+
|
|
246
|
+
@Component({
|
|
247
|
+
selector: 'app-fylib-welcome',
|
|
248
|
+
standalone: true,
|
|
249
|
+
imports: [
|
|
250
|
+
FyThemeVarsDirective, FyLayoutComponent, FyCardComponent,
|
|
251
|
+
FyButtonComponent, FyIconComponent, FyTextComponent
|
|
252
|
+
],
|
|
253
|
+
templateUrl: './fylib-welcome.component.html',
|
|
254
|
+
styles: [\`
|
|
255
|
+
:host { display: block; height: 100vh; }
|
|
256
|
+
.fy-app-container { height: 100vh; width: 100%; overflow: hidden; }
|
|
257
|
+
.welcome-container { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; }
|
|
258
|
+
.welcome-card { max-width: 500px; width: 100%; animation: fadeInScale 0.6s ease-out; }
|
|
259
|
+
.welcome-header { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 0 16px; }
|
|
260
|
+
.logo-box { background: var(--fy-colors-primary); color: white; padding: 16px; border-radius: 16px; box-shadow: 0 8px 16px rgba(var(--fy-colors-primary-rgb), 0.3); }
|
|
261
|
+
.welcome-title { font-size: 28px; font-weight: 800; color: var(--fy-colors-text); }
|
|
262
|
+
.welcome-content { text-align: center; padding: 0 24px 24px; }
|
|
263
|
+
.welcome-desc { color: var(--fy-colors-secondary); line-height: 1.6; margin-bottom: 32px; }
|
|
264
|
+
.welcome-actions { display: flex; flex-direction: column; gap: 12px; }
|
|
265
|
+
.welcome-actions a { width: 100%; }
|
|
266
|
+
.welcome-footer { opacity: 0.6; font-size: 12px; justify-content: center; }
|
|
267
|
+
@keyframes fadeInScale {
|
|
268
|
+
from { opacity: 0; transform: scale(0.95) translateY(10px); }
|
|
269
|
+
to { opacity: 1; transform: scale(1) translateY(0); }
|
|
270
|
+
}
|
|
271
|
+
\`]
|
|
272
|
+
})
|
|
273
|
+
export class FylibWelcomeComponent {}
|
|
274
|
+
`;
|
|
275
|
+
const htmlContent = getWelcomeHTML();
|
|
276
|
+
tree.create(`${componentDir}/fylib-welcome.component.ts`, tsContent);
|
|
277
|
+
tree.create(`${componentDir}/fylib-welcome.component.html`, htmlContent);
|
|
278
|
+
return tree;
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
function updateRoutes() {
|
|
282
|
+
return (tree) => {
|
|
283
|
+
const routesPath = 'src/app/app.routes.ts';
|
|
284
|
+
if (!tree.exists(routesPath))
|
|
285
|
+
return tree;
|
|
286
|
+
let content = tree.read(routesPath)?.toString('utf-8') || '';
|
|
287
|
+
if (content.includes('fylib-welcome'))
|
|
288
|
+
return tree;
|
|
289
|
+
// Add import
|
|
290
|
+
content = `import { FylibWelcomeComponent } from './fylib-welcome/fylib-welcome.component';\n` + content;
|
|
291
|
+
// Add route to the routes array
|
|
292
|
+
content = content.replace(/export const routes: Routes = \[/, `export const routes: Routes = [\n { path: 'fylib-welcome', component: FylibWelcomeComponent },`);
|
|
293
|
+
tree.overwrite(routesPath, content);
|
|
185
294
|
return tree;
|
|
186
295
|
};
|
|
187
296
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;AAgBA,sBAUC;AA1BD,2DAYoC;AACpC,+CAAqD;AACrD,4DAA0E;AAE1E,SAAgB,KAAK,CAAC,OAAY;IAChC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,OAAO,IAAA,kBAAK,EAAC;YACX,QAAQ,EAAE;YACV,eAAe,EAAE;YACjB,kBAAkB,EAAE;YACpB,aAAa,EAAE;YACf,mBAAmB,EAAE;SACtB,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ;IACf,OAAO,IAAA,sBAAS,EACd,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,oBAAoB,CAAC,EAAE;QAC/B,IAAA,qBAAQ,EAAC;YACP,GAAG,cAAO;SACX,CAAC;QACF,IAAA,iBAAI,EAAC,WAAW,CAAC;QACjB,IAAA,oBAAO,EAAC,CAAC,SAAoB,EAAE,EAAE;YAC/B,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gBACzC,OAAO;oBACL,OAAO,EAAE,SAAS,CAAC,OAAO;oBAC1B,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,WA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OAAO,CAAC,OAAO,CACb,IAAI,8BAAsB,CAAC;YACzB,WAAW,EAAE;gBACX,aAAa;gBACb,eAAe;gBACf,cAAc;gBACd,kBAAkB;gBAClB,gBAAgB;gBAChB,eAAe;gBACf,eAAe;gBACf,wBAAwB;aACzB,CAAC,IAAI,CAAC,GAAG,CAAC;SACZ,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -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
|
-
|
|
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 =
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
],
|
|
214
|
-
|
|
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
|
-
|
|
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 =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
|
|
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 =
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
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 =
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,20 +27,21 @@
|
|
|
27
27
|
"@fylib/core": "0.2.0",
|
|
28
28
|
"@fylib/animation": "0.2.0",
|
|
29
29
|
"@fylib/theme": "0.2.0",
|
|
30
|
-
"@fylib/config": "0.2.0",
|
|
31
30
|
"@fylib/catalog": "0.2.0",
|
|
32
31
|
"@fylib/crypto": "0.2.0",
|
|
33
|
-
"@fylib/logger": "0.2.0"
|
|
32
|
+
"@fylib/logger": "0.2.0",
|
|
33
|
+
"@fylib/config": "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": "
|
|
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
|
}
|