@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.
Files changed (49) 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/schematics/ng-add/index.js +120 -11
  40. package/dist/schematics/ng-add/index.js.map +1 -1
  41. package/dist/services/fylib.service.d.ts +3 -0
  42. package/dist/services/fylib.service.js +19 -26
  43. package/dist/services/notification.service.d.ts +3 -0
  44. package/dist/services/notification.service.js +13 -16
  45. package/dist/services/sse.service.d.ts +3 -0
  46. package/dist/services/sse.service.js +11 -18
  47. package/dist/services/webclient.service.d.ts +3 -0
  48. package/dist/services/webclient.service.js +9 -12
  49. package/package.json +5 -4
@@ -1,12 +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
1
  import { Component, Input, Output, EventEmitter, ViewEncapsulation, HostBinding, inject } from '@angular/core';
11
2
  import { CommonModule } from '@angular/common';
12
3
  import { ButtonDefinition } from '@fylib/catalog';
@@ -14,7 +5,8 @@ import { FyIconComponent } from './icon.component';
14
5
  import { BaseFyComponent } from '../base/base-component';
15
6
  import { FyLibService } from '../services/fylib.service';
16
7
  import { logger } from '@fylib/logger';
17
- let FyButtonComponent = class FyButtonComponent extends BaseFyComponent {
8
+ import * as i0 from "@angular/core";
9
+ export class FyButtonComponent extends BaseFyComponent {
18
10
  constructor() {
19
11
  super(inject(FyLibService), 'fy-button');
20
12
  this.label = undefined;
@@ -64,103 +56,9 @@ let FyButtonComponent = class FyButtonComponent extends BaseFyComponent {
64
56
  if (this.hoverEffect)
65
57
  this.triggerDirect(this.hoverEffect, this.activeEffects);
66
58
  }
67
- };
68
- __decorate([
69
- Input(),
70
- __metadata("design:type", Object)
71
- ], FyButtonComponent.prototype, "label", void 0);
72
- __decorate([
73
- Input(),
74
- __metadata("design:type", Object)
75
- ], FyButtonComponent.prototype, "variant", void 0);
76
- __decorate([
77
- Input(),
78
- __metadata("design:type", Object)
79
- ], FyButtonComponent.prototype, "size", void 0);
80
- __decorate([
81
- Input(),
82
- __metadata("design:type", Boolean)
83
- ], FyButtonComponent.prototype, "disabled", void 0);
84
- __decorate([
85
- Input(),
86
- __metadata("design:type", Boolean)
87
- ], FyButtonComponent.prototype, "loading", void 0);
88
- __decorate([
89
- Input(),
90
- __metadata("design:type", String)
91
- ], FyButtonComponent.prototype, "icon", void 0);
92
- __decorate([
93
- Input(),
94
- __metadata("design:type", String)
95
- ], FyButtonComponent.prototype, "iconName", void 0);
96
- __decorate([
97
- Input(),
98
- __metadata("design:type", String)
99
- ], FyButtonComponent.prototype, "iconSet", void 0);
100
- __decorate([
101
- Input(),
102
- __metadata("design:type", Object)
103
- ], FyButtonComponent.prototype, "activeAnimations", void 0);
104
- __decorate([
105
- Input(),
106
- __metadata("design:type", Object)
107
- ], FyButtonComponent.prototype, "activeEffects", void 0);
108
- __decorate([
109
- Input(),
110
- __metadata("design:type", Object)
111
- ], FyButtonComponent.prototype, "customStyles", void 0);
112
- __decorate([
113
- Input(),
114
- __metadata("design:type", String)
115
- ], FyButtonComponent.prototype, "hoverAnimation", void 0);
116
- __decorate([
117
- Input(),
118
- __metadata("design:type", String)
119
- ], FyButtonComponent.prototype, "clickAnimation", void 0);
120
- __decorate([
121
- Input(),
122
- __metadata("design:type", String)
123
- ], FyButtonComponent.prototype, "successAnimation", void 0);
124
- __decorate([
125
- Input(),
126
- __metadata("design:type", String)
127
- ], FyButtonComponent.prototype, "errorAnimation", void 0);
128
- __decorate([
129
- Input(),
130
- __metadata("design:type", String)
131
- ], FyButtonComponent.prototype, "hoverEffect", void 0);
132
- __decorate([
133
- Input(),
134
- __metadata("design:type", String)
135
- ], FyButtonComponent.prototype, "clickEffect", void 0);
136
- __decorate([
137
- Input(),
138
- __metadata("design:type", String)
139
- ], FyButtonComponent.prototype, "successEffect", void 0);
140
- __decorate([
141
- Input(),
142
- __metadata("design:type", String)
143
- ], FyButtonComponent.prototype, "errorEffect", void 0);
144
- __decorate([
145
- Output(),
146
- __metadata("design:type", Object)
147
- ], FyButtonComponent.prototype, "fyClick", void 0);
148
- __decorate([
149
- HostBinding('class.fy-animations-disabled'),
150
- __metadata("design:type", Boolean),
151
- __metadata("design:paramtypes", [])
152
- ], FyButtonComponent.prototype, "animationsDisabled", null);
153
- __decorate([
154
- HostBinding('style'),
155
- __metadata("design:type", String),
156
- __metadata("design:paramtypes", [])
157
- ], FyButtonComponent.prototype, "hostStyles", null);
158
- FyButtonComponent = __decorate([
159
- Component({
160
- selector: 'fy-button',
161
- standalone: true,
162
- imports: [CommonModule, FyIconComponent],
163
- template: `
59
+ }
60
+ FyButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
+ FyButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.7", type: FyButtonComponent, isStandalone: true, selector: "fy-button", inputs: { label: "label", variant: "variant", size: "size", disabled: "disabled", loading: "loading", icon: "icon", iconName: "iconName", iconSet: "iconSet", activeAnimations: "activeAnimations", activeEffects: "activeEffects", customStyles: "customStyles", hoverAnimation: "hoverAnimation", clickAnimation: "clickAnimation", successAnimation: "successAnimation", errorAnimation: "errorAnimation", hoverEffect: "hoverEffect", clickEffect: "clickEffect", successEffect: "successEffect", errorEffect: "errorEffect" }, outputs: { fyClick: "fyClick" }, host: { properties: { "class.fy-animations-disabled": "this.animationsDisabled", "style": "this.hostStyles" } }, usesInheritance: true, ngImport: i0, template: `
164
62
  <button
165
63
  [class]="'fy-button fy-button--' + variant + ' fy-button--' + size + animationClassSuffix"
166
64
  [disabled]="disabled || loading"
@@ -183,90 +81,77 @@ FyButtonComponent = __decorate([
183
81
  <span class="fy-button__label">{{ label }}</span>
184
82
  }
185
83
  </button>
186
- `,
187
- styles: [`
188
- .fy-button {
189
- display: inline-flex;
190
- align-items: center;
191
- justify-content: center;
192
- padding: var(--fy-spacing-sm) var(--fy-spacing-md);
193
- border-radius: var(--fy-borderRadius-md);
194
- font-family: inherit;
195
- font-size: var(--fy-typography-fontSize-md);
196
- font-weight: var(--fy-typography-fontWeight-bold);
197
- cursor: pointer;
198
- transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
199
- border: 1px solid var(--fy-effects-button-borderColor, transparent);
200
- background: var(--fy-effects-button-background, var(--fy-colors-primary));
201
- color: var(--fy-effects-button-textColor, var(--fy-colors-white));
202
- outline: none;
203
- user-select: none;
204
- position: relative;
205
- overflow: hidden;
206
- gap: 8px;
207
- }
208
-
209
- .fy-animations-disabled, .fy-animations-disabled * {
210
- transition: none !important;
211
- animation: none !important;
212
- }
213
-
214
- .fy-button--secondary {
215
- background: none !important;
216
- background-color: var(--fy-colors-secondary) !important;
217
- color: var(--fy-effects-button-textColor, var(--fy-colors-white)) !important;
218
- }
219
-
220
- .fy-button--ghost {
221
- background: none !important;
222
- background-color: transparent !important;
223
- color: var(--fy-colors-primary) !important;
224
- border-color: var(--fy-colors-primary) !important;
225
- }
226
-
227
- .fy-button--ghost:hover:not(:disabled) {
228
- background-color: rgba(var(--fy-colors-primary-rgb, 59, 130, 246), 0.1);
229
- }
230
-
231
- .fy-button--danger {
232
- background: none !important;
233
- background-color: var(--fy-colors-danger) !important;
234
- color: var(--fy-effects-button-textColor, var(--fy-colors-white)) !important;
235
- }
236
-
237
- .fy-button--sm {
238
- padding: var(--fy-spacing-xs) var(--fy-spacing-sm);
239
- font-size: var(--fy-typography-fontSize-sm);
240
- }
241
-
242
- .fy-button--lg {
243
- padding: var(--fy-spacing-md) var(--fy-spacing-lg);
244
- font-size: var(--fy-typography-fontSize-lg);
245
- }
246
-
247
- .fy-button:disabled {
248
- opacity: 0.6;
249
- cursor: not-allowed;
250
- }
251
-
252
- .fy-button__loader {
253
- width: 16px;
254
- height: 16px;
255
- border: 2px solid currentColor;
256
- border-bottom-color: transparent;
257
- border-radius: 50%;
258
- display: inline-block;
259
- animation: fy-spin 0.8s linear infinite;
260
- flex-shrink: 0;
261
- }
262
-
263
- @keyframes fy-spin {
264
- from { transform: rotate(0deg); }
265
- to { transform: rotate(360deg); }
266
- }
267
- `],
268
- encapsulation: ViewEncapsulation.None
269
- }),
270
- __metadata("design:paramtypes", [])
271
- ], FyButtonComponent);
272
- export { FyButtonComponent };
84
+ `, isInline: true, styles: ["\n .fy-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: var(--fy-spacing-sm) var(--fy-spacing-md);\n border-radius: var(--fy-borderRadius-md);\n font-family: inherit;\n font-size: var(--fy-typography-fontSize-md);\n font-weight: var(--fy-typography-fontWeight-bold);\n cursor: pointer;\n transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n border: 1px solid var(--fy-effects-button-borderColor, transparent);\n background: var(--fy-effects-button-background, var(--fy-colors-primary));\n color: var(--fy-effects-button-textColor, var(--fy-colors-white));\n outline: none;\n user-select: none;\n position: relative;\n overflow: hidden;\n gap: 8px;\n }\n\n .fy-animations-disabled, .fy-animations-disabled * {\n transition: none !important;\n animation: none !important;\n }\n\n .fy-button--secondary {\n background: none !important;\n background-color: var(--fy-colors-secondary) !important;\n color: var(--fy-effects-button-textColor, var(--fy-colors-white)) !important;\n }\n\n .fy-button--ghost {\n background: none !important;\n background-color: transparent !important;\n color: var(--fy-colors-primary) !important;\n border-color: var(--fy-colors-primary) !important;\n }\n\n .fy-button--ghost:hover:not(:disabled) {\n background-color: rgba(var(--fy-colors-primary-rgb, 59, 130, 246), 0.1);\n }\n\n .fy-button--danger {\n background: none !important;\n background-color: var(--fy-colors-danger) !important;\n color: var(--fy-effects-button-textColor, var(--fy-colors-white)) !important;\n }\n\n .fy-button--sm { \n padding: var(--fy-spacing-xs) var(--fy-spacing-sm); \n font-size: var(--fy-typography-fontSize-sm); \n }\n \n .fy-button--lg { \n padding: var(--fy-spacing-md) var(--fy-spacing-lg); \n font-size: var(--fy-typography-fontSize-lg); \n }\n\n .fy-button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n .fy-button__loader {\n width: 16px;\n height: 16px;\n border: 2px solid currentColor;\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n animation: fy-spin 0.8s linear infinite;\n flex-shrink: 0;\n }\n\n @keyframes fy-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FyIconComponent, selector: "fy-icon", inputs: ["name", "size", "color", "strokeWidth", "variant", "set"] }], encapsulation: i0.ViewEncapsulation.None });
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyButtonComponent, decorators: [{
86
+ type: Component,
87
+ args: [{ selector: 'fy-button', standalone: true, imports: [CommonModule, FyIconComponent], template: `
88
+ <button
89
+ [class]="'fy-button fy-button--' + variant + ' fy-button--' + size + animationClassSuffix"
90
+ [disabled]="disabled || loading"
91
+ (click)="handleClick($event)"
92
+ (mouseenter)="handleHover()"
93
+ [style]="hostStyles"
94
+ [attr.aria-busy]="loading"
95
+ [attr.aria-live]="loading ? 'polite' : null"
96
+ [attr.aria-label]="label || iconName || icon"
97
+ >
98
+ @if(loading) {
99
+ <span class="fy-button__loader"></span>
100
+ }
101
+ @if(iconName && !loading) {
102
+ <fy-icon [name]="iconName" [set]="iconSet" class="fy-button__icon"></fy-icon>
103
+ } @else if(icon && !loading) {
104
+ <span [class]="'fy-button__icon ' + icon"></span>
105
+ }
106
+ @if (label) {
107
+ <span class="fy-button__label">{{ label }}</span>
108
+ }
109
+ </button>
110
+ `, encapsulation: ViewEncapsulation.None, styles: ["\n .fy-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: var(--fy-spacing-sm) var(--fy-spacing-md);\n border-radius: var(--fy-borderRadius-md);\n font-family: inherit;\n font-size: var(--fy-typography-fontSize-md);\n font-weight: var(--fy-typography-fontWeight-bold);\n cursor: pointer;\n transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n border: 1px solid var(--fy-effects-button-borderColor, transparent);\n background: var(--fy-effects-button-background, var(--fy-colors-primary));\n color: var(--fy-effects-button-textColor, var(--fy-colors-white));\n outline: none;\n user-select: none;\n position: relative;\n overflow: hidden;\n gap: 8px;\n }\n\n .fy-animations-disabled, .fy-animations-disabled * {\n transition: none !important;\n animation: none !important;\n }\n\n .fy-button--secondary {\n background: none !important;\n background-color: var(--fy-colors-secondary) !important;\n color: var(--fy-effects-button-textColor, var(--fy-colors-white)) !important;\n }\n\n .fy-button--ghost {\n background: none !important;\n background-color: transparent !important;\n color: var(--fy-colors-primary) !important;\n border-color: var(--fy-colors-primary) !important;\n }\n\n .fy-button--ghost:hover:not(:disabled) {\n background-color: rgba(var(--fy-colors-primary-rgb, 59, 130, 246), 0.1);\n }\n\n .fy-button--danger {\n background: none !important;\n background-color: var(--fy-colors-danger) !important;\n color: var(--fy-effects-button-textColor, var(--fy-colors-white)) !important;\n }\n\n .fy-button--sm { \n padding: var(--fy-spacing-xs) var(--fy-spacing-sm); \n font-size: var(--fy-typography-fontSize-sm); \n }\n \n .fy-button--lg { \n padding: var(--fy-spacing-md) var(--fy-spacing-lg); \n font-size: var(--fy-typography-fontSize-lg); \n }\n\n .fy-button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n .fy-button__loader {\n width: 16px;\n height: 16px;\n border: 2px solid currentColor;\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n animation: fy-spin 0.8s linear infinite;\n flex-shrink: 0;\n }\n\n @keyframes fy-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "] }]
111
+ }], ctorParameters: () => [], propDecorators: { label: [{
112
+ type: Input
113
+ }], variant: [{
114
+ type: Input
115
+ }], size: [{
116
+ type: Input
117
+ }], disabled: [{
118
+ type: Input
119
+ }], loading: [{
120
+ type: Input
121
+ }], icon: [{
122
+ type: Input
123
+ }], iconName: [{
124
+ type: Input
125
+ }], iconSet: [{
126
+ type: Input
127
+ }], activeAnimations: [{
128
+ type: Input
129
+ }], activeEffects: [{
130
+ type: Input
131
+ }], customStyles: [{
132
+ type: Input
133
+ }], hoverAnimation: [{
134
+ type: Input
135
+ }], clickAnimation: [{
136
+ type: Input
137
+ }], successAnimation: [{
138
+ type: Input
139
+ }], errorAnimation: [{
140
+ type: Input
141
+ }], hoverEffect: [{
142
+ type: Input
143
+ }], clickEffect: [{
144
+ type: Input
145
+ }], successEffect: [{
146
+ type: Input
147
+ }], errorEffect: [{
148
+ type: Input
149
+ }], fyClick: [{
150
+ type: Output
151
+ }], animationsDisabled: [{
152
+ type: HostBinding,
153
+ args: ['class.fy-animations-disabled']
154
+ }], hostStyles: [{
155
+ type: HostBinding,
156
+ args: ['style']
157
+ }] } });
@@ -2,6 +2,7 @@ import { EventEmitter } from '@angular/core';
2
2
  import { CardProps } from '@fylib/catalog';
3
3
  import { EffectName } from '@fylib/config';
4
4
  import { BaseFyComponent, FyComponentBaseInputs } from '../base/base-component';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class FyCardComponent extends BaseFyComponent<'fy-card'> implements CardProps, FyComponentBaseInputs {
6
7
  title?: string;
7
8
  headerIconName?: string;
@@ -26,4 +27,6 @@ export declare class FyCardComponent extends BaseFyComponent<'fy-card'> implemen
26
27
  get hostStyles(): string;
27
28
  onSubmit(event: Event): void;
28
29
  private resolveAnimationsActive;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<FyCardComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<FyCardComponent, "fy-card", never, { "title": { "alias": "title"; "required": false; }; "headerIconName": { "alias": "headerIconName"; "required": false; }; "footerIconName": { "alias": "footerIconName"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "mutedHeader": { "alias": "mutedHeader"; "required": false; }; "mutedFooter": { "alias": "mutedFooter"; "required": false; }; "footerText": { "alias": "footerText"; "required": false; }; "scrollContent": { "alias": "scrollContent"; "required": false; }; "activeAnimations": { "alias": "activeAnimations"; "required": false; }; "activeEffects": { "alias": "activeEffects"; "required": false; }; "customStyles": { "alias": "customStyles"; "required": false; }; "submitEffect": { "alias": "submitEffect"; "required": false; }; }, { "fySubmit": "fySubmit"; }, never, ["[fy-card-header]", "*", "[fy-card-actions]", "[fy-card-footer]"], true, never>;
29
32
  }
@@ -1,19 +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, Output, EventEmitter, ViewEncapsulation, HostBinding, inject } from '@angular/core';
11
2
  import { CommonModule } from '@angular/common';
12
3
  import { CardDefinition } from '@fylib/catalog';
13
4
  import { FyIconComponent } from './icon.component';
14
5
  import { animationClasses } from '../base/interaction.utils';
15
6
  import { BaseFyComponent } from '../base/base-component';
16
- let FyCardComponent = class FyCardComponent extends BaseFyComponent {
7
+ import * as i0 from "@angular/core";
8
+ export class FyCardComponent extends BaseFyComponent {
17
9
  get animationsDisabled() {
18
10
  return !this.isAnimationsActive(this.activeAnimations);
19
11
  }
@@ -57,74 +49,9 @@ let FyCardComponent = class FyCardComponent extends BaseFyComponent {
57
49
  resolveAnimationsActive() {
58
50
  return this.isAnimationsActive(this.activeAnimations);
59
51
  }
60
- };
61
- __decorate([
62
- Input(),
63
- __metadata("design:type", String)
64
- ], FyCardComponent.prototype, "title", void 0);
65
- __decorate([
66
- Input(),
67
- __metadata("design:type", String)
68
- ], FyCardComponent.prototype, "headerIconName", void 0);
69
- __decorate([
70
- Input(),
71
- __metadata("design:type", String)
72
- ], FyCardComponent.prototype, "footerIconName", void 0);
73
- __decorate([
74
- Input(),
75
- __metadata("design:type", Object)
76
- ], FyCardComponent.prototype, "variant", void 0);
77
- __decorate([
78
- Input(),
79
- __metadata("design:type", Object)
80
- ], FyCardComponent.prototype, "mode", void 0);
81
- __decorate([
82
- Input(),
83
- __metadata("design:type", Boolean)
84
- ], FyCardComponent.prototype, "mutedHeader", void 0);
85
- __decorate([
86
- Input(),
87
- __metadata("design:type", Boolean)
88
- ], FyCardComponent.prototype, "mutedFooter", void 0);
89
- __decorate([
90
- Input(),
91
- __metadata("design:type", String)
92
- ], FyCardComponent.prototype, "footerText", void 0);
93
- __decorate([
94
- Input(),
95
- __metadata("design:type", Boolean)
96
- ], FyCardComponent.prototype, "scrollContent", void 0);
97
- __decorate([
98
- Input(),
99
- __metadata("design:type", Object)
100
- ], FyCardComponent.prototype, "activeAnimations", void 0);
101
- __decorate([
102
- Input(),
103
- __metadata("design:type", Object)
104
- ], FyCardComponent.prototype, "activeEffects", void 0);
105
- __decorate([
106
- Input(),
107
- __metadata("design:type", Object)
108
- ], FyCardComponent.prototype, "customStyles", void 0);
109
- __decorate([
110
- Input(),
111
- __metadata("design:type", String)
112
- ], FyCardComponent.prototype, "submitEffect", void 0);
113
- __decorate([
114
- Output(),
115
- __metadata("design:type", Object)
116
- ], FyCardComponent.prototype, "fySubmit", void 0);
117
- __decorate([
118
- HostBinding('class.fy-animations-disabled'),
119
- __metadata("design:type", Boolean),
120
- __metadata("design:paramtypes", [])
121
- ], FyCardComponent.prototype, "animationsDisabled", null);
122
- FyCardComponent = __decorate([
123
- Component({
124
- selector: 'fy-card',
125
- standalone: true,
126
- imports: [CommonModule, FyIconComponent],
127
- template: `
52
+ }
53
+ FyCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
54
+ FyCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.7", type: FyCardComponent, isStandalone: true, selector: "fy-card", inputs: { title: "title", headerIconName: "headerIconName", footerIconName: "footerIconName", variant: "variant", mode: "mode", mutedHeader: "mutedHeader", mutedFooter: "mutedFooter", footerText: "footerText", scrollContent: "scrollContent", activeAnimations: "activeAnimations", activeEffects: "activeEffects", customStyles: "customStyles", submitEffect: "submitEffect" }, outputs: { fySubmit: "fySubmit" }, host: { properties: { "class.fy-animations-disabled": "this.animationsDisabled" } }, usesInheritance: true, ngImport: i0, template: `
128
55
  <section
129
56
  class="fy-card fy-card--{{variant}} {{ animationClassSuffix }}"
130
57
  [style]="hostStyles"
@@ -162,75 +89,77 @@ FyCardComponent = __decorate([
162
89
  </footer>
163
90
  }
164
91
  </section>
165
- `,
166
- styles: [`
167
- .fy-card {
168
- display: flex;
169
- flex-direction: column;
170
- gap: var(--fy-spacing-sm, 8px);
171
- border-radius: var(--fy-borderRadius-lg, 12px);
172
- background: var(--fy-effects-card-background, var(--fy-colors-surface, #fff));
173
- border: 1px solid var(--fy-effects-card-borderColor, rgba(0,0,0,0.08));
174
- box-shadow: var(--fy-effects-card-shadow, 0 6px 24px rgba(15, 23, 42, 0.06));
175
- overflow: hidden;
176
- width: 100%;
177
- max-width: 100%;
178
- color: var(--fy-colors-textOverlay, var(--fy-colors-text));
179
- }
180
- .fy-card__header-icon, .fy-card__footer-icon { margin-right: var(--fy-spacing-sm, 8px); opacity: .9; }
181
-
182
- .fy-card__header,
183
- .fy-card__footer {
184
- padding: var(--fy-spacing-md, 16px);
185
- display: flex;
186
- align-items: center;
187
- justify-content: space-between;
188
- }
189
-
190
- .fy-card__header--muted,
191
- .fy-card__footer--muted {
192
- background: var(--fy-colors-mutedBackground, rgba(15, 23, 42, 0.03));
193
- color: var(--fy-colors-secondary, #64748b);
194
- }
195
-
196
- .fy-card__title {
197
- margin: 0;
198
- font-size: var(--fy-typography-fontSize-lg, 20px);
199
- font-weight: var(--fy-typography-fontWeight-bold, 700);
200
- }
201
-
202
- .fy-card__body {
203
- padding: var(--fy-spacing-md, 16px);
204
- display: flex;
205
- flex-direction: column;
206
- gap: var(--fy-spacing-md, 16px);
207
- }
208
-
209
- .fy-card__body--scroll {
210
- max-height: 420px;
211
- overflow-y: auto;
212
- }
92
+ `, isInline: true, styles: ["\n .fy-card {\n display: flex;\n flex-direction: column;\n gap: var(--fy-spacing-sm, 8px);\n border-radius: var(--fy-borderRadius-lg, 12px);\n background: var(--fy-effects-card-background, var(--fy-colors-surface, #fff));\n border: 1px solid var(--fy-effects-card-borderColor, rgba(0,0,0,0.08));\n box-shadow: var(--fy-effects-card-shadow, 0 6px 24px rgba(15, 23, 42, 0.06));\n overflow: hidden;\n width: 100%;\n max-width: 100%;\n color: var(--fy-colors-textOverlay, var(--fy-colors-text));\n }\n .fy-card__header-icon, .fy-card__footer-icon { margin-right: var(--fy-spacing-sm, 8px); opacity: .9; }\n\n .fy-card__header,\n .fy-card__footer {\n padding: var(--fy-spacing-md, 16px);\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .fy-card__header--muted,\n .fy-card__footer--muted {\n background: var(--fy-colors-mutedBackground, rgba(15, 23, 42, 0.03));\n color: var(--fy-colors-secondary, #64748b);\n }\n\n .fy-card__title {\n margin: 0;\n font-size: var(--fy-typography-fontSize-lg, 20px);\n font-weight: var(--fy-typography-fontWeight-bold, 700);\n }\n\n .fy-card__body {\n padding: var(--fy-spacing-md, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--fy-spacing-md, 16px);\n }\n\n .fy-card__body--scroll {\n max-height: 420px;\n overflow-y: auto;\n }\n\n .fy-card__actions {\n display: flex;\n gap: var(--fy-spacing-sm, 8px);\n padding-top: var(--fy-spacing-sm, 8px);\n border-top: 1px solid var(--fy-effects-card-dividerColor, rgba(0,0,0,0.08));\n justify-content: flex-end;\n flex-wrap: wrap;\n }\n\n @media (max-width: 768px) {\n .fy-card__body--scroll {\n max-height: 60vh;\n }\n .fy-card__actions {\n justify-content: stretch;\n }\n }\n "], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: FyIconComponent, selector: "fy-icon", inputs: ["name", "size", "color", "strokeWidth", "variant", "set"] }], encapsulation: i0.ViewEncapsulation.None });
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyCardComponent, decorators: [{
94
+ type: Component,
95
+ args: [{ selector: 'fy-card', standalone: true, imports: [CommonModule, FyIconComponent], template: `
96
+ <section
97
+ class="fy-card fy-card--{{variant}} {{ animationClassSuffix }}"
98
+ [style]="hostStyles"
99
+ >
100
+ @if (title || hasHeaderSlot) {
101
+ <header class="fy-card__header" [class.fy-card__header--muted]="mutedHeader">
102
+ @if (headerIconName) {
103
+ <fy-icon class="fy-card__header-icon" [name]="headerIconName"></fy-icon>
104
+ }
105
+ <ng-content select="[fy-card-header]"></ng-content>
106
+ @if (title) {
107
+ <h3 class="fy-card__title">{{ title }}</h3>
108
+ }
109
+ </header>
110
+ }
213
111
 
214
- .fy-card__actions {
215
- display: flex;
216
- gap: var(--fy-spacing-sm, 8px);
217
- padding-top: var(--fy-spacing-sm, 8px);
218
- border-top: 1px solid var(--fy-effects-card-dividerColor, rgba(0,0,0,0.08));
219
- justify-content: flex-end;
220
- flex-wrap: wrap;
221
- }
112
+ <form class="fy-card__body" [class.fy-card__body--scroll]="scrollContent" (submit)="onSubmit($event)">
113
+ <ng-content></ng-content>
114
+ @if (hasActionsSlot) {
115
+ <div class="fy-card__actions">
116
+ <ng-content select="[fy-card-actions]"></ng-content>
117
+ </div>
118
+ }
119
+ </form>
222
120
 
223
- @media (max-width: 768px) {
224
- .fy-card__body--scroll {
225
- max-height: 60vh;
226
- }
227
- .fy-card__actions {
228
- justify-content: stretch;
121
+ @if (footerText || hasFooterSlot) {
122
+ <footer class="fy-card__footer" [class.fy-card__footer--muted]="mutedFooter">
123
+ @if (footerIconName) {
124
+ <fy-icon class="fy-card__footer-icon" [name]="footerIconName"></fy-icon>
125
+ }
126
+ <ng-content select="[fy-card-footer]"></ng-content>
127
+ @if (footerText) {
128
+ <span>{{ footerText }}</span>
129
+ }
130
+ </footer>
229
131
  }
230
- }
231
- `],
232
- encapsulation: ViewEncapsulation.None
233
- }),
234
- __metadata("design:paramtypes", [])
235
- ], FyCardComponent);
236
- export { FyCardComponent };
132
+ </section>
133
+ `, encapsulation: ViewEncapsulation.None, styles: ["\n .fy-card {\n display: flex;\n flex-direction: column;\n gap: var(--fy-spacing-sm, 8px);\n border-radius: var(--fy-borderRadius-lg, 12px);\n background: var(--fy-effects-card-background, var(--fy-colors-surface, #fff));\n border: 1px solid var(--fy-effects-card-borderColor, rgba(0,0,0,0.08));\n box-shadow: var(--fy-effects-card-shadow, 0 6px 24px rgba(15, 23, 42, 0.06));\n overflow: hidden;\n width: 100%;\n max-width: 100%;\n color: var(--fy-colors-textOverlay, var(--fy-colors-text));\n }\n .fy-card__header-icon, .fy-card__footer-icon { margin-right: var(--fy-spacing-sm, 8px); opacity: .9; }\n\n .fy-card__header,\n .fy-card__footer {\n padding: var(--fy-spacing-md, 16px);\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .fy-card__header--muted,\n .fy-card__footer--muted {\n background: var(--fy-colors-mutedBackground, rgba(15, 23, 42, 0.03));\n color: var(--fy-colors-secondary, #64748b);\n }\n\n .fy-card__title {\n margin: 0;\n font-size: var(--fy-typography-fontSize-lg, 20px);\n font-weight: var(--fy-typography-fontWeight-bold, 700);\n }\n\n .fy-card__body {\n padding: var(--fy-spacing-md, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--fy-spacing-md, 16px);\n }\n\n .fy-card__body--scroll {\n max-height: 420px;\n overflow-y: auto;\n }\n\n .fy-card__actions {\n display: flex;\n gap: var(--fy-spacing-sm, 8px);\n padding-top: var(--fy-spacing-sm, 8px);\n border-top: 1px solid var(--fy-effects-card-dividerColor, rgba(0,0,0,0.08));\n justify-content: flex-end;\n flex-wrap: wrap;\n }\n\n @media (max-width: 768px) {\n .fy-card__body--scroll {\n max-height: 60vh;\n }\n .fy-card__actions {\n justify-content: stretch;\n }\n }\n "] }]
134
+ }], ctorParameters: () => [], propDecorators: { title: [{
135
+ type: Input
136
+ }], headerIconName: [{
137
+ type: Input
138
+ }], footerIconName: [{
139
+ type: Input
140
+ }], variant: [{
141
+ type: Input
142
+ }], mode: [{
143
+ type: Input
144
+ }], mutedHeader: [{
145
+ type: Input
146
+ }], mutedFooter: [{
147
+ type: Input
148
+ }], footerText: [{
149
+ type: Input
150
+ }], scrollContent: [{
151
+ type: Input
152
+ }], activeAnimations: [{
153
+ type: Input
154
+ }], activeEffects: [{
155
+ type: Input
156
+ }], customStyles: [{
157
+ type: Input
158
+ }], submitEffect: [{
159
+ type: Input
160
+ }], fySubmit: [{
161
+ type: Output
162
+ }], animationsDisabled: [{
163
+ type: HostBinding,
164
+ args: ['class.fy-animations-disabled']
165
+ }] } });
@@ -3,6 +3,7 @@ import { ChartProps, ChartType, ChartSeries } from '@fylib/catalog';
3
3
  import { BaseFyComponent } from '../base/base-component';
4
4
  import { BaseChartDirective } from 'ng2-charts';
5
5
  import { ChartConfiguration, ChartData, ChartEvent } from 'chart.js';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class FyChartComponent extends BaseFyComponent<'fy-chart'> implements ChartProps, OnInit, OnChanges {
7
8
  type: ChartType;
8
9
  series: ChartSeries[];
@@ -36,4 +37,6 @@ export declare class FyChartComponent extends BaseFyComponent<'fy-chart'> implem
36
37
  active?: {}[];
37
38
  }): void;
38
39
  get animationClassSuffix(): string;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<FyChartComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<FyChartComponent, "fy-chart", never, { "type": { "alias": "type"; "required": false; }; "series": { "alias": "series"; "required": false; }; "categories": { "alias": "categories"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; "showGrid": { "alias": "showGrid"; "required": false; }; "showLabels": { "alias": "showLabels"; "required": false; }; "stacked": { "alias": "stacked"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "activeAnimations": { "alias": "activeAnimations"; "required": false; }; "activeEffects": { "alias": "activeEffects"; "required": false; }; "customStyles": { "alias": "customStyles"; "required": false; }; }, { "fyDataClick": "fyDataClick"; }, never, never, true, never>;
39
42
  }