@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,18 +1,11 @@
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 { Component, Input, ViewEncapsulation, HostBinding, inject, effect, PLATFORM_ID } from '@angular/core';
11
2
  import { CommonModule, isPlatformBrowser } from '@angular/common';
12
3
  import { FyLibService } from '../services/fylib.service';
13
4
  import { AppLayoutDefinition } from '@fylib/catalog';
14
5
  import { resolveAnimationsActive, triggerEffectForEvent } from '../base/interaction.utils';
15
- let FyLayoutComponent = class FyLayoutComponent {
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@angular/common";
8
+ export class FyLayoutComponent {
16
9
  get animationsDisabled() {
17
10
  return !resolveAnimationsActive(this.fylib, 'fy-layout', this.activeAnimations);
18
11
  }
@@ -130,126 +123,39 @@ let FyLayoutComponent = class FyLayoutComponent {
130
123
  resolveAnimationsActive() {
131
124
  return resolveAnimationsActive(this.fylib, 'fy-layout', this.activeAnimations);
132
125
  }
133
- };
134
- __decorate([
135
- Input(),
136
- __metadata("design:type", String)
137
- ], FyLayoutComponent.prototype, "name", void 0);
138
- __decorate([
139
- Input(),
140
- __metadata("design:type", Object)
141
- ], FyLayoutComponent.prototype, "activeAnimations", void 0);
142
- __decorate([
143
- Input(),
144
- __metadata("design:type", Object)
145
- ], FyLayoutComponent.prototype, "activeEffects", void 0);
146
- __decorate([
147
- Input(),
148
- __metadata("design:type", Object)
149
- ], FyLayoutComponent.prototype, "customStyles", void 0);
150
- __decorate([
151
- Input(),
152
- __metadata("design:type", String)
153
- ], FyLayoutComponent.prototype, "enterEffect", void 0);
154
- __decorate([
155
- Input(),
156
- __metadata("design:type", Object)
157
- ], FyLayoutComponent.prototype, "bgEffect", void 0);
158
- __decorate([
159
- Input(),
160
- __metadata("design:type", Object)
161
- ], FyLayoutComponent.prototype, "bgEffectIntensity", void 0);
162
- __decorate([
163
- Input(),
164
- __metadata("design:type", Object)
165
- ], FyLayoutComponent.prototype, "bgEffectSpeed", void 0);
166
- __decorate([
167
- Input(),
168
- __metadata("design:type", Object)
169
- ], FyLayoutComponent.prototype, "bgEffectLoop", void 0);
170
- __decorate([
171
- HostBinding('class.fy-animations-disabled'),
172
- __metadata("design:type", Boolean),
173
- __metadata("design:paramtypes", [])
174
- ], FyLayoutComponent.prototype, "animationsDisabled", null);
175
- FyLayoutComponent = __decorate([
176
- Component({
177
- selector: 'fy-layout',
178
- standalone: true,
179
- imports: [CommonModule],
180
- template: `
126
+ }
127
+ FyLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
128
+ FyLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.7", type: FyLayoutComponent, isStandalone: true, selector: "fy-layout", inputs: { name: "name", activeAnimations: "activeAnimations", activeEffects: "activeEffects", customStyles: "customStyles", enterEffect: "enterEffect", bgEffect: "bgEffect", bgEffectIntensity: "bgEffectIntensity", bgEffectSpeed: "bgEffectSpeed", bgEffectLoop: "bgEffectLoop" }, host: { properties: { "class.fy-animations-disabled": "this.animationsDisabled" } }, usesOnChanges: true, ngImport: i0, template: `
181
129
  <div [class]="'fy-layout fy-layout--' + name" [ngStyle]="customStyles || null">
182
130
  <ng-content></ng-content>
183
131
  </div>
184
- `,
185
- styles: [`
186
- .fy-layout {
187
- display: flex;
188
- flex-direction: column;
189
- min-height: 100vh;
190
- width: 100%;
191
- overflow-x: hidden;
192
- background-color: var(--fy-colors-background);
193
- color: var(--fy-colors-text);
194
- font-family: var(--fy-typography-fontFamily-base, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
195
- transition: background-color 0.3s ease, color 0.3s ease;
196
- }
197
-
198
- /* App Layout specific styles */
199
- .fy-layout--app-layout {
200
- display: grid;
201
- grid-template-areas:
202
- "header"
203
- "content"
204
- "footer";
205
- grid-template-columns: 1fr;
206
- grid-template-rows: auto 1fr auto;
207
- gap: var(--fy-layout-gap, 0);
208
- }
209
-
210
- /* When sidebar slot is present, switch to two columns */
211
- .fy-layout--app-layout:has(.fy-slot--sidebar) {
212
- grid-template-areas:
213
- "header header"
214
- "sidebar content"
215
- "footer footer";
216
- grid-template-columns: var(--fy-layout-sidebar-width, 260px) 1fr;
217
- }
218
-
219
- /* Fixed Sidebar mode: Lock height to viewport and disable global scroll */
220
- .fy-layout--app-layout:has(.fy-slot--sidebar-fixed) {
221
- height: 100vh;
222
- min-height: 100vh;
223
- max-height: 100vh;
224
- overflow: hidden;
225
- }
226
-
227
- /* Ensure content area takes full height and scrolls internally in fixed mode */
228
- .fy-layout--app-layout:has(.fy-slot--sidebar-fixed) .fy-slot--content {
229
- height: 100%;
230
- overflow-y: auto;
231
- }
232
-
233
- @media (max-width: 768px) {
234
- .fy-layout--app-layout {
235
- grid-template-areas:
236
- "header"
237
- "content"
238
- "footer";
239
- grid-template-columns: 1fr;
240
- }
241
-
242
- .fy-layout--app-layout:has(.fy-slot--sidebar) {
243
- grid-template-areas:
244
- "header"
245
- "content"
246
- "footer";
247
- grid-template-columns: 1fr;
248
- }
249
- }
250
- `],
251
- encapsulation: ViewEncapsulation.None
252
- }),
253
- __metadata("design:paramtypes", [])
254
- ], FyLayoutComponent);
255
- export { FyLayoutComponent };
132
+ `, isInline: true, styles: ["\n .fy-layout {\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n width: 100%;\n overflow-x: hidden;\n background-color: var(--fy-colors-background);\n color: var(--fy-colors-text);\n font-family: var(--fy-typography-fontFamily-base, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif);\n transition: background-color 0.3s ease, color 0.3s ease;\n }\n\n /* App Layout specific styles */\n .fy-layout--app-layout {\n display: grid;\n grid-template-areas:\n \"header\"\n \"content\"\n \"footer\";\n grid-template-columns: 1fr;\n grid-template-rows: auto 1fr auto;\n gap: var(--fy-layout-gap, 0);\n }\n\n /* When sidebar slot is present, switch to two columns */\n .fy-layout--app-layout:has(.fy-slot--sidebar) {\n grid-template-areas:\n \"header header\"\n \"sidebar content\"\n \"footer footer\";\n grid-template-columns: var(--fy-layout-sidebar-width, 260px) 1fr;\n }\n\n /* Fixed Sidebar mode: Lock height to viewport and disable global scroll */\n .fy-layout--app-layout:has(.fy-slot--sidebar-fixed) {\n height: 100vh;\n min-height: 100vh;\n max-height: 100vh;\n overflow: hidden;\n }\n\n /* Ensure content area takes full height and scrolls internally in fixed mode */\n .fy-layout--app-layout:has(.fy-slot--sidebar-fixed) .fy-slot--content {\n height: 100%;\n overflow-y: auto;\n }\n\n @media (max-width: 768px) {\n .fy-layout--app-layout {\n grid-template-areas: \n \"header\"\n \"content\"\n \"footer\";\n grid-template-columns: 1fr;\n }\n\n .fy-layout--app-layout:has(.fy-slot--sidebar) {\n grid-template-areas: \n \"header\"\n \"content\"\n \"footer\";\n grid-template-columns: 1fr;\n }\n }\n "], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyLayoutComponent, decorators: [{
134
+ type: Component,
135
+ args: [{ selector: 'fy-layout', standalone: true, imports: [CommonModule], template: `
136
+ <div [class]="'fy-layout fy-layout--' + name" [ngStyle]="customStyles || null">
137
+ <ng-content></ng-content>
138
+ </div>
139
+ `, encapsulation: ViewEncapsulation.None, styles: ["\n .fy-layout {\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n width: 100%;\n overflow-x: hidden;\n background-color: var(--fy-colors-background);\n color: var(--fy-colors-text);\n font-family: var(--fy-typography-fontFamily-base, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif);\n transition: background-color 0.3s ease, color 0.3s ease;\n }\n\n /* App Layout specific styles */\n .fy-layout--app-layout {\n display: grid;\n grid-template-areas:\n \"header\"\n \"content\"\n \"footer\";\n grid-template-columns: 1fr;\n grid-template-rows: auto 1fr auto;\n gap: var(--fy-layout-gap, 0);\n }\n\n /* When sidebar slot is present, switch to two columns */\n .fy-layout--app-layout:has(.fy-slot--sidebar) {\n grid-template-areas:\n \"header header\"\n \"sidebar content\"\n \"footer footer\";\n grid-template-columns: var(--fy-layout-sidebar-width, 260px) 1fr;\n }\n\n /* Fixed Sidebar mode: Lock height to viewport and disable global scroll */\n .fy-layout--app-layout:has(.fy-slot--sidebar-fixed) {\n height: 100vh;\n min-height: 100vh;\n max-height: 100vh;\n overflow: hidden;\n }\n\n /* Ensure content area takes full height and scrolls internally in fixed mode */\n .fy-layout--app-layout:has(.fy-slot--sidebar-fixed) .fy-slot--content {\n height: 100%;\n overflow-y: auto;\n }\n\n @media (max-width: 768px) {\n .fy-layout--app-layout {\n grid-template-areas: \n \"header\"\n \"content\"\n \"footer\";\n grid-template-columns: 1fr;\n }\n\n .fy-layout--app-layout:has(.fy-slot--sidebar) {\n grid-template-areas: \n \"header\"\n \"content\"\n \"footer\";\n grid-template-columns: 1fr;\n }\n }\n "] }]
140
+ }], ctorParameters: () => [], propDecorators: { name: [{
141
+ type: Input
142
+ }], activeAnimations: [{
143
+ type: Input
144
+ }], activeEffects: [{
145
+ type: Input
146
+ }], customStyles: [{
147
+ type: Input
148
+ }], enterEffect: [{
149
+ type: Input
150
+ }], bgEffect: [{
151
+ type: Input
152
+ }], bgEffectIntensity: [{
153
+ type: Input
154
+ }], bgEffectSpeed: [{
155
+ type: Input
156
+ }], bgEffectLoop: [{
157
+ type: Input
158
+ }], animationsDisabled: [{
159
+ type: HostBinding,
160
+ args: ['class.fy-animations-disabled']
161
+ }] } });
@@ -1,5 +1,6 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { EffectName } from '@fylib/config';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class FySlotComponent implements OnDestroy {
4
5
  private fylib;
5
6
  name: 'content' | 'sidebar' | 'header' | 'footer';
@@ -58,4 +59,6 @@ export declare class FySlotComponent implements OnDestroy {
58
59
  ngOnDestroy(): void;
59
60
  private resolveAnimationsActive;
60
61
  private updateBodyScroll;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<FySlotComponent, never>;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<FySlotComponent, "fy-slot", never, { "name": { "alias": "name"; "required": false; }; "activeAnimations": { "alias": "activeAnimations"; "required": false; }; "activeEffects": { "alias": "activeEffects"; "required": false; }; "customStyles": { "alias": "customStyles"; "required": false; }; "fixedSidebar": { "alias": "fixedSidebar"; "required": false; }; "copyrightText": { "alias": "copyrightText"; "required": false; }; "copyrightShineDuration": { "alias": "copyrightShineDuration"; "required": false; }; "openEffect": { "alias": "openEffect"; "required": false; }; "closeEffect": { "alias": "closeEffect"; "required": false; }; "headerMenuAnimationOpen": { "alias": "headerMenuAnimationOpen"; "required": false; }; "headerMenuAnimationClose": { "alias": "headerMenuAnimationClose"; "required": false; }; "headerLinksAlign": { "alias": "headerLinksAlign"; "required": false; }; "headerLogoImgSrc": { "alias": "headerLogoImgSrc"; "required": false; }; "headerLogoSvgSrc": { "alias": "headerLogoSvgSrc"; "required": false; }; "headerLogoAlt": { "alias": "headerLogoAlt"; "required": false; }; "headerLogoBadgeText": { "alias": "headerLogoBadgeText"; "required": false; }; "headerLogoBadgeBG": { "alias": "headerLogoBadgeBG"; "required": false; }; "headerLogoBadgeTextColor": { "alias": "headerLogoBadgeTextColor"; "required": false; }; "headerLogoBadgeRadius": { "alias": "headerLogoBadgeRadius"; "required": false; }; "headerLogoBadgeShine": { "alias": "headerLogoBadgeShine"; "required": false; }; "headerLogoColorLight": { "alias": "headerLogoColorLight"; "required": false; }; "headerLogoColorDark": { "alias": "headerLogoColorDark"; "required": false; }; "sidebarLogoImgSrc": { "alias": "sidebarLogoImgSrc"; "required": false; }; "sidebarLogoSvgSrc": { "alias": "sidebarLogoSvgSrc"; "required": false; }; "sidebarLogoAlt": { "alias": "sidebarLogoAlt"; "required": false; }; "headerLogoFilter": { "alias": "headerLogoFilter"; "required": false; }; "sidebarLogoFilter": { "alias": "sidebarLogoFilter"; "required": false; }; "sidebarLogoColorLight": { "alias": "sidebarLogoColorLight"; "required": false; }; "sidebarLogoColorDark": { "alias": "sidebarLogoColorDark"; "required": false; }; "sidebarLogoBadgeText": { "alias": "sidebarLogoBadgeText"; "required": false; }; "sidebarLogoBadgeBG": { "alias": "sidebarLogoBadgeBG"; "required": false; }; "sidebarLogoBadgeTextColor": { "alias": "sidebarLogoBadgeTextColor"; "required": false; }; "sidebarLogoBadgeRadius": { "alias": "sidebarLogoBadgeRadius"; "required": false; }; "sidebarLogoBadgeShine": { "alias": "sidebarLogoBadgeShine"; "required": false; }; }, {}, never, ["*", "[fy-sidebar-logo]", "[fy-sidebar-header]", "[fy-sidebar-links]", "[fy-sidebar-footer]", "[fy-header-logo]", "[fy-header-links],[fy-header-links-center]", "[fy-header-links-right]", "[fy-header-meta]", "[fy-header-links-right]"], true, never>;
61
64
  }