@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
|
@@ -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, inject, ViewChild, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
11
2
|
import { CommonModule } from '@angular/common';
|
|
12
3
|
import { ChartDefinition } from '@fylib/catalog';
|
|
13
4
|
import { FyLibService } from '../services/fylib.service';
|
|
14
5
|
import { BaseFyComponent } from '../base/base-component';
|
|
15
6
|
import { BaseChartDirective } from 'ng2-charts';
|
|
16
|
-
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class FyChartComponent extends BaseFyComponent {
|
|
17
9
|
constructor() {
|
|
18
10
|
super(inject(FyLibService), 'fy-chart');
|
|
19
11
|
this.type = ChartDefinition.defaultProps.type;
|
|
@@ -143,90 +135,9 @@ let FyChartComponent = class FyChartComponent extends BaseFyComponent {
|
|
|
143
135
|
const anim = this.resolveAnim('enter', undefined, ChartDefinition.features?.animations?.enter);
|
|
144
136
|
return anim ? ` fy-anim-${anim}` : '';
|
|
145
137
|
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
__metadata("design:type", String)
|
|
150
|
-
], FyChartComponent.prototype, "type", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
Input(),
|
|
153
|
-
__metadata("design:type", Array)
|
|
154
|
-
], FyChartComponent.prototype, "series", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
Input(),
|
|
157
|
-
__metadata("design:type", Array)
|
|
158
|
-
], FyChartComponent.prototype, "categories", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
Input(),
|
|
161
|
-
__metadata("design:type", String)
|
|
162
|
-
], FyChartComponent.prototype, "title", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
Input(),
|
|
165
|
-
__metadata("design:type", String)
|
|
166
|
-
], FyChartComponent.prototype, "subtitle", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
Input(),
|
|
169
|
-
__metadata("design:type", Object)
|
|
170
|
-
], FyChartComponent.prototype, "height", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
Input(),
|
|
173
|
-
__metadata("design:type", Object)
|
|
174
|
-
], FyChartComponent.prototype, "width", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
Input(),
|
|
177
|
-
__metadata("design:type", Array)
|
|
178
|
-
], FyChartComponent.prototype, "colors", void 0);
|
|
179
|
-
__decorate([
|
|
180
|
-
Input(),
|
|
181
|
-
__metadata("design:type", Boolean)
|
|
182
|
-
], FyChartComponent.prototype, "showLegend", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
Input(),
|
|
185
|
-
__metadata("design:type", Boolean)
|
|
186
|
-
], FyChartComponent.prototype, "showGrid", void 0);
|
|
187
|
-
__decorate([
|
|
188
|
-
Input(),
|
|
189
|
-
__metadata("design:type", Boolean)
|
|
190
|
-
], FyChartComponent.prototype, "showLabels", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
Input(),
|
|
193
|
-
__metadata("design:type", Boolean)
|
|
194
|
-
], FyChartComponent.prototype, "stacked", void 0);
|
|
195
|
-
__decorate([
|
|
196
|
-
Input(),
|
|
197
|
-
__metadata("design:type", Boolean)
|
|
198
|
-
], FyChartComponent.prototype, "animated", void 0);
|
|
199
|
-
__decorate([
|
|
200
|
-
Input(),
|
|
201
|
-
__metadata("design:type", String)
|
|
202
|
-
], FyChartComponent.prototype, "variant", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
Input(),
|
|
205
|
-
__metadata("design:type", Object)
|
|
206
|
-
], FyChartComponent.prototype, "activeAnimations", void 0);
|
|
207
|
-
__decorate([
|
|
208
|
-
Input(),
|
|
209
|
-
__metadata("design:type", Object)
|
|
210
|
-
], FyChartComponent.prototype, "activeEffects", void 0);
|
|
211
|
-
__decorate([
|
|
212
|
-
Input(),
|
|
213
|
-
__metadata("design:type", Object)
|
|
214
|
-
], FyChartComponent.prototype, "customStyles", void 0);
|
|
215
|
-
__decorate([
|
|
216
|
-
Output(),
|
|
217
|
-
__metadata("design:type", Object)
|
|
218
|
-
], FyChartComponent.prototype, "fyDataClick", void 0);
|
|
219
|
-
__decorate([
|
|
220
|
-
ViewChild(BaseChartDirective),
|
|
221
|
-
__metadata("design:type", BaseChartDirective)
|
|
222
|
-
], FyChartComponent.prototype, "chart", void 0);
|
|
223
|
-
FyChartComponent = __decorate([
|
|
224
|
-
Component({
|
|
225
|
-
selector: 'fy-chart',
|
|
226
|
-
standalone: true,
|
|
227
|
-
imports: [CommonModule, BaseChartDirective],
|
|
228
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
|
|
229
|
-
template: `
|
|
138
|
+
}
|
|
139
|
+
FyChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
140
|
+
FyChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.7", type: FyChartComponent, isStandalone: true, selector: "fy-chart", inputs: { type: "type", series: "series", categories: "categories", title: "title", subtitle: "subtitle", height: "height", width: "width", colors: "colors", showLegend: "showLegend", showGrid: "showGrid", showLabels: "showLabels", stacked: "stacked", animated: "animated", variant: "variant", activeAnimations: "activeAnimations", activeEffects: "activeEffects", customStyles: "customStyles" }, outputs: { fyDataClick: "fyDataClick" }, viewQueries: [{ propertyName: "chart", first: true, predicate: BaseChartDirective, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
230
141
|
<div
|
|
231
142
|
class="fy-chart-container"
|
|
232
143
|
[class]="'fy-chart--' + variant"
|
|
@@ -258,50 +169,79 @@ FyChartComponent = __decorate([
|
|
|
258
169
|
}
|
|
259
170
|
|
|
260
171
|
</div>
|
|
261
|
-
`,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
172
|
+
`, isInline: true, styles: ["\n .fy-chart-container {\n display: flex;\n flex-direction: column;\n width: 100%;\n background: var(--fy-effects-chart-background, transparent);\n border: 1px solid var(--fy-effects-chart-borderColor, transparent);\n border-radius: var(--fy-borderRadius-lg, 12px);\n padding: var(--fy-spacing-md);\n box-sizing: border-box;\n }\n\n .fy-chart__header {\n margin-bottom: var(--fy-spacing-md);\n }\n\n .fy-chart__title {\n margin: 0;\n font-size: var(--fy-typography-fontSize-lg);\n font-weight: var(--fy-typography-fontWeight-bold);\n color: var(--fy-colors-text);\n }\n\n .fy-chart__subtitle {\n margin: 4px 0 0;\n font-size: var(--fy-typography-fontSize-sm);\n color: var(--fy-colors-secondary);\n }\n\n .fy-chart__content {\n position: relative;\n margin: auto;\n width: 100%;\n }\n\n .fy-chart--minimal {\n padding: 0;\n border: none;\n background: transparent;\n }\n "], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: BaseChartDirective, selector: "canvas[baseChart]", inputs: ["type", "legend", "data", "options", "plugins", "labels", "datasets"], outputs: ["chartClick", "chartHover"], exportAs: ["base-chart"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyChartComponent, decorators: [{
|
|
174
|
+
type: Component,
|
|
175
|
+
args: [{ selector: 'fy-chart', standalone: true, imports: [CommonModule, BaseChartDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA], template: `
|
|
176
|
+
<div
|
|
177
|
+
class="fy-chart-container"
|
|
178
|
+
[class]="'fy-chart--' + variant"
|
|
179
|
+
[class]="composeAnimClasses(animationClassSuffix)"
|
|
180
|
+
[style]="getHostStyles(customStyles)"
|
|
181
|
+
>
|
|
182
|
+
|
|
183
|
+
@if(title || subtitle) {
|
|
184
|
+
<div class="fy-chart__header">
|
|
185
|
+
@if(title) {
|
|
186
|
+
<h3 class="fy-chart__title">{{ title }}</h3>
|
|
187
|
+
}
|
|
188
|
+
@if(subtitle) {
|
|
189
|
+
<p class="fy-chart__subtitle">{{ subtitle }}</p>
|
|
190
|
+
}
|
|
191
|
+
</div>
|
|
192
|
+
}
|
|
193
|
+
@if(chartData.datasets.length > 0) {
|
|
194
|
+
<div class="fy-chart__content" [style.height]="height" [style.width]="width">
|
|
195
|
+
<canvas
|
|
196
|
+
baseChart
|
|
197
|
+
[data]="chartData"
|
|
198
|
+
[options]="chartOptions"
|
|
199
|
+
[type]="chartJsType"
|
|
200
|
+
(chartClick)="onChartClick($event)"
|
|
201
|
+
>
|
|
202
|
+
</canvas>
|
|
203
|
+
</div>
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
</div>
|
|
207
|
+
`, encapsulation: ViewEncapsulation.None, styles: ["\n .fy-chart-container {\n display: flex;\n flex-direction: column;\n width: 100%;\n background: var(--fy-effects-chart-background, transparent);\n border: 1px solid var(--fy-effects-chart-borderColor, transparent);\n border-radius: var(--fy-borderRadius-lg, 12px);\n padding: var(--fy-spacing-md);\n box-sizing: border-box;\n }\n\n .fy-chart__header {\n margin-bottom: var(--fy-spacing-md);\n }\n\n .fy-chart__title {\n margin: 0;\n font-size: var(--fy-typography-fontSize-lg);\n font-weight: var(--fy-typography-fontWeight-bold);\n color: var(--fy-colors-text);\n }\n\n .fy-chart__subtitle {\n margin: 4px 0 0;\n font-size: var(--fy-typography-fontSize-sm);\n color: var(--fy-colors-secondary);\n }\n\n .fy-chart__content {\n position: relative;\n margin: auto;\n width: 100%;\n }\n\n .fy-chart--minimal {\n padding: 0;\n border: none;\n background: transparent;\n }\n "] }]
|
|
208
|
+
}], ctorParameters: () => [], propDecorators: { type: [{
|
|
209
|
+
type: Input
|
|
210
|
+
}], series: [{
|
|
211
|
+
type: Input
|
|
212
|
+
}], categories: [{
|
|
213
|
+
type: Input
|
|
214
|
+
}], title: [{
|
|
215
|
+
type: Input
|
|
216
|
+
}], subtitle: [{
|
|
217
|
+
type: Input
|
|
218
|
+
}], height: [{
|
|
219
|
+
type: Input
|
|
220
|
+
}], width: [{
|
|
221
|
+
type: Input
|
|
222
|
+
}], colors: [{
|
|
223
|
+
type: Input
|
|
224
|
+
}], showLegend: [{
|
|
225
|
+
type: Input
|
|
226
|
+
}], showGrid: [{
|
|
227
|
+
type: Input
|
|
228
|
+
}], showLabels: [{
|
|
229
|
+
type: Input
|
|
230
|
+
}], stacked: [{
|
|
231
|
+
type: Input
|
|
232
|
+
}], animated: [{
|
|
233
|
+
type: Input
|
|
234
|
+
}], variant: [{
|
|
235
|
+
type: Input
|
|
236
|
+
}], activeAnimations: [{
|
|
237
|
+
type: Input
|
|
238
|
+
}], activeEffects: [{
|
|
239
|
+
type: Input
|
|
240
|
+
}], customStyles: [{
|
|
241
|
+
type: Input
|
|
242
|
+
}], fyDataClick: [{
|
|
243
|
+
type: Output
|
|
244
|
+
}], chart: [{
|
|
245
|
+
type: ViewChild,
|
|
246
|
+
args: [BaseChartDirective]
|
|
247
|
+
}] } });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IconVariant } from '../icons/registry';
|
|
2
2
|
import { IconSet } from '@fylib/config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
type IconSize = 'sm' | 'md' | 'lg';
|
|
4
5
|
export declare class FyIconComponent {
|
|
5
6
|
private fylib;
|
|
@@ -14,5 +15,7 @@ export declare class FyIconComponent {
|
|
|
14
15
|
private _svgViewBox;
|
|
15
16
|
get svgViewBox(): string;
|
|
16
17
|
get className(): string | null;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FyIconComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FyIconComponent, "fy-icon", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "set": { "alias": "set"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
20
|
}
|
|
18
21
|
export {};
|
|
@@ -1,17 +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 { Component, Input, ViewEncapsulation, inject, computed } from '@angular/core';
|
|
11
2
|
import { CommonModule } from '@angular/common';
|
|
12
3
|
import { FyLibService } from '../services/fylib.service';
|
|
13
4
|
import { iconRegistry } from '../icons/registry';
|
|
14
|
-
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
export class FyIconComponent {
|
|
15
8
|
constructor() {
|
|
16
9
|
this.fylib = inject(FyLibService);
|
|
17
10
|
this.size = 'md';
|
|
@@ -27,7 +20,7 @@ let FyIconComponent = class FyIconComponent {
|
|
|
27
20
|
if (sw != null)
|
|
28
21
|
style['--fy-icon-stroke-width'] = String(sw);
|
|
29
22
|
return style;
|
|
30
|
-
});
|
|
23
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperStyle" }] : /* istanbul ignore next */ []));
|
|
31
24
|
this._svgViewBox = '0 0 24 24';
|
|
32
25
|
}
|
|
33
26
|
get svgPath() {
|
|
@@ -77,37 +70,9 @@ let FyIconComponent = class FyIconComponent {
|
|
|
77
70
|
const base = effectiveSet === 'ph' ? 'ph' : effectiveSet;
|
|
78
71
|
return `${base} ${base}-${this.name}`;
|
|
79
72
|
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], FyIconComponent.prototype, "name", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
Input(),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], FyIconComponent.prototype, "size", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
Input(),
|
|
91
|
-
__metadata("design:type", Object)
|
|
92
|
-
], FyIconComponent.prototype, "color", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
Input(),
|
|
95
|
-
__metadata("design:type", Object)
|
|
96
|
-
], FyIconComponent.prototype, "strokeWidth", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
Input(),
|
|
99
|
-
__metadata("design:type", Object)
|
|
100
|
-
], FyIconComponent.prototype, "variant", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
Input(),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], FyIconComponent.prototype, "set", void 0);
|
|
105
|
-
FyIconComponent = __decorate([
|
|
106
|
-
Component({
|
|
107
|
-
selector: 'fy-icon',
|
|
108
|
-
standalone: true,
|
|
109
|
-
imports: [CommonModule],
|
|
110
|
-
template: `
|
|
73
|
+
}
|
|
74
|
+
FyIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
+
FyIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.7", type: FyIconComponent, isStandalone: true, selector: "fy-icon", inputs: { name: "name", size: "size", color: "color", strokeWidth: "strokeWidth", variant: "variant", set: "set" }, ngImport: i0, template: `
|
|
111
76
|
<span class="fy-icon"
|
|
112
77
|
[class]="'fy-icon--' + size"
|
|
113
78
|
[ngStyle]="wrapperStyle()"
|
|
@@ -122,23 +87,35 @@ FyIconComponent = __decorate([
|
|
|
122
87
|
}
|
|
123
88
|
}
|
|
124
89
|
</span>
|
|
125
|
-
`,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
90
|
+
`, isInline: true, styles: ["\n .fy-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--fy-icons-color, currentColor);\n }\n .fy-icon svg {\n width: 1em;\n height: 1em;\n }\n .fy-icon--sm { font-size: var(--fy-icons-size-sm, var(--fy-typography-fontSize-sm, 12px)); }\n .fy-icon--md { font-size: var(--fy-icons-size-md, var(--fy-typography-fontSize-md, 16px)); }\n .fy-icon--lg { font-size: var(--fy-icons-size-lg, var(--fy-typography-fontSize-lg, 20px)); }\n "], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FyIconComponent, decorators: [{
|
|
92
|
+
type: Component,
|
|
93
|
+
args: [{ selector: 'fy-icon', standalone: true, imports: [CommonModule], template: `
|
|
94
|
+
<span class="fy-icon"
|
|
95
|
+
[class]="'fy-icon--' + size"
|
|
96
|
+
[ngStyle]="wrapperStyle()"
|
|
97
|
+
>
|
|
98
|
+
@if (svgPath) {
|
|
99
|
+
<svg [attr.viewBox]="svgViewBox" fill="currentColor" aria-hidden="true">
|
|
100
|
+
<path [attr.d]="svgPath"></path>
|
|
101
|
+
</svg>
|
|
102
|
+
} @else {
|
|
103
|
+
@if (className) {
|
|
104
|
+
<span [class]="className"></span>
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</span>
|
|
108
|
+
`, encapsulation: ViewEncapsulation.None, styles: ["\n .fy-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--fy-icons-color, currentColor);\n }\n .fy-icon svg {\n width: 1em;\n height: 1em;\n }\n .fy-icon--sm { font-size: var(--fy-icons-size-sm, var(--fy-typography-fontSize-sm, 12px)); }\n .fy-icon--md { font-size: var(--fy-icons-size-md, var(--fy-typography-fontSize-md, 16px)); }\n .fy-icon--lg { font-size: var(--fy-icons-size-lg, var(--fy-typography-fontSize-lg, 20px)); }\n "] }]
|
|
109
|
+
}], propDecorators: { name: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}], size: [{
|
|
112
|
+
type: Input
|
|
113
|
+
}], color: [{
|
|
114
|
+
type: Input
|
|
115
|
+
}], strokeWidth: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], variant: [{
|
|
118
|
+
type: Input
|
|
119
|
+
}], set: [{
|
|
120
|
+
type: Input
|
|
121
|
+
}] } });
|
|
@@ -3,6 +3,7 @@ import { InputProps } from '@fylib/catalog';
|
|
|
3
3
|
import { InputFocusAnimationName, InputStateAnimationName } from '@fylib/animation';
|
|
4
4
|
import { EffectName } from '@fylib/config';
|
|
5
5
|
import { BaseFyComponent, FyComponentBaseInputs } from '../base/base-component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class FyInputComponent extends BaseFyComponent<'fy-input'> implements InputProps, FyComponentBaseInputs {
|
|
7
8
|
value?: string;
|
|
8
9
|
placeholder?: string;
|
|
@@ -47,4 +48,6 @@ export declare class FyInputComponent extends BaseFyComponent<'fy-input'> implem
|
|
|
47
48
|
onBlurHandler(): void;
|
|
48
49
|
private resolveAnimationsActive;
|
|
49
50
|
private applyMask;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FyInputComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FyInputComponent, "fy-input", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "showPasswordToggle": { "alias": "showPasswordToggle"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "iconRight": { "alias": "iconRight"; "required": false; }; "iconLeftName": { "alias": "iconLeftName"; "required": false; }; "iconRightName": { "alias": "iconRightName"; "required": false; }; "size": { "alias": "size"; "required": false; }; "status": { "alias": "status"; "required": false; }; "activeAnimations": { "alias": "activeAnimations"; "required": false; }; "activeEffects": { "alias": "activeEffects"; "required": false; }; "customStyles": { "alias": "customStyles"; "required": false; }; "focusAnimation": { "alias": "focusAnimation"; "required": false; }; "successAnimation": { "alias": "successAnimation"; "required": false; }; "errorAnimation": { "alias": "errorAnimation"; "required": false; }; "focusEffect": { "alias": "focusEffect"; "required": false; }; "successEffect": { "alias": "successEffect"; "required": false; }; "errorEffect": { "alias": "errorEffect"; "required": false; }; "onInput": { "alias": "onInput"; "required": false; }; "onChange": { "alias": "onChange"; "required": false; }; "onFocus": { "alias": "onFocus"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; }, { "fyInput": "fyInput"; "fyChange": "fyChange"; "fyFocus": "fyFocus"; "fyBlur": "fyBlur"; }, never, never, true, never>;
|
|
50
53
|
}
|