@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.
- 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/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 +7 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { SelectProps } from '@fylib/catalog';
|
|
3
3
|
import { BaseFyComponent, FyComponentBaseInputs } from '../base/base-component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class FySelectComponent extends BaseFyComponent<'fy-select'> implements SelectProps, FyComponentBaseInputs {
|
|
5
6
|
options: {
|
|
6
7
|
label: string;
|
|
@@ -49,4 +50,6 @@ export declare class FySelectComponent extends BaseFyComponent<'fy-select'> impl
|
|
|
49
50
|
selectOption(val: string): void;
|
|
50
51
|
isSelected(val: string): boolean;
|
|
51
52
|
onSearch(event: Event): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FySelectComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FySelectComponent, "fy-select", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "size": { "alias": "size"; "required": false; }; "status": { "alias": "status"; "required": false; }; "iconRightName": { "alias": "iconRightName"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "onChange": { "alias": "onChange"; "required": false; }; "onFocus": { "alias": "onFocus"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; "activeAnimations": { "alias": "activeAnimations"; "required": false; }; "activeEffects": { "alias": "activeEffects"; "required": false; }; "customStyles": { "alias": "customStyles"; "required": false; }; }, { "fyChange": "fyChange"; "fyFocus": "fyFocus"; "fyBlur": "fyBlur"; }, never, never, true, never>;
|
|
52
55
|
}
|
|
@@ -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, HostListener, inject } from '@angular/core';
|
|
11
2
|
import { CommonModule } from '@angular/common';
|
|
12
3
|
import { SelectDefinition } from '@fylib/catalog';
|
|
13
4
|
import { FyIconComponent } from './icon.component';
|
|
14
5
|
import { BaseFyComponent } from '../base/base-component';
|
|
15
6
|
import { ElementRef } from '@angular/core';
|
|
16
|
-
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class FySelectComponent extends BaseFyComponent {
|
|
17
9
|
get animationsDisabled() {
|
|
18
10
|
return !this.isAnimationsActive(this.activeAnimations);
|
|
19
11
|
}
|
|
@@ -156,115 +148,9 @@ let FySelectComponent = class FySelectComponent extends BaseFyComponent {
|
|
|
156
148
|
const input = event.target;
|
|
157
149
|
this.searchTerm = input.value;
|
|
158
150
|
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
__metadata("design:type", Array)
|
|
163
|
-
], FySelectComponent.prototype, "options", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
Input(),
|
|
166
|
-
__metadata("design:type", Object)
|
|
167
|
-
], FySelectComponent.prototype, "value", void 0);
|
|
168
|
-
__decorate([
|
|
169
|
-
Input(),
|
|
170
|
-
__metadata("design:type", String)
|
|
171
|
-
], FySelectComponent.prototype, "placeholder", void 0);
|
|
172
|
-
__decorate([
|
|
173
|
-
Input(),
|
|
174
|
-
__metadata("design:type", Boolean)
|
|
175
|
-
], FySelectComponent.prototype, "disabled", void 0);
|
|
176
|
-
__decorate([
|
|
177
|
-
Input(),
|
|
178
|
-
__metadata("design:type", Boolean)
|
|
179
|
-
], FySelectComponent.prototype, "readonly", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
Input(),
|
|
182
|
-
__metadata("design:type", String)
|
|
183
|
-
], FySelectComponent.prototype, "size", void 0);
|
|
184
|
-
__decorate([
|
|
185
|
-
Input(),
|
|
186
|
-
__metadata("design:type", String)
|
|
187
|
-
], FySelectComponent.prototype, "status", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
Input(),
|
|
190
|
-
__metadata("design:type", String)
|
|
191
|
-
], FySelectComponent.prototype, "iconRightName", void 0);
|
|
192
|
-
__decorate([
|
|
193
|
-
Input(),
|
|
194
|
-
__metadata("design:type", Boolean)
|
|
195
|
-
], FySelectComponent.prototype, "searchable", void 0);
|
|
196
|
-
__decorate([
|
|
197
|
-
Input(),
|
|
198
|
-
__metadata("design:type", Boolean)
|
|
199
|
-
], FySelectComponent.prototype, "showCheckbox", void 0);
|
|
200
|
-
__decorate([
|
|
201
|
-
Input(),
|
|
202
|
-
__metadata("design:type", Boolean)
|
|
203
|
-
], FySelectComponent.prototype, "closeOnSelect", void 0);
|
|
204
|
-
__decorate([
|
|
205
|
-
Input(),
|
|
206
|
-
__metadata("design:type", Function)
|
|
207
|
-
], FySelectComponent.prototype, "onChange", void 0);
|
|
208
|
-
__decorate([
|
|
209
|
-
Input(),
|
|
210
|
-
__metadata("design:type", Function)
|
|
211
|
-
], FySelectComponent.prototype, "onFocus", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
Input(),
|
|
214
|
-
__metadata("design:type", Function)
|
|
215
|
-
], FySelectComponent.prototype, "onBlur", void 0);
|
|
216
|
-
__decorate([
|
|
217
|
-
Input(),
|
|
218
|
-
__metadata("design:type", Object)
|
|
219
|
-
], FySelectComponent.prototype, "activeAnimations", void 0);
|
|
220
|
-
__decorate([
|
|
221
|
-
Input(),
|
|
222
|
-
__metadata("design:type", Object)
|
|
223
|
-
], FySelectComponent.prototype, "activeEffects", void 0);
|
|
224
|
-
__decorate([
|
|
225
|
-
Input(),
|
|
226
|
-
__metadata("design:type", Object)
|
|
227
|
-
], FySelectComponent.prototype, "customStyles", void 0);
|
|
228
|
-
__decorate([
|
|
229
|
-
Output(),
|
|
230
|
-
__metadata("design:type", Object)
|
|
231
|
-
], FySelectComponent.prototype, "fyChange", void 0);
|
|
232
|
-
__decorate([
|
|
233
|
-
Output(),
|
|
234
|
-
__metadata("design:type", Object)
|
|
235
|
-
], FySelectComponent.prototype, "fyFocus", void 0);
|
|
236
|
-
__decorate([
|
|
237
|
-
Output(),
|
|
238
|
-
__metadata("design:type", Object)
|
|
239
|
-
], FySelectComponent.prototype, "fyBlur", void 0);
|
|
240
|
-
__decorate([
|
|
241
|
-
HostBinding('class.fy-animations-disabled'),
|
|
242
|
-
__metadata("design:type", Boolean),
|
|
243
|
-
__metadata("design:paramtypes", [])
|
|
244
|
-
], FySelectComponent.prototype, "animationsDisabled", null);
|
|
245
|
-
__decorate([
|
|
246
|
-
HostBinding('style'),
|
|
247
|
-
__metadata("design:type", String),
|
|
248
|
-
__metadata("design:paramtypes", [])
|
|
249
|
-
], FySelectComponent.prototype, "hostStyles", null);
|
|
250
|
-
__decorate([
|
|
251
|
-
HostListener('document:click', ['$event']),
|
|
252
|
-
__metadata("design:type", Function),
|
|
253
|
-
__metadata("design:paramtypes", [MouseEvent]),
|
|
254
|
-
__metadata("design:returntype", void 0)
|
|
255
|
-
], FySelectComponent.prototype, "onDocumentClick", null);
|
|
256
|
-
__decorate([
|
|
257
|
-
HostListener('keydown', ['$event']),
|
|
258
|
-
__metadata("design:type", Function),
|
|
259
|
-
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
260
|
-
__metadata("design:returntype", void 0)
|
|
261
|
-
], FySelectComponent.prototype, "onKeydown", null);
|
|
262
|
-
FySelectComponent = __decorate([
|
|
263
|
-
Component({
|
|
264
|
-
selector: 'fy-select',
|
|
265
|
-
standalone: true,
|
|
266
|
-
imports: [CommonModule, FyIconComponent],
|
|
267
|
-
template: `
|
|
151
|
+
}
|
|
152
|
+
FySelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FySelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
153
|
+
FySelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.7", type: FySelectComponent, isStandalone: true, selector: "fy-select", inputs: { options: "options", value: "value", placeholder: "placeholder", disabled: "disabled", readonly: "readonly", size: "size", status: "status", iconRightName: "iconRightName", searchable: "searchable", showCheckbox: "showCheckbox", closeOnSelect: "closeOnSelect", onChange: "onChange", onFocus: "onFocus", onBlur: "onBlur", activeAnimations: "activeAnimations", activeEffects: "activeEffects", customStyles: "customStyles" }, outputs: { fyChange: "fyChange", fyFocus: "fyFocus", fyBlur: "fyBlur" }, host: { listeners: { "document:click": "onDocumentClick($event)", "keydown": "onKeydown($event)" }, properties: { "class.fy-animations-disabled": "this.animationsDisabled", "style": "this.hostStyles" } }, usesInheritance: true, ngImport: i0, template: `
|
|
268
154
|
<div
|
|
269
155
|
class="fy-select"
|
|
270
156
|
[class.fy-select--open]="open"
|
|
@@ -321,75 +207,117 @@ FySelectComponent = __decorate([
|
|
|
321
207
|
</div>
|
|
322
208
|
}
|
|
323
209
|
</div>
|
|
324
|
-
`,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
cursor: pointer;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.fy-select__dropdown {
|
|
351
|
-
position: absolute;
|
|
352
|
-
left: 0;
|
|
353
|
-
right: 0;
|
|
354
|
-
top: calc(100% + 4px);
|
|
355
|
-
background: var(--fy-effects-select-background, #fff);
|
|
356
|
-
border: 1px solid var(--fy-effects-select-borderColor, rgba(0,0,0,.1));
|
|
357
|
-
border-radius: var(--fy-borderRadius-md);
|
|
358
|
-
box-shadow: var(--fy-effects-select-shadow, none);
|
|
359
|
-
max-height: 240px;
|
|
360
|
-
overflow-y: auto;
|
|
361
|
-
z-index: 1000;
|
|
362
|
-
}
|
|
210
|
+
`, isInline: true, styles: ["\n .fy-select {\n position: relative;\n width: 100%;\n font: inherit;\n display: inline-flex;\n align-items: center;\n border: var(--fy-effects-select-borderWidth, 1px) solid var(--fy-effects-select-borderColor, rgba(0,0,0,.15));\n background: var(--fy-effects-select-background, #fff);\n border-radius: var(--fy-effects-select-borderRadius, var(--fy-borderRadius-md));\n box-shadow: var(--fy-effects-select-shadow, none);\n min-height: 36px;\n padding: 0 10px;\n gap: 6px;\n transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;\n }\n\n .fy-select__control {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n cursor: pointer;\n }\n\n .fy-select__dropdown {\n position: absolute;\n left: 0;\n right: 0;\n top: calc(100% + 4px);\n background: var(--fy-effects-select-background, #fff);\n border: 1px solid var(--fy-effects-select-borderColor, rgba(0,0,0,.1));\n border-radius: var(--fy-borderRadius-md);\n box-shadow: var(--fy-effects-select-shadow, none);\n max-height: 240px;\n overflow-y: auto;\n z-index: 1000;\n }\n\n .fy-select__option {\n padding: 6px 10px;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .fy-select__option--selected {\n background: rgba(var(--fy-colors-primary-rgb, 59,130,246), 0.08);\n }\n\n .fy-select__search {\n width: 100%;\n padding: 6px;\n border: none;\n outline: none;\n border-bottom: 1px solid rgba(0,0,0,.1);\n background-color: transparent;\n }\n .fy-select__icon {\n transition: transform .2s ease;\n }\n .fy-select.fy-select--open .fy-select__icon {\n transform: rotate(180deg);\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 });
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: FySelectComponent, decorators: [{
|
|
212
|
+
type: Component,
|
|
213
|
+
args: [{ selector: 'fy-select', standalone: true, imports: [CommonModule, FyIconComponent], template: `
|
|
214
|
+
<div
|
|
215
|
+
class="fy-select"
|
|
216
|
+
[class.fy-select--open]="open"
|
|
217
|
+
[class.fy-select--sm]="size === 'sm'"
|
|
218
|
+
[class.fy-select--lg]="size === 'lg'"
|
|
219
|
+
[class.fy-select--status-success]="status === 'success'"
|
|
220
|
+
[class.fy-select--status-error]="status === 'error'"
|
|
221
|
+
[class]="animationClassSuffix"
|
|
222
|
+
>
|
|
223
|
+
<div
|
|
224
|
+
class="fy-select__control"
|
|
225
|
+
tabindex="0"
|
|
226
|
+
(click)="toggleOpen()"
|
|
227
|
+
(focus)="onFocusHandler()"
|
|
228
|
+
(blur)="onBlurHandler()"
|
|
229
|
+
>
|
|
230
|
+
<span class="fy-select__value">
|
|
231
|
+
{{ displayValue || placeholder }}
|
|
232
|
+
</span>
|
|
363
233
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
align-items: center;
|
|
369
|
-
gap: 6px;
|
|
370
|
-
}
|
|
234
|
+
@if (iconRightName) {
|
|
235
|
+
<fy-icon class="fy-select__icon" [name]="iconRightName"></fy-icon>
|
|
236
|
+
}
|
|
237
|
+
</div>
|
|
371
238
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
239
|
+
@if (open) {
|
|
240
|
+
<div class="fy-select__dropdown" [class]="dropdownAnimClass">
|
|
241
|
+
@if (searchable) {
|
|
242
|
+
<input
|
|
243
|
+
class="fy-select__search"
|
|
244
|
+
type="text"
|
|
245
|
+
placeholder="Buscar..."
|
|
246
|
+
(input)="onSearch($event)"
|
|
247
|
+
/>
|
|
248
|
+
}
|
|
375
249
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
250
|
+
@for (opt of filteredOptions; track opt.value) {
|
|
251
|
+
<div
|
|
252
|
+
class="fy-select__option"
|
|
253
|
+
[class.fy-select__option--selected]="isSelected(opt.value)"
|
|
254
|
+
(click)="selectOption(opt.value)"
|
|
255
|
+
>
|
|
256
|
+
@if (showCheckbox) {
|
|
257
|
+
<input
|
|
258
|
+
type="checkbox"
|
|
259
|
+
[checked]="isSelected(opt.value)"
|
|
260
|
+
(click)="$event.stopPropagation()"
|
|
261
|
+
(change)="onCheckboxChange($event, opt.value)"
|
|
262
|
+
/>
|
|
263
|
+
}
|
|
264
|
+
{{ opt.label }}
|
|
265
|
+
</div>
|
|
266
|
+
}
|
|
267
|
+
</div>
|
|
268
|
+
}
|
|
269
|
+
</div>
|
|
270
|
+
`, encapsulation: ViewEncapsulation.None, styles: ["\n .fy-select {\n position: relative;\n width: 100%;\n font: inherit;\n display: inline-flex;\n align-items: center;\n border: var(--fy-effects-select-borderWidth, 1px) solid var(--fy-effects-select-borderColor, rgba(0,0,0,.15));\n background: var(--fy-effects-select-background, #fff);\n border-radius: var(--fy-effects-select-borderRadius, var(--fy-borderRadius-md));\n box-shadow: var(--fy-effects-select-shadow, none);\n min-height: 36px;\n padding: 0 10px;\n gap: 6px;\n transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;\n }\n\n .fy-select__control {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n cursor: pointer;\n }\n\n .fy-select__dropdown {\n position: absolute;\n left: 0;\n right: 0;\n top: calc(100% + 4px);\n background: var(--fy-effects-select-background, #fff);\n border: 1px solid var(--fy-effects-select-borderColor, rgba(0,0,0,.1));\n border-radius: var(--fy-borderRadius-md);\n box-shadow: var(--fy-effects-select-shadow, none);\n max-height: 240px;\n overflow-y: auto;\n z-index: 1000;\n }\n\n .fy-select__option {\n padding: 6px 10px;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n }\n\n .fy-select__option--selected {\n background: rgba(var(--fy-colors-primary-rgb, 59,130,246), 0.08);\n }\n\n .fy-select__search {\n width: 100%;\n padding: 6px;\n border: none;\n outline: none;\n border-bottom: 1px solid rgba(0,0,0,.1);\n background-color: transparent;\n }\n .fy-select__icon {\n transition: transform .2s ease;\n }\n .fy-select.fy-select--open .fy-select__icon {\n transform: rotate(180deg);\n }\n "] }]
|
|
271
|
+
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
272
|
+
type: Input
|
|
273
|
+
}], value: [{
|
|
274
|
+
type: Input
|
|
275
|
+
}], placeholder: [{
|
|
276
|
+
type: Input
|
|
277
|
+
}], disabled: [{
|
|
278
|
+
type: Input
|
|
279
|
+
}], readonly: [{
|
|
280
|
+
type: Input
|
|
281
|
+
}], size: [{
|
|
282
|
+
type: Input
|
|
283
|
+
}], status: [{
|
|
284
|
+
type: Input
|
|
285
|
+
}], iconRightName: [{
|
|
286
|
+
type: Input
|
|
287
|
+
}], searchable: [{
|
|
288
|
+
type: Input
|
|
289
|
+
}], showCheckbox: [{
|
|
290
|
+
type: Input
|
|
291
|
+
}], closeOnSelect: [{
|
|
292
|
+
type: Input
|
|
293
|
+
}], onChange: [{
|
|
294
|
+
type: Input
|
|
295
|
+
}], onFocus: [{
|
|
296
|
+
type: Input
|
|
297
|
+
}], onBlur: [{
|
|
298
|
+
type: Input
|
|
299
|
+
}], activeAnimations: [{
|
|
300
|
+
type: Input
|
|
301
|
+
}], activeEffects: [{
|
|
302
|
+
type: Input
|
|
303
|
+
}], customStyles: [{
|
|
304
|
+
type: Input
|
|
305
|
+
}], fyChange: [{
|
|
306
|
+
type: Output
|
|
307
|
+
}], fyFocus: [{
|
|
308
|
+
type: Output
|
|
309
|
+
}], fyBlur: [{
|
|
310
|
+
type: Output
|
|
311
|
+
}], animationsDisabled: [{
|
|
312
|
+
type: HostBinding,
|
|
313
|
+
args: ['class.fy-animations-disabled']
|
|
314
|
+
}], hostStyles: [{
|
|
315
|
+
type: HostBinding,
|
|
316
|
+
args: ['style']
|
|
317
|
+
}], onDocumentClick: [{
|
|
318
|
+
type: HostListener,
|
|
319
|
+
args: ['document:click', ['$event']]
|
|
320
|
+
}], onKeydown: [{
|
|
321
|
+
type: HostListener,
|
|
322
|
+
args: ['keydown', ['$event']]
|
|
323
|
+
}] } });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { TableProps, TableColumn, TableAction } from '@fylib/catalog';
|
|
3
3
|
import { BaseFyComponent } from '../base/base-component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class FyTableComponent extends BaseFyComponent<'fy-table'> implements TableProps, OnInit {
|
|
5
6
|
data: any[];
|
|
6
7
|
columns: TableColumn[];
|
|
@@ -52,4 +53,6 @@ export declare class FyTableComponent extends BaseFyComponent<'fy-table'> implem
|
|
|
52
53
|
onPageChange(page: number): void;
|
|
53
54
|
onRowClick(row: any): void;
|
|
54
55
|
onActionClick(event: MouseEvent, action: TableAction, row: any): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FyTableComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FyTableComponent, "fy-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "searchTargets": { "alias": "searchTargets"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "rowClickable": { "alias": "rowClickable"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "activeAnimations": { "alias": "activeAnimations"; "required": false; }; "activeEffects": { "alias": "activeEffects"; "required": false; }; "customStyles": { "alias": "customStyles"; "required": false; }; }, { "fySearch": "fySearch"; "fySort": "fySort"; "fyPageChange": "fyPageChange"; "fyRowClick": "fyRowClick"; }, ["cellTemplate"], ["[fy-table-tools]"], true, never>;
|
|
55
58
|
}
|